]> git.puffer.fish Git - mirror/frr.git/commit
lib: Fix nexthop encoding 5708/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 18 Jan 2020 14:25:38 +0000 (09:25 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 18 Jan 2020 21:28:01 +0000 (16:28 -0500)
commitd1375184962a3ec4ae7c282d360be5185034ecf1
treeac05a55deed49f3342b3620d5511e7186b79c9bd
parente77c04dbc6c306d032f095b7ee3dd0a0be380806
lib: Fix nexthop encoding

Commit
68a02e06e5f103048d947262c08c569056f74d1c broke nexthop encoding
for nexthop tracking.

This code combined the different types of nexthop encoding
being done in the zapi protocol.  What was missed that
resolved nexthops of type NEXTHOP_TYPE_IPV4|6 have an ifindex
value that was not being reported.  This commit ensures
that we always send this data( even if it is 0).

The following test commit will ensure that this stays working
as is expected by an upper level protocol.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zclient.c