summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ipcp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-04-05 02:23:48 +0000
committerbrian <brian@FreeBSD.org>2001-04-05 02:23:48 +0000
commit6359851d3261d104a75c098c40c173b4bf2e9372 (patch)
tree4f0e16a49075d0a2fa9c4327a78b7afad12e30f1 /usr.sbin/ppp/ipcp.c
parentfa88e7e9b21ea8d131a8ba163f8f7a88d2cea818 (diff)
downloadFreeBSD-src-6359851d3261d104a75c098c40c173b4bf2e9372.zip
FreeBSD-src-6359851d3261d104a75c098c40c173b4bf2e9372.tar.gz
When we change the interface MTU, run through the routing table and tweak
all route MTUs too.
Diffstat (limited to 'usr.sbin/ppp/ipcp.c')
-rw-r--r--usr.sbin/ppp/ipcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c
index 6369a48..3e04e47 100644
--- a/usr.sbin/ppp/ipcp.c
+++ b/usr.sbin/ppp/ipcp.c
@@ -744,7 +744,7 @@ static int
ipcp_SetIPaddress(struct bundle *bundle, struct in_addr myaddr,
struct in_addr hisaddr, int silent)
{
- struct in_addr mask, oaddr, none = { INADDR_ANY };
+ struct in_addr mask, oaddr;
mask = addr2mask(myaddr);
@@ -764,7 +764,7 @@ ipcp_SetIPaddress(struct bundle *bundle, struct in_addr myaddr,
iface_inDelete(bundle->iface, oaddr);
if (bundle->ncp.ipcp.cfg.sendpipe > 0 || bundle->ncp.ipcp.cfg.recvpipe > 0)
- bundle_SetRoute(bundle, RTM_CHANGE, hisaddr, myaddr, none, 0, 0);
+ rt_Update(bundle, hisaddr, myaddr);
if (Enabled(bundle, OPT_SROUTES))
route_Change(bundle, bundle->ncp.ipcp.route, myaddr, hisaddr,
OpenPOWER on IntegriCloud