[package] kernel/modules: split network makefile into netdevices and netsupport
[openwrt.git] / package / ppp / patches / 106-debian_pppoatm_fix_mtu.patch
1 Index: ppp-2.4.3/pppd/plugins/pppoatm/pppoatm.c
2 ===================================================================
3 --- ppp-2.4.3.orig/pppd/plugins/pppoatm/pppoatm.c 2007-06-04 13:22:10.825209600 +0200
4 +++ ppp-2.4.3/pppd/plugins/pppoatm/pppoatm.c 2007-06-04 13:22:11.014180872 +0200
5 @@ -179,8 +179,11 @@
6 int sock;
7 struct ifreq ifr;
8
9 - if (mtu > pppoatm_max_mtu)
10 - error("Couldn't increase MTU to %d", mtu);
11 + if (pppoatm_max_mtu && mtu > pppoatm_max_mtu) {
12 + warn("Couldn't increase MTU to %d. Using %d",
13 + mtu, pppoatm_max_mtu);
14 + mtu = pppoatm_max_mtu;
15 + }
16
17 sock = socket(AF_INET, SOCK_DGRAM, 0);
18 if (sock < 0)
19 @@ -198,8 +201,11 @@
20 int pcomp,
21 int accomp)
22 {
23 - if (mru > pppoatm_max_mru)
24 - error("Couldn't increase MRU to %d", mru);
25 + if (pppoatm_max_mru && mru > pppoatm_max_mru) {
26 + warn("Couldn't increase MRU to %d. Using %d",
27 + mru, pppoatm_max_mru);
28 + mru = pppoatm_max_mru;
29 + }
30 }
31
32 void plugin_init(void)
This page took 0.04534 seconds and 5 git commands to generate.