Lines Matching refs:ehdrlen
3140 uint32_t ehdrlen = 0, ip_hlen = 0, offset = 0; in qlnx_tcp_offset() local
3147 ehdrlen = ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN; in qlnx_tcp_offset()
3150 ehdrlen = ETHER_HDR_LEN; in qlnx_tcp_offset()
3156 ip = (struct ip *)(mp->m_data + ehdrlen); in qlnx_tcp_offset()
3160 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset()
3161 m_copydata(mp, ehdrlen, sizeof(struct ip), buf); in qlnx_tcp_offset()
3166 offset = ip_hlen + ehdrlen + (th->th_off << 2); in qlnx_tcp_offset()
3170 ip6 = (struct ip6_hdr *)(mp->m_data + ehdrlen); in qlnx_tcp_offset()
3174 if (mp->m_len < (ehdrlen + ip_hlen)) { in qlnx_tcp_offset()
3175 m_copydata(mp, ehdrlen, sizeof (struct ip6_hdr), in qlnx_tcp_offset()
3180 offset = ip_hlen + ehdrlen + (th->th_off << 2); in qlnx_tcp_offset()