diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-08-24 06:07:49 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-01 13:20:18 +0200 |
commit | c7cfcb75e926f19f833d3c7881127bc743e4c661 (patch) | |
tree | 01fd0bc69e84ed62bf63bd5112a78fdaa63b5e85 /zebra/zebra_static.h | |
parent | zebra: Create zebra_static.[ch] to isolate code (diff) | |
download | frr-c7cfcb75e926f19f833d3c7881127bc743e4c661.tar.xz frr-c7cfcb75e926f19f833d3c7881127bc743e4c661.zip |
zebra: Refactor v4 and v6 static_delete
Refactor v4 and v6 static delete into 1 function.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_static.h')
-rw-r--r-- | zebra/zebra_static.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/zebra/zebra_static.h b/zebra/zebra_static.h index a3096725f..b2f5ea0bb 100644 --- a/zebra/zebra_static.h +++ b/zebra/zebra_static.h @@ -79,17 +79,14 @@ static_add_ipv4 (safi_t safi, struct prefix *p, struct in_addr *gate, ifindex_t u_char distance, struct zebra_vrf *zvrf); extern int -static_delete_ipv4 (safi_t safi, struct prefix *p, struct in_addr *gate, ifindex_t ifindex, - u_short tag, u_char distance, struct zebra_vrf *zvrf); +static_delete_route (afi_t, safi_t safi, u_char type, struct prefix *p, + union g_addr *gate, ifindex_t ifindex, + u_short tag, u_char distance, + struct zebra_vrf *zvrf); extern int static_add_ipv6 (struct prefix *p, u_char type, struct in6_addr *gate, ifindex_t ifindex, const char *ifname, u_char flags, u_short tag, u_char distance, struct zebra_vrf *zvrf); -extern int -static_delete_ipv6 (struct prefix *p, u_char type, struct in6_addr *gate, - ifindex_t ifindex, u_short tag, u_char distance, - struct zebra_vrf *zvrf); - #endif |