Skip to content

Commit

Permalink
Merge pull request FRRouting#16103 from mjstapp/fix_5549_nhg_type
Browse files Browse the repository at this point in the history
zebra: be consistent about v6 nexthops for v4 routes
  • Loading branch information
riw777 authored Aug 27, 2024
2 parents 17fffba + 0221ed2 commit 5a6cb0b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions zebra/zebra_nhg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2656,13 +2656,6 @@ static unsigned nexthop_active_check(struct route_node *rn,
UNSET_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE);
break;
case NEXTHOP_TYPE_IPV6:
family = AFI_IP6;
if (nexthop_active(nexthop, nhe, &rn->p, re->type, re->flags,
&mtu, vrf_id))
SET_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE);
else
UNSET_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE);
break;
case NEXTHOP_TYPE_IPV6_IFINDEX:
/* RFC 5549, v4 prefix with v6 NH */
if (rn->p.family != AF_INET)
Expand Down

0 comments on commit 5a6cb0b

Please sign in to comment.