diff options
| author | vivek <vivek@cumulusnetworks.com> | 2015-11-20 11:09:25 -0800 |
|---|---|---|
| committer | vivek <vivek@cumulusnetworks.com> | 2015-11-20 11:09:25 -0800 |
| commit | ce2641ee1b440ecc10a3b73824970c2dffa3b96f (patch) | |
| tree | b9ccbd39df0ae333beda4c6eabeaabb28bd9a83f | |
| parent | 6a3b3531684a61f8500f6bfc595d649da2296c38 (diff) | |
Zebra: Ignore bridge address family netlink notifications
Ticket: CM-8045
Reviewed By: CCR-3736
Testing Done:
This is an import of patch zebra-ignore-bridge-af.patch from 2.5-br.
| -rw-r--r-- | zebra/rt_netlink.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 88fac53310..5640168dea 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -497,6 +497,9 @@ netlink_interface (struct sockaddr_nl *snl, struct nlmsghdr *h, if (len < 0) return -1; + if (ifi->ifi_family == AF_BRIDGE) + return 0; + /* Looking up interface name. */ memset (tb, 0, sizeof tb); netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len); @@ -1081,6 +1084,9 @@ netlink_link_change (struct sockaddr_nl *snl, struct nlmsghdr *h, if (len < 0) return -1; + if (ifi->ifi_family == AF_BRIDGE) + return 0; + /* Looking up interface name. */ memset (tb, 0, sizeof tb); netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len); |
