summaryrefslogtreecommitdiffstats
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
authorDenis Ovsienko <linux@pilot.org.ua>2007-08-21 18:15:39 +0200
committerDenis Ovsienko <linux@pilot.org.ua>2007-08-21 18:15:39 +0200
commit1ba27564f3852083839bfa1f91889cb46c780f2f (patch)
tree52dba3326d078a18f74db335b567bab13f394eff /zebra/kernel_socket.c
parentFixed ioctl_solaris.c:if_get_mtu() for IPv6'less operation (diff)
downloadfrr-1ba27564f3852083839bfa1f91889cb46c780f2f.tar.xz
frr-1ba27564f3852083839bfa1f91889cb46c780f2f.zip
Looks like bug #320 is finally fixed now.
Diffstat (limited to 'zebra/kernel_socket.c')
-rw-r--r--zebra/kernel_socket.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index 9d2310b9f..ff858bd3d 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -472,6 +472,15 @@ ifm_read (struct if_msghdr *ifm)
if_delete_update (ifp);
}
#endif /* RTM_IFANNOUNCE */
+ if (if_is_up (ifp))
+ {
+#if defined(__bsdi__)
+ if_kvm_get_mtu (ifp);
+#else
+ if_get_mtu (ifp);
+#endif /* __bsdi__ */
+ if_get_metric (ifp);
+ }
}
#ifdef HAVE_NET_RT_IFLIST