* Our own version of m_clrprotoflags(), that can preserve M_NOTREADY. */
| 81 | * Our own version of m_clrprotoflags(), that can preserve M_NOTREADY. |
| 82 | */ |
| 83 | static void |
| 84 | sbm_clrprotoflags(struct mbuf *m, int flags) |
| 85 | { |
| 86 | int mask; |
| 87 | |
| 88 | mask = ~M_PROTOFLAGS; |
| 89 | if (flags & PRUS_NOTREADY) |
| 90 | mask |= M_NOTREADY; |
| 91 | while (m) { |
| 92 | m->m_flags &= mask; |
| 93 | m = m->m_next; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | /* |
| 98 | * Compress M_NOTREADY mbufs after they have been readied by sbready(). |
no outgoing calls
no test coverage detected