summaryrefslogtreecommitdiffstats
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-14 23:54:11 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-14 23:54:11 +0200
commitc25e2f1ad1a0c28b3ffd32b1312d2a487d33f064 (patch)
tree56aa178aaac4fd200263ba98a0c9b8023d7e1047 /zebra/rt_netlink.c
parentzebra: Print out netlink message type instead of number (diff)
downloadfrr-c25e2f1ad1a0c28b3ffd32b1312d2a487d33f064.tar.xz
frr-c25e2f1ad1a0c28b3ffd32b1312d2a487d33f064.zip
zebra: Newer kernels send data about mroute changes
Newer linux kernels apparently send data down the netlink bus for the creation of mroutes. Add a bit of code to notice this and to handle it appropriately( ie do nothing at this point in time ) as that the correct place to do this is in the pim socket in pimd. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--zebra/rt_netlink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 20b88bb6d..46198bbf5 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -833,7 +833,9 @@ int netlink_route_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
return 0;
}
- if (!(rtm->rtm_family == AF_INET || rtm->rtm_family == AF_INET6)) {
+ if (!(rtm->rtm_family == AF_INET ||
+ rtm->rtm_family == AF_INET6 ||
+ rtm->rtm_family == RTNL_FAMILY_IPMR )) {
flog_warn(
EC_ZEBRA_UNKNOWN_FAMILY,
"Invalid address family: %u received from kernel route change: %s",