]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Add RTNLGRP_NEXTHOP group to the kernel socket
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 7 Mar 2019 22:55:31 +0000 (17:55 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:36 +0000 (11:13 -0400)
Initialize the netlink socket with the RTNLGRP_NEXTHOP
group as well to listen for.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/kernel_netlink.c

index f52b4746ae7f0472dc9da9f0f7eb523a6781288f..615926b0de5f8f7814c1046202495119237cc63b 100644 (file)
@@ -1096,7 +1096,8 @@ void kernel_init(struct zebra_ns *zns)
                RTMGRP_IPV4_MROUTE             |
                RTMGRP_NEIGH                   |
                (1 << (RTNLGRP_IPV4_RULE - 1)) |
-               (1 << (RTNLGRP_IPV6_RULE - 1));
+               (1 << (RTNLGRP_IPV6_RULE - 1)) |
+               (1 << (RTNLGRP_NEXTHOP - 1));
 
        snprintf(zns->netlink.name, sizeof(zns->netlink.name),
                 "netlink-listen (NS %u)", zns->ns_id);