summaryrefslogtreecommitdiff
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorEnke Chen <enchen@paloaltonetworks.com>2024-09-19 08:52:35 -0700
committerEnke Chen <enchen@paloaltonetworks.com>2024-09-19 08:52:35 -0700
commit3c433ae558427d06ca25eeb619503599b5f84172 (patch)
tree173eac769f8861b2f38bd716cf05e758bf168a68 /bgpd/bgp_zebra.c
parentcc7d3afdd5f1674893237849ca974725b24f76fc (diff)
bgpd: fix misplaced arguments in bgp_redistribute_add()
Fix the misplaced arguments "bhtype" and "api.distance" in bgp_redistribute_add(). Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r--bgpd/bgp_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index 19f26e9c75..bffa5a0e6b 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -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,