Skip to content

Commit

Permalink
bgpd: fix arg order in bgp_redistribute_add() call
Browse files Browse the repository at this point in the history
Fixes a call to bgp_redistribute_add() that mixed up the position of
args bhtype (blackhole type, enum) and api.distance (RIB admin
distance, uint8_t).

Signed-off-by: Trey Aspelund <[email protected]>
  • Loading branch information
Trey Aspelund committed Sep 8, 2023
1 parent 8ed9dca commit 14ba423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ static int zebra_read_route(ZAPI_CALLBACK_ARGS)

/* Now perform the add/update. */
bgp_redistribute_add(bgp, &api.prefix, &nexthop, ifindex,
nhtype, bhtype, api.distance, api.metric,
nhtype, api.distance, bhtype, api.metric,
api.type, api.instance, api.tag);
} else {
bgp_redistribute_delete(bgp, &api.prefix, api.type,
Expand Down

0 comments on commit 14ba423

Please sign in to comment.