]> git.proxmox.com Git - mirror_frr.git/commit
lib: Fix nexthop encoding
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 14:29:30 +0000 (09:29 -0500)
commit9d080116b9b439e4bee274af0bf85b07871a269e
treea1be3e93f7894c928de3e91748365a1080e10608
parent06603017b10d3705049310082fc16eed934c5440
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