mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Notify user processes about interface's MTU change.
Reviewed by: wollman, freebsd-net
This commit is contained in:
parent
d0cde06dd3
commit
48f71763a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56517
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user