Lines Matching refs:iphlen
74 gso_fix_segment(uint8_t *pkt, size_t len, u_int ipv4, u_int iphlen, u_int tcp,
97 ip6h->payload_len = htobe16(len-iphlen);
101 struct nm_tcphdr *tcph = (struct nm_tcphdr *)(pkt + iphlen);
116 struct nm_udphdr *udph = (struct nm_udphdr *)(pkt + iphlen);
119 udph->len = htobe16(len-iphlen);
128 nm_os_csum_tcpudp_ipv4(iph, check_data, len-iphlen, check);
130 nm_os_csum_tcpudp_ipv6(ip6h, check_data, len-iphlen, check);
255 u_int iphlen = 0;
305 iphlen = 4 * (iph->version_ihl & 0x0F);
310 iphlen = 40;
319 if (src_len < ethhlen + iphlen) {
329 (gso_hdr + ethhlen + iphlen);
331 if (src_len < ethhlen + iphlen + 20) {
336 gso_hdr_len = ethhlen + iphlen +
339 gso_hdr_len = ethhlen + iphlen + 8; /* UDP */
385 ipv4, iphlen, tcp,