]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_nexthop.c
bgpd: Cleanup some duplicated code
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 30 May 2018 21:47:48 +0000 (17:47 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 30 May 2018 21:47:48 +0000 (17:47 -0400)
commitf6bdc08004a24ac6c8cc90e0cab89e89d9739824
treef2ab03b8871120a68b10b370676018b49976ee79
parent68542a6da651a4a3f5d280482313f14508618c43
bgpd: Cleanup some duplicated code

We have 2 code paths that were duplicating a bunch of code
for the deletion of connected prefixes.

This simplifies the code path and makes the code look a bit
cleaner.

I did not touch the _add path because the v4 if statement
had some code I did not have time to look into.  Future project.

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