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

Function ipsec_hashinit

freebsd/net/if_ipsec.c:255–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255static struct ipsec_iflist *
256ipsec_hashinit(void)
257{
258 struct ipsec_iflist *hash;
259 int i;
260
261 hash = malloc(sizeof(struct ipsec_iflist) * IPSEC_HASH_SIZE,
262 M_IPSEC, M_WAITOK);
263 for (i = 0; i < IPSEC_HASH_SIZE; i++)
264 CK_LIST_INIT(&hash[i]);
265
266 return (hash);
267}
268
269static void
270vnet_ipsec_init(const void *unused __unused)

Callers 1

vnet_ipsec_initFunction · 0.85

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected