Home | History | Annotate | Download | only in pppd

Lines Matching refs:mru

121     { "mru", o_int, &lcp_wantoptions[0].mru,
122 "Set MRU (maximum received packet size) for negotiation",
124 { "default-mru", o_bool, &lcp_wantoptions[0].neg_mru,
125 "Disable MRU negotiation (use default 1500)",
127 { "-mru", o_bool, &lcp_wantoptions[0].neg_mru,
128 "Disable MRU negotiation (use default 1500)",
131 { "mtu", o_int, &lcp_allowoptions[0].mru,
351 wo->mru = DEFMRU;
359 ao->mru = MAXMRU;
687 return (LENCISHORT(go->neg_mru && go->mru != DEFMRU) +
762 ADDCISHORT(CI_MRU, go->neg_mru && go->mru != DEFMRU, go->mru);
911 ACKCISHORT(CI_MRU, go->neg_mru && go->mru != DEFMRU, go->mru);
1059 * we want. Therefore, accept any MRU less than what we asked for,
1060 * but then ignore the new value when setting the MRU in the kernel.
1061 * If they send us a bigger MRU than what we asked, accept it, up to
1062 * the limit of the default MRU we'd get if we didn't negotiate.
1064 if (go->neg_mru && go->mru != DEFMRU) {
1066 if (cishort <= wo->mru || cishort <= DEFMRU)
1067 try.mru = cishort;
1255 if ((go->neg_mru && go->mru != DEFMRU)
1261 try.mru = cishort;
1458 REJCISHORT(CI_MRU, neg_mru, go->mru);
1559 GETSHORT(cishort, p); /* Parse MRU */
1573 ho->neg_mru = 1; /* Remember he sent MRU */
1574 ho->mru = cishort; /* And remember value */
1901 int mtu, mru;
1910 * the MRU our peer wanted. If we negotiated an MRU,
1911 * set our MRU to the larger of value we wanted and
1913 * Note on the MTU: the link MTU can be the MRU the peer wanted,
1915 * MTU we want to use, and our link MRU.
1917 mtu = ho->neg_mru? ho->mru: PPP_MRU;
1918 mru = go->neg_mru? MAX(wo->mru, go->mru): PPP_MRU;
1922 netif_set_mtu(f->unit, MIN(MIN(mtu, mru), ao->mru));
1926 ppp_recv_config(f->unit, mru,
1931 peer_mru[f->unit] = ho->mru;
2042 printer(arg, "mru %d", cishort);