]> git.puffer.fish Git - mirror/frr.git/commit
bgpd, lib, pimd: Make nexthop_update decoding common
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 5 Feb 2018 08:44:29 +0000 (03:44 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 5 Feb 2018 08:44:29 +0000 (03:44 -0500)
commit4a749e2cb20a0b473e7f1e7e17d8f2b8a4469aef
tree645311846435f7b34d51095a065ffe6e15bb0d2b
parentaab09c104e38dff1b046e6af01b5eaafa52dd10c
bgpd, lib, pimd: Make nexthop_update decoding common

Create a zapi_nexthop_update_decode function that both
pim and bgp use to decode the message from zebra.

There probably could be further optimizations but I opted
to keep the code as similiar as is possible between the
originals because they both make some assumptions about
code flow that I do not fully understand yet.

The real goal here is that I want to create a new
user of the nexthop tracking code from a higher level
daemon and I see no need to re-implement this damn
code again for a 3rd time.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_nht.c
lib/zclient.c
lib/zclient.h
pimd/pim_nht.c