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

Function mld_restore_context

freebsd/netinet6/mld6.c:305–315  ·  view source on GitHub ↗

* Restore context from a queued output chain. * Return saved ifindex. * * VIMAGE: The assertion is there to make sure that we * actually called CURVNET_SET() with what's in the mbuf chain. */

Source from the content-addressed store, hash-verified

303 * actually called CURVNET_SET() with what's in the mbuf chain.
304 */
305static __inline uint32_t
306mld_restore_context(struct mbuf *m)
307{
308
309#if defined(VIMAGE) && defined(INVARIANTS)
310 KASSERT(curvnet == m->m_pkthdr.PH_loc.ptr,
311 ("%s: called when curvnet was not restored: cuvnet %p m ptr %p",
312 __func__, curvnet, m->m_pkthdr.PH_loc.ptr));
313#endif
314 return (m->m_pkthdr.flowid);
315}
316
317/*
318 * Retrieve or set threshold between group-source queries in seconds.

Callers 1

mld_dispatch_packetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected