X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fdemand.c;h=c2eeb41a4d544cedfa7eef79731bff42d70f4859;hb=827e4952d6bcc8dd9c8fdda54a509e5b59685c34;hp=d610d69ac282ea83d9ca841bdea21b7c6663906a;hpb=fb3529ccfc1868e8563a2dcfbae7b386125fccbc;p=ppp.git diff --git a/pppd/demand.c b/pppd/demand.c index d610d69..c2eeb41 100644 --- a/pppd/demand.c +++ b/pppd/demand.c @@ -51,7 +51,7 @@ #include #endif -#include "pppd.h" +#include "pppd-private.h" #include "fsm.h" #include "ipcp.h" #include "lcp.h" @@ -97,7 +97,7 @@ demand_conf(void) flush_flag = 0; fcs = PPP_INITFCS; - netif_set_mtu(0, MIN(lcp_allowoptions[0].mru, PPP_MRU)); + ppp_set_mtu(0, MIN(lcp_allowoptions[0].mru, PPP_MRU)); if (ppp_send_config(0, PPP_MRU, (u_int32_t) 0, 0, 0) < 0 || ppp_recv_config(0, PPP_MRU, (u_int32_t) 0, 0, 0) < 0) fatal("Couldn't set up demand-dialled PPP interface: %m");