Home
last modified time | relevance | path

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

/freebsd/sys/dev/hyperv/netvsc/
H A Dif_hn.c4813 hn_check_iplen(const struct mbuf *m, int hoff) in hn_check_iplen() argument
4820 len = hoff + sizeof(struct ip); in hn_check_iplen()
4830 ip = mtodo(m, hoff); in hn_check_iplen()
4838 if (m->m_len < hoff + iphlen) in hn_check_iplen()
4847 if (m->m_pkthdr.len < hoff + iplen) in hn_check_iplen()
4864 if (m->m_len < hoff + iphlen + sizeof(struct tcphdr)) in hn_check_iplen()
4870 if (m->m_len < hoff + iphlen + thoff) in hn_check_iplen()
4876 if (m->m_len < hoff + iphlen + sizeof(struct udphdr)) in hn_check_iplen()
4892 int hoff; in hn_rxpkt_proto() local
4894 hoff = sizeof(*eh); in hn_rxpkt_proto()
[all …]
/freebsd/sys/dev/virtio/network/
H A Dif_vtnet.c1872 int hoff, protocol; in vtnet_rxq_csum() local
1887 hoff = sizeof(struct ether_vlan_header); in vtnet_rxq_csum()
1889 hoff = sizeof(struct ether_header); in vtnet_rxq_csum()
1897 if (__predict_false(m->m_len < hoff + sizeof(struct ip))) { in vtnet_rxq_csum()
1901 struct ip *ip = (struct ip *)(m->m_data + hoff); in vtnet_rxq_csum()
1909 if (__predict_false(m->m_len < hoff + sizeof(struct ip6_hdr)) in vtnet_rxq_csum()
1910 || ip6_lasthdr(m, hoff, IPPROTO_IPV6, &protocol) < 0) { in vtnet_rxq_csum()