diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-08-24 00:48:37 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-01 07:20:18 -0400 |
| commit | 14364a318097a49062f545a255e4e6a306e7b2fe (patch) | |
| tree | fe23c33b6be2d3fe69950dc5764fdbe9c29113bd /zebra/rib.h | |
| parent | 3a3d00f1bd3b82a9b1f2bca5485c578773c403b7 (diff) | |
zebra: Refactor rib_match_ipv[4|6]
the rib_match_ipv4 and rib_match_ipv6 functions were
the same. Refactor to 1 function.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rib.h')
| -rw-r--r-- | zebra/rib.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/rib.h b/zebra/rib.h index 32f370f9ef..7fd29dcd5a 100644 --- a/zebra/rib.h +++ b/zebra/rib.h @@ -349,8 +349,8 @@ extern int rib_delete_ipv4 (int type, u_short instance, int flags, struct prefix struct in_addr *gate, ifindex_t ifindex, vrf_id_t, u_int32_t, safi_t safi); -extern struct rib *rib_match_ipv4 (struct in_addr, safi_t safi, vrf_id_t, - struct route_node **rn_out); +extern struct rib *rib_match (afi_t afi, safi_t safi, vrf_id_t, union g_addr *, + struct route_node **rn_out); extern struct rib *rib_match_ipv4_multicast (struct in_addr addr, struct route_node **rn_out); @@ -378,8 +378,6 @@ rib_delete_ipv6 (int type, u_short instance, int flags, struct prefix_ipv6 *p, extern struct rib *rib_lookup_ipv6 (struct in6_addr *, vrf_id_t); -extern struct rib *rib_match_ipv6 (struct in6_addr *, vrf_id_t); - extern struct route_table *rib_table_ipv6; extern int |
