diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-25 18:44:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-25 18:44:40 -0400 |
| commit | 22b788b4c4b0ee2efd04d83d2fc539d8986961d6 (patch) | |
| tree | dcf7e3b5ae895be51b7e619bb70fe945685729aa /zebra/if_netlink.c | |
| parent | cfb3b1a37d0339e79bd1b11314f679d8c15d62d7 (diff) | |
| parent | 0f08a57a073814a0b7eec49bc378e043151146e2 (diff) | |
Merge pull request #2300 from ajones-rvbd/ajones-issue-2299
zebra/if_netlink: trivial cleanup of IFLA_WIRELESS
Diffstat (limited to 'zebra/if_netlink.c')
| -rw-r--r-- | zebra/if_netlink.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 7423e9237f..6c32407f7b 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -597,7 +597,6 @@ static int netlink_interface(struct sockaddr_nl *snl, struct nlmsghdr *h, memset(linkinfo, 0, sizeof linkinfo); 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)) { if (IS_ZEBRA_DEBUG_KERNEL) @@ -605,7 +604,6 @@ static int netlink_interface(struct sockaddr_nl *snl, struct nlmsghdr *h, __func__); return 0; } -#endif /* IFLA_WIRELESS */ if (tb[IFLA_IFNAME] == NULL) return -1; @@ -1122,7 +1120,6 @@ int netlink_link_change(struct sockaddr_nl *snl, struct nlmsghdr *h, memset(linkinfo, 0, sizeof linkinfo); 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)) { if (IS_ZEBRA_DEBUG_KERNEL) @@ -1130,7 +1127,6 @@ int netlink_link_change(struct sockaddr_nl *snl, struct nlmsghdr *h, __func__); return 0; } -#endif /* IFLA_WIRELESS */ if (tb[IFLA_IFNAME] == NULL) return -1; |
