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

Function in_gre_hashval

freebsd/netinet/ip_gre.c:101–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 (sc)->gre_oip.ip_dst.s_addr)
100
101static uint32_t
102in_gre_hashval(in_addr_t src, in_addr_t dst)
103{
104 uint32_t ret;
105
106 ret = fnv_32_buf(&src, sizeof(src), FNV1_32_INIT);
107 return (fnv_32_buf(&dst, sizeof(dst), ret));
108}
109
110static struct gre_socket*
111in_gre_lookup_socket(in_addr_t addr)

Callers

nothing calls this directly

Calls 1

fnv_32_bufFunction · 0.85

Tested by

no test coverage detected