Home
last modified time | relevance | path

Searched refs:hoff (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/virtio/network/
H A Dif_vtnet.c1754 int hoff, struct virtio_net_hdr *hdr) in vtnet_rxq_csum_needs_csum() argument
1779 error = vtnet_rxq_csum_data_valid(rxq, m, etype, hoff, hdr); in vtnet_rxq_csum_needs_csum()
1827 uint16_t etype, int hoff, struct virtio_net_hdr *hdr __unused) in vtnet_rxq_csum_data_valid() argument
1841 if (__predict_false(m->m_len < hoff + sizeof(struct ip))) in vtnet_rxq_csum_data_valid()
1844 struct ip *ip = (struct ip *)(m->m_data + hoff); in vtnet_rxq_csum_data_valid()
1851 if (__predict_false(m->m_len < hoff + sizeof(struct ip6_hdr)) in vtnet_rxq_csum_data_valid()
1852 || ip6_lasthdr(m, hoff, IPPROTO_IPV6, &protocol) < 0) in vtnet_rxq_csum_data_valid()
1891 int hoff; in vtnet_rxq_csum() local
1901 hoff = sizeof(struct ether_vlan_header); in vtnet_rxq_csum()
1903 hoff = sizeof(struct ether_header); in vtnet_rxq_csum()
[all …]
/freebsd/sys/dev/hyperv/netvsc/
H A Dif_hn.c4824 hn_check_iplen(const struct mbuf *m, int hoff) in hn_check_iplen() argument
4831 len = hoff + sizeof(struct ip); in hn_check_iplen()
4841 ip = mtodo(m, hoff); in hn_check_iplen()
4849 if (m->m_len < hoff + iphlen) in hn_check_iplen()
4858 if (m->m_pkthdr.len < hoff + iplen) in hn_check_iplen()
4875 if (m->m_len < hoff + iphlen + sizeof(struct tcphdr)) in hn_check_iplen()
4881 if (m->m_len < hoff + iphlen + thoff) in hn_check_iplen()
4887 if (m->m_len < hoff + iphlen + sizeof(struct udphdr)) in hn_check_iplen()
4903 int hoff; in hn_rxpkt_proto() local
4905 hoff = sizeof(*eh); in hn_rxpkt_proto()
[all …]