From 8976fc6f8951a5d18f301132b051ced7bf83899d Mon Sep 17 00:00:00 2001 From: ru Date: Mon, 24 Jan 2000 08:53:39 +0000 Subject: Notify user processes about interface's MTU change. Reviewed by: wollman, freebsd-net --- sys/net/if.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/net/if.c') diff --git a/sys/net/if.c b/sys/net/if.c index 1ae6f06..a2834ad 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -848,8 +848,10 @@ ifioctl(so, cmd, data, p) if (ifr->ifr_mtu < IF_MINMTU || ifr->ifr_mtu > IF_MAXMTU) return (EINVAL); error = (*ifp->if_ioctl)(ifp, cmd, data); - if (error == 0) + if (error == 0) { getmicrotime(&ifp->if_lastchange); + rt_ifmsg(ifp); + } /* * If the link MTU changed, do network layer specific procedure. */ -- cgit v1.1