aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-07-31 05:38:19 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-08-27 03:58:26 -0400
commit224cf5ad14c038b13c119dff29422f178a306f54 (patch)
tree89bf411ea743e9d7bbd3c609eeb7220270a97fc5 /drivers
parentaab3ac26108642eaa06efa4697dab595c7de2bbd (diff)
ppp: Move the PPP drivers
Move the PPP drivers into drivers/net/ppp/ and make the necessary Kconfig and Makefile changes. CC: Paul Mackerras <paulus@samba.org> CC: Frank Cusack <fcusack@fcusack.com> CC: Michal Ostrowski <mostrows@speakeasy.net> CC: Michal Ostrowski <mostrows@earthlink.net> CC: Dmitry Kozlov <xeb@mail.ru> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/Kconfig170
-rw-r--r--drivers/net/Makefile18
-rw-r--r--drivers/net/ppp/Kconfig175
-rw-r--r--drivers/net/ppp/Makefile13
-rw-r--r--drivers/net/ppp/bsd_comp.c (renamed from drivers/net/bsd_comp.c)0
-rw-r--r--drivers/net/ppp/ppp_async.c (renamed from drivers/net/ppp_async.c)0
-rw-r--r--drivers/net/ppp/ppp_deflate.c (renamed from drivers/net/ppp_deflate.c)0
-rw-r--r--drivers/net/ppp/ppp_generic.c (renamed from drivers/net/ppp_generic.c)0
-rw-r--r--drivers/net/ppp/ppp_mppe.c (renamed from drivers/net/ppp_mppe.c)0
-rw-r--r--drivers/net/ppp/ppp_mppe.h (renamed from drivers/net/ppp_mppe.h)0
-rw-r--r--drivers/net/ppp/ppp_synctty.c (renamed from drivers/net/ppp_synctty.c)0
-rw-r--r--drivers/net/ppp/pppoe.c (renamed from drivers/net/pppoe.c)0
-rw-r--r--drivers/net/ppp/pppox.c (renamed from drivers/net/pppox.c)0
-rw-r--r--drivers/net/ppp/pptp.c (renamed from drivers/net/pptp.c)0
14 files changed, 199 insertions, 177 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 7bdc22b59856..c5e2a3871dc5 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -207,6 +207,8 @@ source "drivers/net/usb/Kconfig"
207 207
208source "drivers/net/pcmcia/Kconfig" 208source "drivers/net/pcmcia/Kconfig"
209 209
210source "drivers/net/ppp/Kconfig"
211
210source "drivers/net/wan/Kconfig" 212source "drivers/net/wan/Kconfig"
211 213
212source "drivers/atm/Kconfig" 214source "drivers/atm/Kconfig"
@@ -337,174 +339,6 @@ config PLIP
337 will be called plip. If unsure, say Y or M, in case you buy 339 will be called plip. If unsure, say Y or M, in case you buy
338 a laptop later. 340 a laptop later.
339 341
340config PPP
341 tristate "PPP (point-to-point protocol) support"
342 select SLHC
343 ---help---
344 PPP (Point to Point Protocol) is a newer and better SLIP. It serves
345 the same purpose: sending Internet traffic over telephone (and other
346 serial) lines. Ask your access provider if they support it, because
347 otherwise you can't use it; most Internet access providers these
348 days support PPP rather than SLIP.
349
350 To use PPP, you need an additional program called pppd as described
351 in the PPP-HOWTO, available at
352 <http://www.tldp.org/docs.html#howto>. Make sure that you have
353 the version of pppd recommended in <file:Documentation/Changes>.
354 The PPP option enlarges your kernel by about 16 KB.
355
356 There are actually two versions of PPP: the traditional PPP for
357 asynchronous lines, such as regular analog phone lines, and
358 synchronous PPP which can be used over digital ISDN lines for
359 example. If you want to use PPP over phone lines or other
360 asynchronous serial lines, you need to say Y (or M) here and also to
361 the next option, "PPP support for async serial ports". For PPP over
362 synchronous lines, you should say Y (or M) here and to "Support
363 synchronous PPP", below.
364
365 If you said Y to "Version information on all symbols" above, then
366 you cannot compile the PPP driver into the kernel; you can then only
367 compile it as a module. To compile this driver as a module, choose M
368 here. The module will be called ppp_generic.
369
370config PPP_MULTILINK
371 bool "PPP multilink support (EXPERIMENTAL)"
372 depends on PPP && EXPERIMENTAL
373 help
374 PPP multilink is a protocol (defined in RFC 1990) which allows you
375 to combine several (logical or physical) lines into one logical PPP
376 connection, so that you can utilize your full bandwidth.
377
378 This has to be supported at the other end as well and you need a
379 version of the pppd daemon which understands the multilink protocol.
380
381 If unsure, say N.
382
383config PPP_FILTER
384 bool "PPP filtering"
385 depends on PPP
386 help
387 Say Y here if you want to be able to filter the packets passing over
388 PPP interfaces. This allows you to control which packets count as
389 activity (i.e. which packets will reset the idle timer or bring up
390 a demand-dialed link) and which packets are to be dropped entirely.
391 You need to say Y here if you wish to use the pass-filter and
392 active-filter options to pppd.
393
394 If unsure, say N.
395
396config PPP_ASYNC
397 tristate "PPP support for async serial ports"
398 depends on PPP
399 select CRC_CCITT
400 ---help---
401 Say Y (or M) here if you want to be able to use PPP over standard
402 asynchronous serial ports, such as COM1 or COM2 on a PC. If you use
403 a modem (not a synchronous or ISDN modem) to contact your ISP, you
404 need this option.
405
406 To compile this driver as a module, choose M here.
407
408 If unsure, say Y.
409
410config PPP_SYNC_TTY
411 tristate "PPP support for sync tty ports"
412 depends on PPP
413 help
414 Say Y (or M) here if you want to be able to use PPP over synchronous
415 (HDLC) tty devices, such as the SyncLink adapter. These devices
416 are often used for high-speed leased lines like T1/E1.
417
418 To compile this driver as a module, choose M here.
419
420config PPP_DEFLATE
421 tristate "PPP Deflate compression"
422 depends on PPP
423 select ZLIB_INFLATE
424 select ZLIB_DEFLATE
425 ---help---
426 Support for the Deflate compression method for PPP, which uses the
427 Deflate algorithm (the same algorithm that gzip uses) to compress
428 each PPP packet before it is sent over the wire. The machine at the
429 other end of the PPP link (usually your ISP) has to support the
430 Deflate compression method as well for this to be useful. Even if
431 they don't support it, it is safe to say Y here.
432
433 To compile this driver as a module, choose M here.
434
435config PPP_BSDCOMP
436 tristate "PPP BSD-Compress compression"
437 depends on PPP
438 ---help---
439 Support for the BSD-Compress compression method for PPP, which uses
440 the LZW compression method to compress each PPP packet before it is
441 sent over the wire. The machine at the other end of the PPP link
442 (usually your ISP) has to support the BSD-Compress compression
443 method as well for this to be useful. Even if they don't support it,
444 it is safe to say Y here.
445
446 The PPP Deflate compression method ("PPP Deflate compression",
447 above) is preferable to BSD-Compress, because it compresses better
448 and is patent-free.
449
450 Note that the BSD compression code will always be compiled as a
451 module; it is called bsd_comp and will show up in the directory
452 modules once you have said "make modules". If unsure, say N.
453
454config PPP_MPPE
455 tristate "PPP MPPE compression (encryption) (EXPERIMENTAL)"
456 depends on PPP && EXPERIMENTAL
457 select CRYPTO
458 select CRYPTO_SHA1
459 select CRYPTO_ARC4
460 select CRYPTO_ECB
461 ---help---
462 Support for the MPPE Encryption protocol, as employed by the
463 Microsoft Point-to-Point Tunneling Protocol.
464
465 See http://pptpclient.sourceforge.net/ for information on
466 configuring PPTP clients and servers to utilize this method.
467
468config PPPOE
469 tristate "PPP over Ethernet (EXPERIMENTAL)"
470 depends on EXPERIMENTAL && PPP
471 help
472 Support for PPP over Ethernet.
473
474 This driver requires the latest version of pppd from the CVS
475 repository at cvs.samba.org. Alternatively, see the
476 RoaringPenguin package (<http://www.roaringpenguin.com/pppoe>)
477 which contains instruction on how to use this driver (under
478 the heading "Kernel mode PPPoE").
479
480config PPTP
481 tristate "PPP over IPv4 (PPTP) (EXPERIMENTAL)"
482 depends on EXPERIMENTAL && PPP && NET_IPGRE_DEMUX
483 help
484 Support for PPP over IPv4.(Point-to-Point Tunneling Protocol)
485
486 This driver requires pppd plugin to work in client mode or
487 modified pptpd (poptop) to work in server mode.
488 See http://accel-pptp.sourceforge.net/ for information how to
489 utilize this module.
490
491config PPPOATM
492 tristate "PPP over ATM"
493 depends on ATM && PPP
494 help
495 Support PPP (Point to Point Protocol) encapsulated in ATM frames.
496 This implementation does not yet comply with section 8 of RFC2364,
497 which can lead to bad results if the ATM peer loses state and
498 changes its encapsulation unilaterally.
499
500config PPPOL2TP
501 tristate "PPP over L2TP (EXPERIMENTAL)"
502 depends on EXPERIMENTAL && L2TP && PPP
503 help
504 Support for PPP-over-L2TP socket family. L2TP is a protocol
505 used by ISPs and enterprises to tunnel PPP traffic over UDP
506 tunnels. L2TP is replacing PPTP for VPN uses.
507
508config SLIP 342config SLIP
509 tristate "SLIP (serial line) support" 343 tristate "SLIP (serial line) support"
510 ---help--- 344 ---help---
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 3087b27c7841..a397f1e43ef1 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -22,15 +22,6 @@ obj-$(CONFIG_RIONET) += rionet.o
22 22
23obj-$(CONFIG_NET) += Space.o loopback.o 23obj-$(CONFIG_NET) += Space.o loopback.o
24obj-$(CONFIG_NET_SB1000) += sb1000.o 24obj-$(CONFIG_NET_SB1000) += sb1000.o
25obj-$(CONFIG_PPP) += ppp_generic.o
26obj-$(CONFIG_PPP_ASYNC) += ppp_async.o
27obj-$(CONFIG_PPP_SYNC_TTY) += ppp_synctty.o
28obj-$(CONFIG_PPP_DEFLATE) += ppp_deflate.o
29obj-$(CONFIG_PPP_BSDCOMP) += bsd_comp.o
30obj-$(CONFIG_PPP_MPPE) += ppp_mppe.o
31obj-$(CONFIG_PPPOE) += pppox.o pppoe.o
32obj-$(CONFIG_PPPOL2TP) += pppox.o
33obj-$(CONFIG_PPTP) += pppox.o pptp.o
34obj-$(CONFIG_SLIP) += slip.o 25obj-$(CONFIG_SLIP) += slip.o
35obj-$(CONFIG_SLHC) += slhc.o 26obj-$(CONFIG_SLHC) += slhc.o
36 27
@@ -48,6 +39,15 @@ obj-$(CONFIG_VETH) += veth.o
48obj-$(CONFIG_DEV_APPLETALK) += appletalk/ 39obj-$(CONFIG_DEV_APPLETALK) += appletalk/
49obj-$(CONFIG_ETHERNET) += ethernet/ 40obj-$(CONFIG_ETHERNET) += ethernet/
50obj-$(CONFIG_FDDI) += fddi/ 41obj-$(CONFIG_FDDI) += fddi/
42onj-$(CONFIG_PPP) += ppp/
43obj-$(CONFIG_PPP_ASYNC) += ppp/
44obj-$(CONFIG_PPP_BSDCOMP) += ppp/
45obj-$(CONFIG_PPP_DEFLATE) += ppp/
46obj-$(CONFIG_PPP_MPPE) += ppp/
47obj-$(CONFIG_PPP_SYNC_TTY) += ppp/
48obj-$(CONFIG_PPPOE) += ppp/
49obj-$(CONFIG_PPPOL2TP) += ppp/
50obj-$(CONFIG_PPTP) += ppp/
51obj-$(CONFIG_TR) += tokenring/ 51obj-$(CONFIG_TR) += tokenring/
52obj-$(CONFIG_WAN) += wan/ 52obj-$(CONFIG_WAN) += wan/
53obj-$(CONFIG_ARCNET) += arcnet/ 53obj-$(CONFIG_ARCNET) += arcnet/
diff --git a/drivers/net/ppp/Kconfig b/drivers/net/ppp/Kconfig
new file mode 100644
index 000000000000..872df3ef07a6
--- /dev/null
+++ b/drivers/net/ppp/Kconfig
@@ -0,0 +1,175 @@
1#
2# PPP network device configuration
3#
4
5config PPP
6 tristate "PPP (point-to-point protocol) support"
7 select SLHC
8 ---help---
9 PPP (Point to Point Protocol) is a newer and better SLIP. It serves
10 the same purpose: sending Internet traffic over telephone (and other
11 serial) lines. Ask your access provider if they support it, because
12 otherwise you can't use it; most Internet access providers these
13 days support PPP rather than SLIP.
14
15 To use PPP, you need an additional program called pppd as described
16 in the PPP-HOWTO, available at
17 <http://www.tldp.org/docs.html#howto>. Make sure that you have
18 the version of pppd recommended in <file:Documentation/Changes>.
19 The PPP option enlarges your kernel by about 16 KB.
20
21 There are actually two versions of PPP: the traditional PPP for
22 asynchronous lines, such as regular analog phone lines, and
23 synchronous PPP which can be used over digital ISDN lines for
24 example. If you want to use PPP over phone lines or other
25 asynchronous serial lines, you need to say Y (or M) here and also to
26 the next option, "PPP support for async serial ports". For PPP over
27 synchronous lines, you should say Y (or M) here and to "Support
28 synchronous PPP", below.
29
30 If you said Y to "Version information on all symbols" above, then
31 you cannot compile the PPP driver into the kernel; you can then only
32 compile it as a module. To compile this driver as a module, choose M
33 here. The module will be called ppp_generic.
34
35if PPP
36
37config PPP_BSDCOMP
38 tristate "PPP BSD-Compress compression"
39 depends on PPP
40 ---help---
41 Support for the BSD-Compress compression method for PPP, which uses
42 the LZW compression method to compress each PPP packet before it is
43 sent over the wire. The machine at the other end of the PPP link
44 (usually your ISP) has to support the BSD-Compress compression
45 method as well for this to be useful. Even if they don't support it,
46 it is safe to say Y here.
47
48 The PPP Deflate compression method ("PPP Deflate compression",
49 above) is preferable to BSD-Compress, because it compresses better
50 and is patent-free.
51
52 Note that the BSD compression code will always be compiled as a
53 module; it is called bsd_comp and will show up in the directory
54 modules once you have said "make modules". If unsure, say N.
55
56config PPP_DEFLATE
57 tristate "PPP Deflate compression"
58 depends on PPP
59 select ZLIB_INFLATE
60 select ZLIB_DEFLATE
61 ---help---
62 Support for the Deflate compression method for PPP, which uses the
63 Deflate algorithm (the same algorithm that gzip uses) to compress
64 each PPP packet before it is sent over the wire. The machine at the
65 other end of the PPP link (usually your ISP) has to support the
66 Deflate compression method as well for this to be useful. Even if
67 they don't support it, it is safe to say Y here.
68
69 To compile this driver as a module, choose M here.
70
71config PPP_FILTER
72 bool "PPP filtering"
73 depends on PPP
74 ---help---
75 Say Y here if you want to be able to filter the packets passing over
76 PPP interfaces. This allows you to control which packets count as
77 activity (i.e. which packets will reset the idle timer or bring up
78 a demand-dialed link) and which packets are to be dropped entirely.
79 You need to say Y here if you wish to use the pass-filter and
80 active-filter options to pppd.
81
82 If unsure, say N.
83
84config PPP_MPPE
85 tristate "PPP MPPE compression (encryption) (EXPERIMENTAL)"
86 depends on PPP && EXPERIMENTAL
87 select CRYPTO
88 select CRYPTO_SHA1
89 select CRYPTO_ARC4
90 select CRYPTO_ECB
91 ---help---
92 Support for the MPPE Encryption protocol, as employed by the
93 Microsoft Point-to-Point Tunneling Protocol.
94
95 See http://pptpclient.sourceforge.net/ for information on
96 configuring PPTP clients and servers to utilize this method.
97
98config PPP_MULTILINK
99 bool "PPP multilink support (EXPERIMENTAL)"
100 depends on PPP && EXPERIMENTAL
101 ---help---
102 PPP multilink is a protocol (defined in RFC 1990) which allows you
103 to combine several (logical or physical) lines into one logical PPP
104 connection, so that you can utilize your full bandwidth.
105
106 This has to be supported at the other end as well and you need a
107 version of the pppd daemon which understands the multilink protocol.
108
109 If unsure, say N.
110
111config PPPOATM
112 tristate "PPP over ATM"
113 depends on ATM && PPP
114 ---help---
115 Support PPP (Point to Point Protocol) encapsulated in ATM frames.
116 This implementation does not yet comply with section 8 of RFC2364,
117 which can lead to bad results if the ATM peer loses state and
118 changes its encapsulation unilaterally.
119
120config PPPOE
121 tristate "PPP over Ethernet (EXPERIMENTAL)"
122 depends on EXPERIMENTAL && PPP
123 ---help---
124 Support for PPP over Ethernet.
125
126 This driver requires the latest version of pppd from the CVS
127 repository at cvs.samba.org. Alternatively, see the
128 RoaringPenguin package (<http://www.roaringpenguin.com/pppoe>)
129 which contains instruction on how to use this driver (under
130 the heading "Kernel mode PPPoE").
131
132config PPTP
133 tristate "PPP over IPv4 (PPTP) (EXPERIMENTAL)"
134 depends on EXPERIMENTAL && PPP && NET_IPGRE_DEMUX
135 ---help---
136 Support for PPP over IPv4.(Point-to-Point Tunneling Protocol)
137
138 This driver requires pppd plugin to work in client mode or
139 modified pptpd (poptop) to work in server mode.
140 See http://accel-pptp.sourceforge.net/ for information how to
141 utilize this module.
142
143config PPPOL2TP
144 tristate "PPP over L2TP (EXPERIMENTAL)"
145 depends on EXPERIMENTAL && L2TP && PPP
146 ---help---
147 Support for PPP-over-L2TP socket family. L2TP is a protocol
148 used by ISPs and enterprises to tunnel PPP traffic over UDP
149 tunnels. L2TP is replacing PPTP for VPN uses.
150
151config PPP_ASYNC
152 tristate "PPP support for async serial ports"
153 depends on PPP
154 select CRC_CCITT
155 ---help---
156 Say Y (or M) here if you want to be able to use PPP over standard
157 asynchronous serial ports, such as COM1 or COM2 on a PC. If you use
158 a modem (not a synchronous or ISDN modem) to contact your ISP, you
159 need this option.
160
161 To compile this driver as a module, choose M here.
162
163 If unsure, say Y.
164
165config PPP_SYNC_TTY
166 tristate "PPP support for sync tty ports"
167 depends on PPP
168 ---help---
169 Say Y (or M) here if you want to be able to use PPP over synchronous
170 (HDLC) tty devices, such as the SyncLink adapter. These devices
171 are often used for high-speed leased lines like T1/E1.
172
173 To compile this driver as a module, choose M here.
174
175endif # PPP
diff --git a/drivers/net/ppp/Makefile b/drivers/net/ppp/Makefile
new file mode 100644
index 000000000000..a6b6297b0066
--- /dev/null
+++ b/drivers/net/ppp/Makefile
@@ -0,0 +1,13 @@
1#
2# Makefile for the Linux PPP network device drivers.
3#
4
5obj-$(CONFIG_PPP) += ppp_generic.o
6obj-$(CONFIG_PPP_ASYNC) += ppp_async.o
7obj-$(CONFIG_PPP_BSDCOMP) += bsd_comp.o
8obj-$(CONFIG_PPP_DEFLATE) += ppp_deflate.o
9obj-$(CONFIG_PPP_MPPE) += ppp_mppe.o
10obj-$(CONFIG_PPP_SYNC_TTY) += ppp_synctty.o
11obj-$(CONFIG_PPPOE) += pppox.o pppoe.o
12obj-$(CONFIG_PPPOL2TP) += pppox.o
13obj-$(CONFIG_PPTP) += pppox.o pptp.o
diff --git a/drivers/net/bsd_comp.c b/drivers/net/ppp/bsd_comp.c
index a9b759add187..a9b759add187 100644
--- a/drivers/net/bsd_comp.c
+++ b/drivers/net/ppp/bsd_comp.c
diff --git a/drivers/net/ppp_async.c b/drivers/net/ppp/ppp_async.c
index c6ba64380829..c6ba64380829 100644
--- a/drivers/net/ppp_async.c
+++ b/drivers/net/ppp/ppp_async.c
diff --git a/drivers/net/ppp_deflate.c b/drivers/net/ppp/ppp_deflate.c
index 1dbdf82a6dfd..1dbdf82a6dfd 100644
--- a/drivers/net/ppp_deflate.c
+++ b/drivers/net/ppp/ppp_deflate.c
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index 10e5d985afa3..10e5d985afa3 100644
--- a/drivers/net/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
diff --git a/drivers/net/ppp_mppe.c b/drivers/net/ppp/ppp_mppe.c
index 9a1849a83e2a..9a1849a83e2a 100644
--- a/drivers/net/ppp_mppe.c
+++ b/drivers/net/ppp/ppp_mppe.c
diff --git a/drivers/net/ppp_mppe.h b/drivers/net/ppp/ppp_mppe.h
index 7a14e058c668..7a14e058c668 100644
--- a/drivers/net/ppp_mppe.h
+++ b/drivers/net/ppp/ppp_mppe.h
diff --git a/drivers/net/ppp_synctty.c b/drivers/net/ppp/ppp_synctty.c
index 736a39ee05bb..736a39ee05bb 100644
--- a/drivers/net/ppp_synctty.c
+++ b/drivers/net/ppp/ppp_synctty.c
diff --git a/drivers/net/pppoe.c b/drivers/net/ppp/pppoe.c
index bc9a4bb31980..bc9a4bb31980 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/ppp/pppoe.c
diff --git a/drivers/net/pppox.c b/drivers/net/ppp/pppox.c
index 8c0d170dabcd..8c0d170dabcd 100644
--- a/drivers/net/pppox.c
+++ b/drivers/net/ppp/pppox.c
diff --git a/drivers/net/pptp.c b/drivers/net/ppp/pptp.c
index eae542a7e987..eae542a7e987 100644
--- a/drivers/net/pptp.c
+++ b/drivers/net/ppp/pptp.c