Lines Matching refs:ehlen
761 int ehlen; in hn_tso_fixup() local
768 ehlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in hn_tso_fixup()
770 ehlen = ETHER_HDR_LEN; in hn_tso_fixup()
771 m_head->m_pkthdr.l2hlen = ehlen; in hn_tso_fixup()
778 PULLUP_HDR(m_head, ehlen + sizeof(*ip)); in hn_tso_fixup()
779 ip = mtodo(m_head, ehlen); in hn_tso_fixup()
783 PULLUP_HDR(m_head, ehlen + iphlen + sizeof(*th)); in hn_tso_fixup()
784 th = mtodo(m_head, ehlen + iphlen); in hn_tso_fixup()
799 PULLUP_HDR(m_head, ehlen + sizeof(*ip6)); in hn_tso_fixup()
800 ip6 = mtodo(m_head, ehlen); in hn_tso_fixup()
807 PULLUP_HDR(m_head, ehlen + sizeof(*ip6) + sizeof(*th)); in hn_tso_fixup()
808 th = mtodo(m_head, ehlen + sizeof(*ip6)); in hn_tso_fixup()
824 int ehlen; in hn_set_hlen() local
829 ehlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in hn_set_hlen()
831 ehlen = ETHER_HDR_LEN; in hn_set_hlen()
832 m_head->m_pkthdr.l2hlen = ehlen; in hn_set_hlen()
839 PULLUP_HDR(m_head, ehlen + sizeof(*ip)); in hn_set_hlen()
840 ip = mtodo(m_head, ehlen); in hn_set_hlen()
853 m_head->m_pkthdr.len > hn_udpcs_fixup_mtu + ehlen && in hn_set_hlen()
855 uint16_t off = ehlen + iphlen; in hn_set_hlen()
873 PULLUP_HDR(m_head, ehlen + sizeof(*ip6)); in hn_set_hlen()
874 ip6 = mtodo(m_head, ehlen); in hn_set_hlen()
893 int ehlen, iphlen; in hn_check_tcpsyn() local
896 ehlen = m_head->m_pkthdr.l2hlen; in hn_check_tcpsyn()
899 PULLUP_HDR(m_head, ehlen + iphlen + sizeof(*th)); in hn_check_tcpsyn()
900 th = mtodo(m_head, ehlen + iphlen); in hn_check_tcpsyn()