diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2000-01-24 08:53:39 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2000-01-24 08:53:39 +0000 |
commit | 48f71763a8428a94be0caabc374188f15b467f6c (patch) | |
tree | 6767fe3213d3132723e7b5efd71ebd9a8c95769a /sys/net | |
parent | d0cde06dd36a6b67bf3e6061c7801d853d62baee (diff) | |
download | src-48f71763a8428a94be0caabc374188f15b467f6c.tar.gz src-48f71763a8428a94be0caabc374188f15b467f6c.zip |
Notify user processes about interface's MTU change.
Reviewed by: wollman, freebsd-net
Notes
Notes:
svn path=/head/; revision=56517
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 1ae6f06dce10..a2834adc7e10 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. */ |