From 1e19315262b1eb1228af31f43aee7c9c3e9eefc6 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 14 Feb 2005 23:53:05 +0000 Subject: 2005-02-14 Paul Jakma * Not all Linux netlink systems have IFLA_WIRELESS --- zebra/rt_netlink.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zebra/rt_netlink.c') diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 0d9bbbd4..1d6c658c 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -488,6 +488,7 @@ netlink_interface (struct sockaddr_nl *snl, struct nlmsghdr *h) memset (tb, 0, sizeof tb); netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len); +#ifdef IFLA_WIRELESS /* check for wireless messages to ignore */ if ((tb[IFLA_WIRELESS] != NULL) && (ifi->ifi_change == 0)) { @@ -495,6 +496,7 @@ netlink_interface (struct sockaddr_nl *snl, struct nlmsghdr *h) zlog_debug ("%s: ignoring IFLA_WIRELESS message", __func__); return 0; } +#endif /* IFLA_WIRELESS */ if (tb[IFLA_IFNAME] == NULL) return -1; @@ -955,6 +957,7 @@ netlink_link_change (struct sockaddr_nl *snl, struct nlmsghdr *h) memset (tb, 0, sizeof tb); netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len); +#ifdef IFLA_WIRELESS /* check for wireless messages to ignore */ if ((tb[IFLA_WIRELESS] != NULL) && (ifi->ifi_change == 0)) { @@ -962,6 +965,7 @@ netlink_link_change (struct sockaddr_nl *snl, struct nlmsghdr *h) zlog_debug ("%s: ignoring IFLA_WIRELESS message", __func__); return 0; } +#endif /* IFLA_WIRELESS */ if (tb[IFLA_IFNAME] == NULL) return -1; -- cgit v1.2.3