Notify user processes about interface's MTU change.

Reviewed by:	wollman, freebsd-net
This commit is contained in:
Ruslan Ermilov 2000-01-24 08:53:39 +00:00
parent d0cde06dd3
commit 48f71763a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56517

View File

@ -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.
*/