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

Function igmp_restore_context

freebsd/netinet/igmp.c:327–338  ·  view source on GitHub ↗

* Restore context from a queued IGMP 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

325 * actually called CURVNET_SET() with what's in the mbuf chain.
326 */
327static __inline uint32_t
328igmp_restore_context(struct mbuf *m)
329{
330
331#ifdef notyet
332#if defined(VIMAGE) && defined(INVARIANTS)
333 KASSERT(curvnet == (m->m_pkthdr.PH_loc.ptr),
334 ("%s: called when curvnet was not restored", __func__));
335#endif
336#endif
337 return (m->m_pkthdr.flowid);
338}
339
340/*
341 * IGMP statistics.

Callers 1

igmp_intrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected