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

Function lradix6_destroy

freebsd/netinet6/in6_fib_algo.c:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155static void
156lradix6_destroy(void *_data)
157{
158 struct lradix6_data *lr = (struct lradix6_data *)_data;
159
160 if (lr->rnh != NULL)
161 rn_detachhead((void **)&lr->rnh);
162 if (lr->mem != NULL)
163 free(lr->mem, M_RTABLE);
164 free(lr, M_RTABLE);
165}
166
167static enum flm_op_result
168lradix6_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