Lines Matching refs:off
44 m_common_hash_gethdr(const struct mbuf *m, const u_int off, in m_common_hash_gethdr() argument
48 if (m->m_pkthdr.len < (off + len)) { in m_common_hash_gethdr()
50 } else if (m->m_len < (off + len)) { in m_common_hash_gethdr()
51 m_copydata(m, off, len, buf); in m_common_hash_gethdr()
54 return (mtod(m, char *) + off); in m_common_hash_gethdr()
77 uint32_t p, int off, const uint16_t etype) in m_tcpip_hash() argument
99 ip = m_common_hash_gethdr(m, off, sizeof(*ip), &buf); in m_tcpip_hash()
117 off += iphlen; in m_tcpip_hash()
119 off, sizeof(*ports), &buf); in m_tcpip_hash()
132 ip6 = m_common_hash_gethdr(m, off, sizeof(*ip6), &buf); in m_tcpip_hash()
163 int off; in m_ether_tcpip_hash() local
166 off = sizeof(*eh); in m_ether_tcpip_hash()
167 if (m->m_len < off) in m_ether_tcpip_hash()
180 vlan = m_common_hash_gethdr(m, off, sizeof(*vlan), &buf); in m_ether_tcpip_hash()
187 off += sizeof(*vlan) - sizeof(*eh); in m_ether_tcpip_hash()
189 return (m_tcpip_hash(flags, m, p, off, etype)); in m_ether_tcpip_hash()
197 int off; in m_infiniband_tcpip_hash() local
200 off = sizeof(*ibh); in m_infiniband_tcpip_hash()
201 if (m->m_len < off) in m_infiniband_tcpip_hash()
208 return (m_tcpip_hash(flags, m, p, off, etype)); in m_infiniband_tcpip_hash()