Module Name:    src
Committed By:   christos
Date:           Mon Nov 12 00:56:26 UTC 2018

Modified Files:
        src/sbin/slattach: slattach.8

Log Message:
Improve examples and netmask information (from Dan Plassche)


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sbin/slattach/slattach.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/slattach/slattach.8
diff -u src/sbin/slattach/slattach.8:1.28 src/sbin/slattach/slattach.8:1.29
--- src/sbin/slattach/slattach.8:1.28	Sat Jul  8 13:22:14 2006
+++ src/sbin/slattach/slattach.8	Sun Nov 11 19:56:26 2018
@@ -1,4 +1,4 @@
-.\"	$NetBSD: slattach.8,v 1.28 2006/07/08 17:22:14 tsutsui Exp $
+.\"	$NetBSD: slattach.8,v 1.29 2018/11/12 00:56:26 christos Exp $
 .\"
 .\" Copyright (c) 1986, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)slattach.8	8.2 (Berkeley) 4/1/94
 .\"
-.Dd July 8, 2006
+.Dd November 11, 2018
 .Dt SLATTACH 8
 .Os
 .Sh NAME
@@ -55,6 +55,8 @@ or
 interfaces.
 These interfaces have to be created using the
 .Xr ifconfig 8
+The resulting point-to-point link is not a broadcast interface
+and normally has a netmask of 255.255.255.255.
 .Cm create
 subcommand before the
 .Nm
@@ -116,9 +118,19 @@ process.
 is the name that is shown by
 .Xr netstat 1 .
 .Sh EXAMPLES
+Lock, initialize, and attach a line (on both sides):
 .Bd -literal -offset indent -compact
-slattach ttyh8
-slattach \-s 4800 /dev/tty01
+cu -t -F [hard|soft] -l /dev/dty00
+ifconfig sl0 create
+slattach -l -t slip /dev/dty00
+.Ed
+On the local side:
+.Bd -literal -offset indent -compact
+ifconfig sl0 inet 10.0.0.2 10.0.0.1 netmask 255.255.255.255
+.Ed
+On the remote side:
+.Bd -literal -offset indent -compact
+ifconfig sl0 inet 10.0.0.1 10.0.0.2 netmask 255.255.255.255
 .Ed
 .Sh DIAGNOSTICS
 Messages indicating that the specified interface is not configured or created,

Reply via email to