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

Function lradix4_destroy

freebsd/netinet/in_fib_algo.c:587–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587static void
588lradix4_destroy(void *_data)
589{
590 struct lradix4_data *lr = (struct lradix4_data *)_data;
591
592 if (lr->rnh != NULL)
593 rn_detachhead((void **)&lr->rnh);
594 if (lr->mem != NULL)
595 free(lr->mem, M_RTABLE);
596 free(lr, M_RTABLE);
597}
598
599static enum flm_op_result
600lradix4_add_route_cb(struct rtentry *rt, void *_data)

Callers

nothing calls this directly

Calls 2

rn_detachheadFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected