Searched refs:hoff (Results 1 – 2 of 2) sorted by relevance
| /freebsd-14.2/sys/dev/virtio/network/ |
| H A D | if_vtnet.c | 1763 int hoff, struct virtio_net_hdr *hdr) in vtnet_rxq_csum_needs_csum() argument 1788 error = vtnet_rxq_csum_data_valid(rxq, m, etype, hoff, hdr); in vtnet_rxq_csum_needs_csum() 1850 if (__predict_false(m->m_len < hoff + sizeof(struct ip))) in vtnet_rxq_csum_data_valid() 1853 struct ip *ip = (struct ip *)(m->m_data + hoff); in vtnet_rxq_csum_data_valid() 1860 if (__predict_false(m->m_len < hoff + sizeof(struct ip6_hdr)) in vtnet_rxq_csum_data_valid() 1861 || ip6_lasthdr(m, hoff, IPPROTO_IPV6, &protocol) < 0) in vtnet_rxq_csum_data_valid() 1900 int hoff; in vtnet_rxq_csum() local 1910 hoff = sizeof(struct ether_vlan_header); in vtnet_rxq_csum() 1912 hoff = sizeof(struct ether_header); in vtnet_rxq_csum() 1915 return (vtnet_rxq_csum_needs_csum(rxq, m, etype, hoff, hdr)); in vtnet_rxq_csum() [all …]
|
| /freebsd-14.2/sys/dev/hyperv/netvsc/ |
| H A D | if_hn.c | 4826 hn_check_iplen(const struct mbuf *m, int hoff) in hn_check_iplen() argument 4833 len = hoff + sizeof(struct ip); in hn_check_iplen() 4843 ip = mtodo(m, hoff); in hn_check_iplen() 4851 if (m->m_len < hoff + iphlen) in hn_check_iplen() 4860 if (m->m_pkthdr.len < hoff + iplen) in hn_check_iplen() 4883 if (m->m_len < hoff + iphlen + thoff) in hn_check_iplen() 4905 int hoff; in hn_rxpkt_proto() local 4907 hoff = sizeof(*eh); in hn_rxpkt_proto() 4916 hoff = sizeof(*evl); in hn_rxpkt_proto() 4917 if (m_new->m_len < hoff) in hn_rxpkt_proto() [all …]
|