]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_nhg.c
zebra: Put nhe ifp setting inside alloc
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 11 Apr 2019 16:11:49 +0000 (12:11 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:39 +0000 (11:13 -0400)
commit7b683a96e4227956cfe6236628885b1421b62781
tree5fa7e63436dd586b5080060735b35d0b97f7f72a
parentbbb3940ed11d62df8263bb97ef393c1d7de0220b
zebra: Put nhe ifp setting inside alloc

Put the setting of the ifp on a nexthop group hash
entry into the zebra_nhg_alloc() function. It should
only be added if its not a group/recursive (it doesn't
have any depends) and its nexthop type has an ifindex.

This also provides functionality for proto-side ifp
setting.

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