add a gcc 4.2 snapshot
[openwrt.git] / package / ppp / patches / 210-lcp_mtu_max.patch
1 --- ppp-2.4.3/pppd/lcp.c.old 2006-10-10 14:19:11.000000000 +0200
2 +++ ppp-2.4.3/pppd/lcp.c 2006-10-10 14:19:55.000000000 +0200
3 @@ -1891,12 +1891,12 @@
4 * the interface MTU is set to the lowest of that, the
5 * MTU we want to use, and our link MRU.
6 */
7 - mtu = ho->neg_mru? ho->mru: PPP_MRU;
8 + mtu = MIN(ho->neg_mru? ho->mru: PPP_MRU, ao->mru);
9 mru = go->neg_mru? MAX(wo->mru, go->mru): PPP_MRU;
10 #ifdef HAVE_MULTILINK
11 if (!(multilink && go->neg_mrru && ho->neg_mrru))
12 #endif /* HAVE_MULTILINK */
13 - netif_set_mtu(f->unit, MIN(MIN(mtu, mru), ao->mru));
14 + netif_set_mtu(f->unit, MIN(mtu, mru));
15 ppp_send_config(f->unit, mtu,
16 (ho->neg_asyncmap? ho->asyncmap: 0xffffffff),
17 ho->neg_pcompression, ho->neg_accompression);
This page took 0.044742 seconds and 5 git commands to generate.