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

Function nd6_prefix_rele

freebsd/netinet6/nd6_rtr.c:1343–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341}
1342
1343void
1344nd6_prefix_rele(struct nd_prefix *pr)
1345{
1346
1347 if (refcount_release(&pr->ndpr_refcnt)) {
1348 KASSERT(LIST_EMPTY(&pr->ndpr_advrtrs),
1349 ("prefix %p has advertising routers", pr));
1350 free(pr, M_IP6NDP);
1351 }
1352}
1353
1354int
1355nd6_prelist_add(struct nd_prefixctl *pr, struct nd_defrouter *dr,

Callers 5

in6_controlFunction · 0.85
nd6_timerFunction · 0.85
in6_ifattach_linklocalFunction · 0.85
nd6_prefix_delFunction · 0.85
prelist_updateFunction · 0.85

Calls 2

refcount_releaseFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected