summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-01-24 08:53:39 +0000
committerru <ru@FreeBSD.org>2000-01-24 08:53:39 +0000
commit8976fc6f8951a5d18f301132b051ced7bf83899d (patch)
tree08c54efb7f93ecc5df3c0887ea1929e7312fa6e9 /sys
parent16f4eb83c12b99d85f8ce64dd69df9c0e60589c4 (diff)
downloadFreeBSD-src-8976fc6f8951a5d18f301132b051ced7bf83899d.zip
FreeBSD-src-8976fc6f8951a5d18f301132b051ced7bf83899d.tar.gz
Notify user processes about interface's MTU change.
Reviewed by: wollman, freebsd-net
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if.c4
1 files changed, 3 insertions, 1 deletions
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.
*/
OpenPOWER on IntegriCloud