mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 23:53:49 +00:00
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.
This commit is contained in:
parent
6a3b353168
commit
ce2641ee1b
@ -497,6 +497,9 @@ netlink_interface (struct sockaddr_nl *snl, struct nlmsghdr *h,
|
|||||||
if (len < 0)
|
if (len < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
if (ifi->ifi_family == AF_BRIDGE)
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* Looking up interface name. */
|
/* Looking up interface name. */
|
||||||
memset (tb, 0, sizeof tb);
|
memset (tb, 0, sizeof tb);
|
||||||
netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len);
|
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)
|
if (len < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
if (ifi->ifi_family == AF_BRIDGE)
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* Looking up interface name. */
|
/* Looking up interface name. */
|
||||||
memset (tb, 0, sizeof tb);
|
memset (tb, 0, sizeof tb);
|
||||||
netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len);
|
netlink_parse_rtattr (tb, IFLA_MAX, IFLA_RTA (ifi), len);
|
||||||
|
Loading…
Reference in New Issue
Block a user