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

Function ipsec_idhash

freebsd/net/if_ipsec.c:125–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123#endif
124
125static struct ipsec_iflist *
126ipsec_idhash(uint32_t id)
127{
128
129 return (&V_ipsec_idhtbl[fnv_32_buf(&id, sizeof(id),
130 FNV1_32_INIT) & (IPSEC_HASH_SIZE - 1)]);
131}
132
133static struct ipsec_iflist *
134ipsec_srchash(const struct sockaddr *sa)

Callers 4

ipsec_if_inputFunction · 0.85
ipsec_check_reqidFunction · 0.85
ipsec_init_reqidFunction · 0.85
ipsec_set_reqidFunction · 0.85

Calls 1

fnv_32_bufFunction · 0.85

Tested by

no test coverage detected