diff options
| author | Vipin Kumar <vipin@cumulusnetworks.com> | 2015-10-20 15:14:06 -0700 |
|---|---|---|
| committer | Vipin Kumar <vipin@cumulusnetworks.com> | 2015-10-20 15:14:06 -0700 |
| commit | 3607212c76371f3f2a40bca60a1a5831405002ba (patch) | |
| tree | 55c19a22a8abcd35ee8740a872f8f6b8973ab1b0 /zebra/zebra_rib.c | |
| parent | 73b9f7037ba8c0e7ac19adebba1ea4476bce89fe (diff) | |
| parent | c12cd8bb715ef64a63c9481217ddfa06cf7b8f58 (diff) | |
Merge branch 'cmaster' of ssh://stash.cumulusnetworks.com:7999/quag/quagga into cmaster
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 261aed156f..8e873211a0 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -1268,7 +1268,9 @@ nexthop_active_check (struct route_node *rn, struct rib *rib, UNSET_FLAG (nexthop->flags, NEXTHOP_FLAG_ACTIVE); break; case NEXTHOP_TYPE_IPV6_IFINDEX: - family = AFI_IP6; + /* RFC 5549, v4 prefix with v6 NH */ + if (rn->p.family != AF_INET) + family = AFI_IP6; if (IN6_IS_ADDR_LINKLOCAL (&nexthop->gate.ipv6)) { ifp = if_lookup_by_index (nexthop->ifindex); |
