zebra: use afi_t for route-map address family arg

Use afi_t in the route_map_check api

Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2021-01-11 13:53:42 -05:00
parent 5898ce6f35
commit f5b7e50f9a
3 changed files with 3 additions and 3 deletions

View File

@ -2119,7 +2119,7 @@ static unsigned nexthop_active_check(struct route_node *rn,
{
struct interface *ifp;
route_map_result_t ret = RMAP_PERMITMATCH;
int family;
afi_t family;
const struct prefix *p, *src_p;
struct zebra_vrf *zvrf;

View File

@ -1669,7 +1669,7 @@ void zebra_routemap_finish(void)
}
route_map_result_t
zebra_route_map_check(int family, int rib_type, uint8_t instance,
zebra_route_map_check(afi_t family, int rib_type, uint8_t instance,
const struct prefix *p, struct nexthop *nexthop,
struct zebra_vrf *zvrf, route_tag_t tag)
{

View File

@ -42,7 +42,7 @@ zebra_import_table_route_map_check(int family, int rib_type, uint8_t instance,
struct nexthop *nexthop, vrf_id_t vrf_id,
route_tag_t tag, const char *rmap_name);
extern route_map_result_t
zebra_route_map_check(int family, int rib_type, uint8_t instance,
zebra_route_map_check(afi_t family, int rib_type, uint8_t instance,
const struct prefix *p, struct nexthop *nexthop,
struct zebra_vrf *zvrf, route_tag_t tag);
extern route_map_result_t