Return the rcvif of a packet header. */
| 1209 | |
| 1210 | /* Return the rcvif of a packet header. */ |
| 1211 | static __inline struct ifnet * |
| 1212 | m_rcvif(struct mbuf *m) |
| 1213 | { |
| 1214 | |
| 1215 | M_ASSERTPKTHDR(m); |
| 1216 | if (m->m_pkthdr.csum_flags & CSUM_SND_TAG) |
| 1217 | return (NULL); |
| 1218 | return (m->m_pkthdr.rcvif); |
| 1219 | } |
| 1220 | |
| 1221 | /* Length to m_copy to copy all. */ |
| 1222 | #define M_COPYALL 1000000000 |