date and time created 90/06/25 18:08:49 by bostic
[unix-history] / usr / src / usr.sbin / sliplogin / sliplogin.8
CommitLineData
8a41c435
KB
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\" @(#)sliplogin.8 5.1 (Berkeley) %G%
7.\"
8.TH SLIPLOGIN 8 ""
9.UC 7
10.SH NAME
11sliplogin \- attach a serial line network interface
12.SH SYNOPSIS
13.B sliplogin
14[ {
15.I loginname
16|
17.I local
18.I remote
19[
20.I mask
21] } ]
22.SH DESCRIPTION
23.B sliplogin
24is used to turn the terminal line on the standard input of the process into
25a Serial Line IP link to a remote host. In order to do this, the program
26needs to know the local interface address of the link, the remote interface
27address, and the applicable (sub)net mask. There are three ways it may
28determine this information:
29.IP -
30If run by a non-root user id, the program will ignore any arguments and
31instead search a table (the
32.B /etc/hosts.slip
33file) for an entry matching that user id's login name, and set the parameters
34it needs from the contents of the matching entry. This would be the typical
35usage when sliplogin is the shell for a remote site connecting via dialup
36SLIP.
37.IP -
38If run by root with a single argument, the described search procedure will
39be performed using the argument as a key.
40.IP -
41If run by root with two or three arguments, they are assumed to set the
42needed parameters explicitly. A missing
43.I mask
44will cause the default network mask for that class network to be used.
45.PP
46The parameters may be specified either by name (which will be looked up
47using
48.BR gethostbyname (3N)
49and
50.BR getnetbyname (3N)),
51or as a dotted quad that the
52.BR inet_addr (3N)
53function can interpret.
54.PP
55The line speed is unchanged, but other terminal line parameters are
56initialized properly for the purpose.
57.PP
58Only the super-user may attach a network interface. The interface is
59automatically detached when the
60.B sliplogin
61process dies. If the kernel
62.B slip
63module has been configured for it, all routes through that interface will
64also disappear at the same time.
65.SH "TABLE FORMAT"
66The format of the
67.B /etc/hosts.slip
68file is as follows:
69.IP -
70blank lines and lines with a leading # are ignored.
71.IP -
72all other lines should have the form:
73.sp
74.br
75\fIname mode local-address remote-address netmask\fP
76.br
77.sp
78The
79.I name
80is usually the login name of a remote host that wishes to connect by
81dialup slip. More generally it is any key you wish for the address
82and mask parameters specified on that line. The
83.I mode
84is currently unused but must be specified. Use
85.BR normal .
86The remaining parameters have been discussed.
87.SH "DIAGNOSTICS"
88.B sliplogin
89logs various information to the system log daemon,
90.BR syslogd (8),
91with a facility code of
92.BR daemon .
93The messages are listed here, grouped by severity level.
94.SS Err Severity
95.TP
96.BI "ioctl (TCGETS): " reason
97A
98.SB TCGETS
99.B ioctl
100to get the line parameters failed.
101.TP
102.BI "ioctl (TCSETS): " reason
103A
104.SB TCSETS
105.B ioctl
106to set the line parameters failed.
107.TP
108.BI "ioctl (I_PUSH): " reason
109A
110.SB I_PUSH
111.B ioctl
112to push the
113.B slip
114streams module onto the line failed.
115.TP
116.BI "ioctl (SLIOGUNIT): " reason
117A
118.SB SLIOGUNIT
119.B ioctl
120to get the interface unit number failed.
121.TP
122.BI "ioctl (SIOCSIFNETMASK): " reason
123A
124.SB SIOCSIFNETMASK
125.B ioctl
126to set the network mask for the SLIP interface failed.
127.TP
128.BI "ioctl (SIOCSIFDSTADDR): " reason
129A
130.SB SIOCSIFDSTADDR
131.B ioctl
132to set the destination address for the SLIP interface failed.
133.TP
134.BI "ioctl (SIOCSIFADDR): " reason
135A
136.SB SIOCSIFADDR
137.B ioctl
138to set the source address for the SLIP interface failed.
139.TP
140.BI "UID (" uid ") is unknown"
141An attempt was made to run
142.B sliplogin
143with an effective user
144.SM ID
145not in the password file.
146.TP
147.BI "/etc/hosts.slip: " reason
148The
149.B /etc/hosts.slip
150file could not be opened.
151.TP
152.BI "SLIP access denied for " user
153Access to SLIP logins was denied for the user
154.IR user .
155.TP
156.IB addr ": bad value"
157The address specification
158.I addr
159could not be converted to an Internet address.
160.SS Notice Severity
161.TP
162.BI "attaching slip" unit ": local " local " remote " remote " mask" mask
163SLIP unit
164.I unit
165was successfully attached, with a source address of
166.IR local ,
167a destination address of
168.IR remote ,
169and a netmask of
170.IR mask .
171.SH EXAMPLES
172.ta 8
173 sliplogin ip_utai < /dev/ttyb &
174.sp
175 sliplogin us-sl them-sl 255.255.255.0 < /dev/ttyb &
176.sp
177 sliplogin 192.12.174.1 192.12.174.2 < /dev/ttyb &
178.SH "SEE ALSO"
179.BR slip (4M),
180.BR syslogd (8)