]> git.puffer.fish Git - mirror/frr.git/commitdiff
2005-01-24 Martin Pot <mpot at martybugs.net>
authorpaul <paul>
Mon, 24 Jan 2005 09:05:27 +0000 (09:05 +0000)
committerpaul <paul>
Mon, 24 Jan 2005 09:05:27 +0000 (09:05 +0000)
* zebra/rt_netlink.c: ignore wireless newlink netlink messages.

zebra/ChangeLog
zebra/rt_netlink.c

index b3710cf201c493fa14071b1417731ae57e91f380..38824a2a1cf49324c392812f2df8724f81824953 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-24 Martin Pot <mpot at martybugs.net>
+
+       * zebra/rt_netlink.c: ignore wireless newlink netlink messages.
+
 2005-01-18 Hasso Tepper <hasso at quagga.net>
 
        * interface.c: Better statistics output in "show interface" command in
index c636a399425d0ba2e6f9a1c68b90a890ab0aebbe..f5903a63fe9e9861bafd6b641f7704e95297da5b 100644 (file)
@@ -480,6 +480,15 @@ netlink_interface (struct sockaddr_nl *snl, struct nlmsghdr *h)
   /* Looking up interface name. */
   memset (tb, 0, sizeof tb);
   netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len);
+  
+  /* check for wireless messages to ignore */
+  if ((tb[IFLA_WIRELESS] != NULL) && (ifi->ifi_change == 0))
+    {
+      if (IS_ZEBRA_DEBUG_KERNEL)
+        zlog_debug ("%s: ignoring IFLA_WIRELESS message", __func__);
+      return 0;
+    }
+
   if (tb[IFLA_IFNAME] == NULL)
     return -1;
   name = (char *) RTA_DATA (tb[IFLA_IFNAME]);
@@ -938,6 +947,15 @@ netlink_link_change (struct sockaddr_nl *snl, struct nlmsghdr *h)
   /* Looking up interface name. */
   memset (tb, 0, sizeof tb);
   netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len);
+
+  /* check for wireless messages to ignore */
+  if ((tb[IFLA_WIRELESS] != NULL) && (ifi->ifi_change == 0))
+    {
+      if (IS_ZEBRA_DEBUG_KERNEL)
+        zlog_debug ("%s: ignoring IFLA_WIRELESS message", __func__);
+      return 0;
+    }
+  
   if (tb[IFLA_IFNAME] == NULL)
     return -1;
   name = (char *) RTA_DATA (tb[IFLA_IFNAME]);