X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fdemand.c;fp=pppd%2Fdemand.c;h=d46776692fa04f7158abcaac0fb4fd92af12fc22;hp=957b84a97d3d5c481c7af26015c48c88fe5d2f98;hb=cffe80dd87a8ba3fba8f56fda45d2c0cfd62ba4d;hpb=37a8acc7ee2527693d0c8ba82b2eaea249abde34 diff --git a/pppd/demand.c b/pppd/demand.c index 957b84a..d467766 100644 --- a/pppd/demand.c +++ b/pppd/demand.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: demand.c,v 1.14 2000/12/27 23:27:29 paulus Exp $" +#define RCSID "$Id: demand.c,v 1.15 2001/03/08 05:14:26 paulus Exp $" #include #include @@ -85,6 +85,7 @@ demand_conf() flush_flag = 0; fcs = PPP_INITFCS; + netif_set_mtu(0, MIN(lcp_allowoptions[0].mru, PPP_MRU)); ppp_send_config(0, PPP_MRU, (u_int32_t) 0, 0, 0); ppp_recv_config(0, PPP_MRU, (u_int32_t) 0, 0, 0);