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

Function m_rcvif

freebsd/sys/mbuf.h:1211–1219  ·  view source on GitHub ↗

Return the rcvif of a packet header. */

Source from the content-addressed store, hash-verified

1209
1210/* Return the rcvif of a packet header. */
1211static __inline struct ifnet *
1212m_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

Callers 2

ipfw_chkFunction · 0.50
bpf_mtapFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected