diff options
| author | Mark Stapp <mjs@cisco.com> | 2024-05-29 08:50:35 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@cisco.com> | 2024-08-06 08:17:47 -0400 | 
| commit | 0221ed29176b3944125790ae47b9a701db90c808 (patch) | |
| tree | 3bc6a6c5052caa4f28280b6501502dc16b1d0b27 /zebra/zebra_nhg.c | |
| parent | 975e1a36f69e61d45e05e14210bbfd94d8af33b6 (diff) | |
zebra: be consistent about v6 nexthops for v4 routes
Treat TYPE_IPV6 and TYPE_IPV6_IFINDEX nexthops the same way when
processing v4 (RFC 5549) routes.
Signed-off-by: Mark Stapp <mjs@cisco.com>
Diffstat (limited to 'zebra/zebra_nhg.c')
| -rw-r--r-- | zebra/zebra_nhg.c | 7 | 
1 files changed, 0 insertions, 7 deletions
diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index b4e25daad8..048e4126f9 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -2642,13 +2642,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)  | 
