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
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;
17 sock = socket(AF_INET, SOCK_DGRAM, 0);
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;
32 void plugin_init(void)