MCPcopy Create free account
hub / github.com/F-Stack/f-stack / in6_addrhash

Function in6_addrhash

tools/compat/include/netinet6/in6_var.h:526–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524 (&V_in6_ifaddrhashtbl[IN6ADDR_HASHVAL(x) & V_in6_ifaddrhmask])
525
526static __inline uint32_t
527in6_addrhash(const struct in6_addr *in6)
528{
529 uint32_t x;
530
531 x = in6->s6_addr32[0] ^ in6->s6_addr32[1] ^ in6->s6_addr32[2] ^
532 in6->s6_addr32[3];
533 return (fnv_32_buf(&x, sizeof(x), FNV1_32_INIT));
534}
535
536extern struct rmlock in6_ifaddr_lock;
537#define IN6_IFADDR_LOCK_ASSERT() rm_assert(&in6_ifaddr_lock, RA_LOCKED)

Callers

nothing calls this directly

Calls 1

fnv_32_bufFunction · 0.85

Tested by

no test coverage detected