summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-02-01 19:52:54 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-02-01 19:52:54 -0500
commit0527bd80c9248afa5bbd4406faac46bbcd170eec (patch)
tree6bb376d2b8024b5437bc48d2f01a9401da070484 /lib/if.c
parent9010012aa140c0301d1ae1121a0f4d16b22dcb0b (diff)
lib: Treat v6 address as a v6 address
The code was making the correct assumption that the v4 and v6 addresses start in the same spot in memory and since we were looking at a v6 prefix it would just work. This causes distress in SA systems, so let's just make it happy. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if.c b/lib/if.c
index 20f792b8f8..6ee84e126c 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -374,7 +374,7 @@ if_lookup_exact_address_vrf (void *src, int family, vrf_id_t vrf_id)
}
else if (family == AF_INET6)
{
- if (IPV6_ADDR_SAME (&p->u.prefix4, (struct in6_addr *)src))
+ if (IPV6_ADDR_SAME (&p->u.prefix6, (struct in6_addr *)src))
return ifp;
}
}