zebra: Add RTNLGRP_NEXTHOP group to the kernel socket

Initialize the netlink socket with the RTNLGRP_NEXTHOP
group as well to listen for.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2019-03-07 17:55:31 -05:00
parent ce0e698017
commit da0ad5cfc8

View 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);