[packages] This patch adds uanytun a tiny implementaion of SATP the
[openwrt/svn-archive/archive.git] / net / quagga / patches / 130-netlink_ignore_wireless.patch
1 --- a/zebra/rt_netlink.c
2 +++ b/zebra/rt_netlink.c
3 @@ -487,6 +487,17 @@ netlink_interface (struct sockaddr_nl *s
4 /* Looking up interface name. */
5 memset (tb, 0, sizeof tb);
6 netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len);
7 +
8 +#ifdef IFLA_WIRELESS
9 + /* check for wireless messages to ignore */
10 + if ((tb[IFLA_WIRELESS] != NULL) && (ifi->ifi_change == 0))
11 + {
12 + if (IS_ZEBRA_DEBUG_KERNEL)
13 + zlog_debug ("%s: ignoring IFLA_WIRELESS message", __func__);
14 + return 0;
15 + }
16 +#endif /* IFLA_WIRELESS */
17 +
18 if (tb[IFLA_IFNAME] == NULL)
19 return -1;
20 name = (char *) RTA_DATA (tb[IFLA_IFNAME]);
21 @@ -943,6 +954,17 @@ netlink_link_change (struct sockaddr_nl
22 /* Looking up interface name. */
23 memset (tb, 0, sizeof tb);
24 netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len);
25 +
26 +#ifdef IFLA_WIRELESS
27 + /* check for wireless messages to ignore */
28 + if ((tb[IFLA_WIRELESS] != NULL) && (ifi->ifi_change == 0))
29 + {
30 + if (IS_ZEBRA_DEBUG_KERNEL)
31 + zlog_debug ("%s: ignoring IFLA_WIRELESS message", __func__);
32 + return 0;
33 + }
34 +#endif /* IFLA_WIRELESS */
35 +
36 if (tb[IFLA_IFNAME] == NULL)
37 return -1;
38 name = (char *) RTA_DATA (tb[IFLA_IFNAME]);