Skip to content

Commit

Permalink
bgpd: fix misplaced arguments in bgp_redistribute_add()
Browse files Browse the repository at this point in the history
Fix the misplaced arguments "bhtype" and "api.distance" in
bgp_redistribute_add().

Signed-off-by: Enke Chen <[email protected]>
  • Loading branch information
enkechen-panw committed Sep 19, 2024
1 parent cc7d3af commit 3c433ae
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 @@ -542,7 +542,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 3c433ae

Please sign in to comment.