aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ppp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ppp')
-rw-r--r--drivers/net/ppp/ppp_async.c2
-rw-r--r--drivers/net/ppp/ppp_deflate.c30
-rw-r--r--drivers/net/ppp/ppp_generic.c6
-rw-r--r--drivers/net/ppp/ppp_synctty.c2
-rw-r--r--drivers/net/ppp/pppoe.c2
-rw-r--r--drivers/net/ppp/pppox.c2
-rw-r--r--drivers/net/ppp/pptp.c8
7 files changed, 14 insertions, 38 deletions
diff --git a/drivers/net/ppp/ppp_async.c b/drivers/net/ppp/ppp_async.c
index c6ba64380829..af95a98fd86f 100644
--- a/drivers/net/ppp/ppp_async.c
+++ b/drivers/net/ppp/ppp_async.c
@@ -26,7 +26,7 @@
26#include <linux/poll.h> 26#include <linux/poll.h>
27#include <linux/crc-ccitt.h> 27#include <linux/crc-ccitt.h>
28#include <linux/ppp_defs.h> 28#include <linux/ppp_defs.h>
29#include <linux/if_ppp.h> 29#include <linux/ppp-ioctl.h>
30#include <linux/ppp_channel.h> 30#include <linux/ppp_channel.h>
31#include <linux/spinlock.h> 31#include <linux/spinlock.h>
32#include <linux/init.h> 32#include <linux/init.h>
diff --git a/drivers/net/ppp/ppp_deflate.c b/drivers/net/ppp/ppp_deflate.c
index 1dbdf82a6dfd..602c625d95d5 100644
--- a/drivers/net/ppp/ppp_deflate.c
+++ b/drivers/net/ppp/ppp_deflate.c
@@ -1,34 +1,12 @@
1/* 1/*
2 * ==FILEVERSION 980319==
3 *
4 * ppp_deflate.c - interface the zlib procedures for Deflate compression 2 * ppp_deflate.c - interface the zlib procedures for Deflate compression
5 * and decompression (as used by gzip) to the PPP code. 3 * and decompression (as used by gzip) to the PPP code.
6 * This version is for use with Linux kernel 1.3.X.
7 *
8 * Copyright (c) 1994 The Australian National University.
9 * All rights reserved.
10 *
11 * Permission to use, copy, modify, and distribute this software and its
12 * documentation is hereby granted, provided that the above copyright
13 * notice appears in all copies. This software is provided without any
14 * warranty, express or implied. The Australian National University
15 * makes no representations about the suitability of this software for
16 * any purpose.
17 *
18 * IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY
19 * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
20 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
21 * THE AUSTRALIAN NATIONAL UNIVERSITY HAS BEEN ADVISED OF THE POSSIBILITY
22 * OF SUCH DAMAGE.
23 * 4 *
24 * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, 5 * Copyright 1994-1998 Paul Mackerras.
25 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
26 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
27 * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
28 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
29 * OR MODIFICATIONS.
30 * 6 *
31 * From: deflate.c,v 1.1 1996/01/18 03:17:48 paulus Exp 7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 2 as published by the Free Software Foundation.
32 */ 10 */
33 11
34#include <linux/module.h> 12#include <linux/module.h>
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index 486b4048850d..159da2905fe9 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -32,7 +32,7 @@
32#include <linux/poll.h> 32#include <linux/poll.h>
33#include <linux/ppp_defs.h> 33#include <linux/ppp_defs.h>
34#include <linux/filter.h> 34#include <linux/filter.h>
35#include <linux/if_ppp.h> 35#include <linux/ppp-ioctl.h>
36#include <linux/ppp_channel.h> 36#include <linux/ppp_channel.h>
37#include <linux/ppp-comp.h> 37#include <linux/ppp-comp.h>
38#include <linux/skbuff.h> 38#include <linux/skbuff.h>
@@ -1031,7 +1031,7 @@ static void ppp_setup(struct net_device *dev)
1031{ 1031{
1032 dev->netdev_ops = &ppp_netdev_ops; 1032 dev->netdev_ops = &ppp_netdev_ops;
1033 dev->hard_header_len = PPP_HDRLEN; 1033 dev->hard_header_len = PPP_HDRLEN;
1034 dev->mtu = PPP_MTU; 1034 dev->mtu = PPP_MRU;
1035 dev->addr_len = 0; 1035 dev->addr_len = 0;
1036 dev->tx_queue_len = 3; 1036 dev->tx_queue_len = 3;
1037 dev->type = ARPHRD_PPP; 1037 dev->type = ARPHRD_PPP;
@@ -2136,7 +2136,7 @@ ppp_mp_reconstruct(struct ppp *ppp)
2136 2136
2137 skb->len += p->len; 2137 skb->len += p->len;
2138 skb->data_len += p->len; 2138 skb->data_len += p->len;
2139 skb->truesize += p->len; 2139 skb->truesize += p->truesize;
2140 2140
2141 if (p == tail) 2141 if (p == tail)
2142 break; 2142 break;
diff --git a/drivers/net/ppp/ppp_synctty.c b/drivers/net/ppp/ppp_synctty.c
index 736a39ee05bb..55e466c511d5 100644
--- a/drivers/net/ppp/ppp_synctty.c
+++ b/drivers/net/ppp/ppp_synctty.c
@@ -39,7 +39,7 @@
39#include <linux/netdevice.h> 39#include <linux/netdevice.h>
40#include <linux/poll.h> 40#include <linux/poll.h>
41#include <linux/ppp_defs.h> 41#include <linux/ppp_defs.h>
42#include <linux/if_ppp.h> 42#include <linux/ppp-ioctl.h>
43#include <linux/ppp_channel.h> 43#include <linux/ppp_channel.h>
44#include <linux/spinlock.h> 44#include <linux/spinlock.h>
45#include <linux/completion.h> 45#include <linux/completion.h>
diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c
index bc9a4bb31980..2fa1a9b6f498 100644
--- a/drivers/net/ppp/pppoe.c
+++ b/drivers/net/ppp/pppoe.c
@@ -72,7 +72,7 @@
72#include <linux/if_pppox.h> 72#include <linux/if_pppox.h>
73#include <linux/ppp_channel.h> 73#include <linux/ppp_channel.h>
74#include <linux/ppp_defs.h> 74#include <linux/ppp_defs.h>
75#include <linux/if_ppp.h> 75#include <linux/ppp-ioctl.h>
76#include <linux/notifier.h> 76#include <linux/notifier.h>
77#include <linux/file.h> 77#include <linux/file.h>
78#include <linux/proc_fs.h> 78#include <linux/proc_fs.h>
diff --git a/drivers/net/ppp/pppox.c b/drivers/net/ppp/pppox.c
index 8c0d170dabcd..2940e9fe351b 100644
--- a/drivers/net/ppp/pppox.c
+++ b/drivers/net/ppp/pppox.c
@@ -28,7 +28,7 @@
28#include <linux/init.h> 28#include <linux/init.h>
29#include <linux/if_pppox.h> 29#include <linux/if_pppox.h>
30#include <linux/ppp_defs.h> 30#include <linux/ppp_defs.h>
31#include <linux/if_ppp.h> 31#include <linux/ppp-ioctl.h>
32#include <linux/ppp_channel.h> 32#include <linux/ppp_channel.h>
33#include <linux/kmod.h> 33#include <linux/kmod.h>
34 34
diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c
index df884dde2a51..885dbdd9c39e 100644
--- a/drivers/net/ppp/pptp.c
+++ b/drivers/net/ppp/pptp.c
@@ -23,7 +23,7 @@
23#include <linux/ppp_channel.h> 23#include <linux/ppp_channel.h>
24#include <linux/ppp_defs.h> 24#include <linux/ppp_defs.h>
25#include <linux/if_pppox.h> 25#include <linux/if_pppox.h>
26#include <linux/if_ppp.h> 26#include <linux/ppp-ioctl.h>
27#include <linux/notifier.h> 27#include <linux/notifier.h>
28#include <linux/file.h> 28#include <linux/file.h>
29#include <linux/in.h> 29#include <linux/in.h>
@@ -481,7 +481,7 @@ static int pptp_connect(struct socket *sock, struct sockaddr *uservaddr,
481 481
482 po->chan.mtu = dst_mtu(&rt->dst); 482 po->chan.mtu = dst_mtu(&rt->dst);
483 if (!po->chan.mtu) 483 if (!po->chan.mtu)
484 po->chan.mtu = PPP_MTU; 484 po->chan.mtu = PPP_MRU;
485 ip_rt_put(rt); 485 ip_rt_put(rt);
486 po->chan.mtu -= PPTP_HEADER_OVERHEAD; 486 po->chan.mtu -= PPTP_HEADER_OVERHEAD;
487 487
@@ -670,10 +670,8 @@ static int __init pptp_init_module(void)
670 pr_info("PPTP driver version " PPTP_DRIVER_VERSION "\n"); 670 pr_info("PPTP driver version " PPTP_DRIVER_VERSION "\n");
671 671
672 callid_sock = vzalloc((MAX_CALLID + 1) * sizeof(void *)); 672 callid_sock = vzalloc((MAX_CALLID + 1) * sizeof(void *));
673 if (!callid_sock) { 673 if (!callid_sock)
674 pr_err("PPTP: cann't allocate memory\n");
675 return -ENOMEM; 674 return -ENOMEM;
676 }
677 675
678 err = gre_add_protocol(&gre_pptp_protocol, GREPROTO_PPTP); 676 err = gre_add_protocol(&gre_pptp_protocol, GREPROTO_PPTP);
679 if (err) { 677 if (err) {