* 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. */
| 325 | * actually called CURVNET_SET() with what's in the mbuf chain. |
| 326 | */ |
| 327 | static __inline uint32_t |
| 328 | igmp_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. |