]> git.puffer.fish Git - mirror/frr.git/commitdiff
Looks like bug #320 is finally fixed now.
authorDenis Ovsienko <linux@pilot.org.ua>
Tue, 21 Aug 2007 16:15:39 +0000 (16:15 +0000)
committerDenis Ovsienko <linux@pilot.org.ua>
Tue, 21 Aug 2007 16:15:39 +0000 (16:15 +0000)
zebra/ChangeLog
zebra/kernel_socket.c

index abe8199bfd034c5ee9659c0f9efa561b6b94041a..fa90cd147a849b272eed1dcdbb4ddca2355ce936 100644 (file)
@@ -3,6 +3,8 @@
        * ioctl_solaris.c: (if_get_mtu) Don't break things if either
          IPv6 was disabled at compile time or the current interface
          hasn't it enabled.
+       * kernel_socket.c: (ifm_read) Don't forget to call if_get_mtu()
+         for updated interfaces.
 
 2007-08-17 Denis Ovsienko
 
index 9d2310b9ffac47217462687bb224e6225969f46f..ff858bd3dfee5f66d98189437bd6e77ba15081e0 100644 (file)
@@ -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