[package] broadcom-wl: introduce "disabled" option for wifi-iface section to shutdown...
[openwrt.git] / package / ppp / patches / 207-lcp_mtu_max.patch
1 --- a/pppd/lcp.c
2 +++ b/pppd/lcp.c
3 @@ -1904,12 +1904,12 @@ lcp_up(f)
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.050006 seconds and 5 git commands to generate.