Skip to content

Commit b5451d7

Browse files
author
Jeff Kirsher
committed
slip: Move the SLIP drivers
Move the Serial Line Internet Protocol (SLIP) drivers into drivers/net/slip/ and make the necessary Kconfig and Makefile changes. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Acked-by: Alan Cox <alan@linux.intel.com>
1 parent 18e635f commit b5451d7

File tree

7 files changed

+89
-74
lines changed

7 files changed

+89
-74
lines changed

drivers/net/Kconfig

Lines changed: 2 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ source "drivers/net/fddi/Kconfig"
199199

200200
source "drivers/net/plip/Kconfig"
201201

202+
source "drivers/net/slip/Kconfig"
203+
202204
source "drivers/net/tokenring/Kconfig"
203205

204206
source "drivers/net/wireless/Kconfig"
@@ -274,78 +276,6 @@ config RIONET_RX_SIZE
274276
depends on RIONET
275277
default "128"
276278

277-
config SLIP
278-
tristate "SLIP (serial line) support"
279-
---help---
280-
Say Y if you intend to use SLIP or CSLIP (compressed SLIP) to
281-
connect to your Internet service provider or to connect to some
282-
other local Unix box or if you want to configure your Linux box as a
283-
Slip/CSlip server for other people to dial in. SLIP (Serial Line
284-
Internet Protocol) is a protocol used to send Internet traffic over
285-
serial connections such as telephone lines or null modem cables;
286-
nowadays, the protocol PPP is more commonly used for this same
287-
purpose.
288-
289-
Normally, your access provider has to support SLIP in order for you
290-
to be able to use it, but there is now a SLIP emulator called SLiRP
291-
around (available from
292-
<ftp://ibiblio.org/pub/Linux/system/network/serial/>) which
293-
allows you to use SLIP over a regular dial up shell connection. If
294-
you plan to use SLiRP, make sure to say Y to CSLIP, below. The
295-
NET-3-HOWTO, available from
296-
<http://www.tldp.org/docs.html#howto>, explains how to
297-
configure SLIP. Note that you don't need this option if you just
298-
want to run term (term is a program which gives you almost full
299-
Internet connectivity if you have a regular dial up shell account on
300-
some Internet connected Unix computer. Read
301-
<http://www.bart.nl/~patrickr/term-howto/Term-HOWTO.html>). SLIP
302-
support will enlarge your kernel by about 4 KB. If unsure, say N.
303-
304-
To compile this driver as a module, choose M here. The module
305-
will be called slip.
306-
307-
config SLIP_COMPRESSED
308-
bool "CSLIP compressed headers"
309-
depends on SLIP
310-
select SLHC
311-
---help---
312-
This protocol is faster than SLIP because it uses compression on the
313-
TCP/IP headers (not on the data itself), but it has to be supported
314-
on both ends. Ask your access provider if you are not sure and
315-
answer Y, just in case. You will still be able to use plain SLIP. If
316-
you plan to use SLiRP, the SLIP emulator (available from
317-
<ftp://ibiblio.org/pub/Linux/system/network/serial/>) which
318-
allows you to use SLIP over a regular dial up shell connection, you
319-
definitely want to say Y here. The NET-3-HOWTO, available from
320-
<http://www.tldp.org/docs.html#howto>, explains how to configure
321-
CSLIP. This won't enlarge your kernel.
322-
323-
config SLHC
324-
tristate
325-
help
326-
This option enables Van Jacobsen serial line header compression
327-
routines.
328-
329-
config SLIP_SMART
330-
bool "Keepalive and linefill"
331-
depends on SLIP
332-
help
333-
Adds additional capabilities to the SLIP driver to support the
334-
RELCOM line fill and keepalive monitoring. Ideal on poor quality
335-
analogue lines.
336-
337-
config SLIP_MODE_SLIP6
338-
bool "Six bit SLIP encapsulation"
339-
depends on SLIP
340-
help
341-
Just occasionally you may need to run IP over hostile serial
342-
networks that don't pass all control characters or are only seven
343-
bit. Saying Y here adds an extra mode you can use with SLIP:
344-
"slip6". In this mode, SLIP will only send normal ASCII symbols over
345-
the serial device. Naturally, this has to be supported at the other
346-
end of the link as well. It's good enough, for example, to run IP
347-
over the async ports of a Camtec JNT Pad. If unsure, say N.
348-
349279
config NET_FC
350280
bool "Fibre Channel driver support"
351281
depends on SCSI && PCI

drivers/net/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ obj-$(CONFIG_RIONET) += rionet.o
2020

2121
obj-$(CONFIG_NET) += Space.o loopback.o
2222
obj-$(CONFIG_NET_SB1000) += sb1000.o
23-
obj-$(CONFIG_SLIP) += slip.o
24-
obj-$(CONFIG_SLHC) += slhc.o
2523

2624
obj-$(CONFIG_XEN_NETDEV_FRONTEND) += xen-netfront.o
2725
obj-$(CONFIG_XEN_NETDEV_BACKEND) += xen-netback/
@@ -48,6 +46,8 @@ obj-$(CONFIG_PPP_SYNC_TTY) += ppp/
4846
obj-$(CONFIG_PPPOE) += ppp/
4947
obj-$(CONFIG_PPPOL2TP) += ppp/
5048
obj-$(CONFIG_PPTP) += ppp/
49+
onj-$(CONFIG_SLIP) += slip/
50+
obj-$(CONFIG_SLHC) += slip/
5151
obj-$(CONFIG_TR) += tokenring/
5252
obj-$(CONFIG_WAN) += wan/
5353
obj-$(CONFIG_ARCNET) += arcnet/

drivers/net/slip/Kconfig

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
#
2+
# SLIP network device configuration
3+
#
4+
5+
config SLIP
6+
tristate "SLIP (serial line) support"
7+
---help---
8+
Say Y if you intend to use SLIP or CSLIP (compressed SLIP) to
9+
connect to your Internet service provider or to connect to some
10+
other local Unix box or if you want to configure your Linux box as a
11+
Slip/CSlip server for other people to dial in. SLIP (Serial Line
12+
Internet Protocol) is a protocol used to send Internet traffic over
13+
serial connections such as telephone lines or null modem cables;
14+
nowadays, the protocol PPP is more commonly used for this same
15+
purpose.
16+
17+
Normally, your access provider has to support SLIP in order for you
18+
to be able to use it, but there is now a SLIP emulator called SLiRP
19+
around (available from
20+
<ftp://ibiblio.org/pub/Linux/system/network/serial/>) which
21+
allows you to use SLIP over a regular dial up shell connection. If
22+
you plan to use SLiRP, make sure to say Y to CSLIP, below. The
23+
NET-3-HOWTO, available from
24+
<http://www.tldp.org/docs.html#howto>, explains how to
25+
configure SLIP. Note that you don't need this option if you just
26+
want to run term (term is a program which gives you almost full
27+
Internet connectivity if you have a regular dial up shell account on
28+
some Internet connected Unix computer. Read
29+
<http://www.bart.nl/~patrickr/term-howto/Term-HOWTO.html>). SLIP
30+
support will enlarge your kernel by about 4 KB. If unsure, say N.
31+
32+
To compile this driver as a module, choose M here. The module
33+
will be called slip.
34+
35+
config SLHC
36+
tristate
37+
---help---
38+
This option enables Van Jacobsen serial line header compression
39+
routines.
40+
41+
if SLIP
42+
43+
config SLIP_COMPRESSED
44+
bool "CSLIP compressed headers"
45+
depends on SLIP
46+
select SLHC
47+
---help---
48+
This protocol is faster than SLIP because it uses compression on the
49+
TCP/IP headers (not on the data itself), but it has to be supported
50+
on both ends. Ask your access provider if you are not sure and
51+
answer Y, just in case. You will still be able to use plain SLIP. If
52+
you plan to use SLiRP, the SLIP emulator (available from
53+
<ftp://ibiblio.org/pub/Linux/system/network/serial/>) which
54+
allows you to use SLIP over a regular dial up shell connection, you
55+
definitely want to say Y here. The NET-3-HOWTO, available from
56+
<http://www.tldp.org/docs.html#howto>, explains how to configure
57+
CSLIP. This won't enlarge your kernel.
58+
59+
config SLIP_SMART
60+
bool "Keepalive and linefill"
61+
depends on SLIP
62+
---help---
63+
Adds additional capabilities to the SLIP driver to support the
64+
RELCOM line fill and keepalive monitoring. Ideal on poor quality
65+
analogue lines.
66+
67+
config SLIP_MODE_SLIP6
68+
bool "Six bit SLIP encapsulation"
69+
depends on SLIP
70+
---help---
71+
Just occasionally you may need to run IP over hostile serial
72+
networks that don't pass all control characters or are only seven
73+
bit. Saying Y here adds an extra mode you can use with SLIP:
74+
"slip6". In this mode, SLIP will only send normal ASCII symbols over
75+
the serial device. Naturally, this has to be supported at the other
76+
end of the link as well. It's good enough, for example, to run IP
77+
over the async ports of a Camtec JNT Pad. If unsure, say N.
78+
79+
endif # SLIP

drivers/net/slip/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Makefile for the SLIP network device drivers.
3+
#
4+
5+
obj-$(CONFIG_SLIP) += slip.o
6+
obj-$(CONFIG_SLHC) += slhc.o
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)