From: paul Date: Mon, 24 Jan 2005 09:05:27 +0000 (+0000) Subject: 2005-01-24 Martin Pot X-Git-Tag: frr-2.0-rc1~3230 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c15cb24241277db9fb4102ddc712dc3297f16d1f;p=mirror%2Ffrr.git 2005-01-24 Martin Pot * zebra/rt_netlink.c: ignore wireless newlink netlink messages. --- diff --git a/zebra/ChangeLog b/zebra/ChangeLog index b3710cf201..38824a2a1c 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -1,3 +1,7 @@ +2005-01-24 Martin Pot + + * zebra/rt_netlink.c: ignore wireless newlink netlink messages. + 2005-01-18 Hasso Tepper * interface.c: Better statistics output in "show interface" command in diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index c636a39942..f5903a63fe 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -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]);