consider virtual dependencies (generated by using PROVIDES:=) when generating the...
[openwrt.git] / package / ppp / patches / 210-lcp_mtu_max.patch
1 Index: ppp-2.4.3/pppd/lcp.c
2 ===================================================================
3 --- ppp-2.4.3.orig/pppd/lcp.c 2007-06-04 13:22:07.874658152 +0200
4 +++ ppp-2.4.3/pppd/lcp.c 2007-06-04 13:22:13.945735208 +0200
5 @@ -1891,12 +1891,12 @@
6 * the interface MTU is set to the lowest of that, the
7 * MTU we want to use, and our link MRU.
8 */
9 - mtu = ho->neg_mru? ho->mru: PPP_MRU;
10 + mtu = MIN(ho->neg_mru? ho->mru: PPP_MRU, ao->mru);
11 mru = go->neg_mru? MAX(wo->mru, go->mru): PPP_MRU;
12 #ifdef HAVE_MULTILINK
13 if (!(multilink && go->neg_mrru && ho->neg_mrru))
14 #endif /* HAVE_MULTILINK */
15 - netif_set_mtu(f->unit, MIN(MIN(mtu, mru), ao->mru));
16 + netif_set_mtu(f->unit, MIN(mtu, mru));
17 ppp_send_config(f->unit, mtu,
18 (ho->neg_asyncmap? ho->asyncmap: 0xffffffff),
19 ho->neg_pcompression, ho->neg_accompression);
This page took 0.038784 seconds and 5 git commands to generate.