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

Function rip6_detach

freebsd/netinet6/raw_ip6.c:692–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692static void
693rip6_detach(struct socket *so)
694{
695 struct inpcb *inp;
696
697 inp = sotoinpcb(so);
698 KASSERT(inp != NULL, ("rip6_detach: inp == NULL"));
699
700 if (so == V_ip6_mrouter && ip6_mrouter_done)
701 ip6_mrouter_done();
702 /* xxx: RSVP */
703 INP_INFO_WLOCK(&V_ripcbinfo);
704 INP_WLOCK(inp);
705 free(inp->in6p_icmp6filt, M_PCB);
706 in_pcbdetach(inp);
707 in_pcbfree(inp);
708 INP_INFO_WUNLOCK(&V_ripcbinfo);
709}
710
711/* XXXRW: This can't ever be called. */
712static void

Callers

nothing calls this directly

Calls 3

in_pcbdetachFunction · 0.85
in_pcbfreeFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected