summaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2008-11-04 14:51:45 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2008-11-04 14:51:45 +0100
commit6c8102e3a8bf8ae4c15d383f0bd31294dd2ef76e (patch)
treee2699584c87edc9395d409044471a1fe81a03be7 /sysdep
parenta39b165e45fbfea053fd0237e0d5a3ebdcf40f78 (diff)
downloadbird-6c8102e3a8bf8ae4c15d383f0bd31294dd2ef76e.tar
bird-6c8102e3a8bf8ae4c15d383f0bd31294dd2ef76e.zip
Ignore messages related to wireless extensions.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/linux/netlink/netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c
index 38d00af..08817ca 100644
--- a/sysdep/linux/netlink/netlink.c
+++ b/sysdep/linux/netlink/netlink.c
@@ -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;
}