]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Ignore messages related to wireless extensions.
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 4 Nov 2008 13:51:45 +0000 (14:51 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 4 Nov 2008 13:51:45 +0000 (14:51 +0100)
sysdep/linux/netlink/netlink.c

index 38d00afe7343e0c8edef32f2d32280f080125656..08817ca4b5a2d45badea985079c01e1b055b5c0e 100644 (file)
@@ -255,7 +255,7 @@ static void
 nl_parse_link(struct nlmsghdr *h, int scan)
 {
   struct ifinfomsg *i;
-  struct rtattr *a[IFLA_STATS+1];
+  struct rtattr *a[IFLA_WIRELESS+1];
   int new = h->nlmsg_type == RTM_NEWLINK;
   struct iface f;
   struct iface *ifi;
@@ -268,7 +268,7 @@ nl_parse_link(struct nlmsghdr *h, int scan)
   if (!a[IFLA_IFNAME] || RTA_PAYLOAD(a[IFLA_IFNAME]) < 2 ||
       !a[IFLA_MTU] || RTA_PAYLOAD(a[IFLA_MTU]) != 4)
     {
-      if (scan)
+      if (scan || !a[IFLA_WIRELESS])
         log(L_ERR "nl_parse_link: Malformed message received");
       return;
     }