1 diff -Naur ppp-2.4.4.orig/pppd/plugins/pppoatm/pppoatm.c ppp-2.4.4/pppd/plugins/pppoatm/pppoatm.c
2 --- ppp-2.4.4.orig/pppd/plugins/pppoatm/pppoatm.c 2009-05-07 16:23:41.000000000 -0400
3 +++ ppp-2.4.4/pppd/plugins/pppoatm/pppoatm.c 2009-05-07 16:23:57.000000000 -0400
8 - if (mtu > pppoatm_max_mtu)
9 - error("Couldn't increase MTU to %d", mtu);
10 + if (pppoatm_max_mtu && mtu > pppoatm_max_mtu) {
11 + warn("Couldn't increase MTU to %d. Using %d",
12 + mtu, pppoatm_max_mtu);
13 + mtu = pppoatm_max_mtu;
16 sock = socket(AF_INET, SOCK_DGRAM, 0);
22 - if (mru > pppoatm_max_mru)
23 - error("Couldn't increase MRU to %d", mru);
24 + if (pppoatm_max_mru && mru > pppoatm_max_mru) {
25 + warn("Couldn't increase MRU to %d. Using %d",
26 + mru, pppoatm_max_mru);
27 + mru = pppoatm_max_mru;
31 void plugin_init(void)
32 diff -Naur ppp-2.4.4.orig/pppd/plugins/pppoatm/pppoatm.c ppp-2.4.4/pppd/plugins/pppoatm/pppoatm.c
33 --- ppp-2.4.4.orig/pppd/plugins/pppoatm/pppoatm.c 2009-05-07 16:23:41.000000000 -0400
34 +++ ppp-2.4.4/pppd/plugins/pppoatm/pppoatm.c 2009-05-07 16:23:57.000000000 -0400
39 - if (mtu > pppoatm_max_mtu)
40 - error("Couldn't increase MTU to %d", mtu);
41 + if (pppoatm_max_mtu && mtu > pppoatm_max_mtu) {
42 + warn("Couldn't increase MTU to %d. Using %d",
43 + mtu, pppoatm_max_mtu);
44 + mtu = pppoatm_max_mtu;
47 sock = socket(AF_INET, SOCK_DGRAM, 0);
53 - if (mru > pppoatm_max_mru)
54 - error("Couldn't increase MRU to %d", mru);
55 + if (pppoatm_max_mru && mru > pppoatm_max_mru) {
56 + warn("Couldn't increase MRU to %d. Using %d",
57 + mru, pppoatm_max_mru);
58 + mru = pppoatm_max_mru;
62 void plugin_init(void)