Home
last modified time | relevance | path

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

/freebsd/sys/dev/virtio/network/
H A Dvirtio_net.h334 int hoff, protocol; in virtio_net_rx_csum() local
349 hoff = sizeof(struct ether_vlan_header); in virtio_net_rx_csum()
351 hoff = sizeof(struct ether_header); in virtio_net_rx_csum()
357 if (__predict_false(m->m_len < hoff + sizeof(struct ip))) { in virtio_net_rx_csum()
360 struct ip *ip = (struct ip *)(m->m_data + hoff); in virtio_net_rx_csum()
368 if (__predict_false(m->m_len < hoff + sizeof(struct ip6_hdr)) in virtio_net_rx_csum()
369 || ip6_lasthdr(m, hoff, IPPROTO_IPV6, &protocol) < 0) { in virtio_net_rx_csum()
/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 …]