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

Function vxlan_ftable_init

freebsd/net/if_vxlan.c:558–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558static void
559vxlan_ftable_init(struct vxlan_softc *sc)
560{
561 int i;
562
563 sc->vxl_ftable = malloc(sizeof(struct vxlan_ftable_head) *
564 VXLAN_SC_FTABLE_SIZE, M_VXLAN, M_ZERO | M_WAITOK);
565
566 for (i = 0; i < VXLAN_SC_FTABLE_SIZE; i++)
567 LIST_INIT(&sc->vxl_ftable[i]);
568 sc->vxl_ftable_hash_key = arc4random();
569}
570
571static void
572vxlan_ftable_fini(struct vxlan_softc *sc)

Callers 1

vxlan_clone_createFunction · 0.85

Calls 2

mallocFunction · 0.85
arc4randomFunction · 0.50

Tested by

no test coverage detected