* 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. */
| 303 | * actually called CURVNET_SET() with what's in the mbuf chain. |
| 304 | */ |
| 305 | static __inline uint32_t |
| 306 | mld_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. |
no outgoing calls
no test coverage detected