]> git.proxmox.com Git - mirror_frr.git/commit
lib: add support for interface nexthops on nexthop groups
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 14 Feb 2019 22:00:14 +0000 (20:00 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 15 Feb 2019 00:57:39 +0000 (22:57 -0200)
commit1c869b64180e9a3d33e9bfec7113418231489522
tree9a55c27dd767bcfb01903992579763a75617b271
parentb43bb64f82f599ec9fec0cb89bd2dd05cb54ab87
lib: add support for interface nexthops on nexthop groups

This patch adds support to nexthops of type NEXTHOP_TYPE_IFINDEX to
nexthop-groups. This should be especially useful when dealing with
p2p interfaces like tunnels that don't have IP addresses assigned
to them.

NOTE: nh->addr can be NULL now, so we should always perform a null
check before dereferencing this pointer.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/nexthop_group.c