diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-03-22 16:14:57 +0000 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2011-03-22 16:18:44 +0000 |
commit | 98e30f5db6dea65a5d6a176065cd0b60eb7bb001 (patch) | |
tree | 3ce8f796dd5f6607a77f1971fd540fcbf2193e3c | |
parent | d71ea65270408a45e4bec036671ec73b24b994b4 (diff) |
bgpd: attribute jhash call should use a standard interface to in6_addr data
* bgp_attr.c; (attrhash_key_make) s6_addr is only member of in6_addr
guaranteed to be available - s6_addr32 isn't. Fix to be more portable, and
thus allow compilation on BSD again.
-rw-r--r-- | bgpd/bgp_attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index e2b6054b..7e302652 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -373,8 +373,8 @@ attrhash_key_make (void *p) #ifdef HAVE_IPV6 MIX(attr->extra->mp_nexthop_len); - key = jhash2(attr->extra->mp_nexthop_global.s6_addr32, 4, key); - key = jhash2(attr->extra->mp_nexthop_local.s6_addr32, 4, key); + key = jhash2(attr->extra->mp_nexthop_global.s6_addr, 16, key); + key = jhash2(attr->extra->mp_nexthop_local.s6_addr, 16, key); #endif /* HAVE_IPV6 */ } |