Skip to content

Commit 9b0b691

Browse files
authored
Merge pull request #9992 from FRRouting/mergify/bp/stable/8.1/pr-9954
zebra: Send up ifindex for redistribution when appropriate (backport #9954)
2 parents 3691c9d + fae857d commit 9b0b691

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

zebra/zapi_msg.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,6 @@ int zsend_redistribute_route(int cmd, struct zserv *client,
604604
api_nh->bh_type = nexthop->bh_type;
605605
break;
606606
case NEXTHOP_TYPE_IPV4:
607-
api_nh->gate.ipv4 = nexthop->gate.ipv4;
608-
break;
609607
case NEXTHOP_TYPE_IPV4_IFINDEX:
610608
api_nh->gate.ipv4 = nexthop->gate.ipv4;
611609
api_nh->ifindex = nexthop->ifindex;
@@ -614,8 +612,6 @@ int zsend_redistribute_route(int cmd, struct zserv *client,
614612
api_nh->ifindex = nexthop->ifindex;
615613
break;
616614
case NEXTHOP_TYPE_IPV6:
617-
api_nh->gate.ipv6 = nexthop->gate.ipv6;
618-
break;
619615
case NEXTHOP_TYPE_IPV6_IFINDEX:
620616
api_nh->gate.ipv6 = nexthop->gate.ipv6;
621617
api_nh->ifindex = nexthop->ifindex;

0 commit comments

Comments
 (0)