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