Lines Matching refs:iphlen
73 gso_fix_segment(uint8_t *pkt, size_t len, u_int ipv4, u_int iphlen, u_int tcp, in gso_fix_segment() argument
96 ip6h->payload_len = htobe16(len-iphlen); in gso_fix_segment()
100 struct nm_tcphdr *tcph = (struct nm_tcphdr *)(pkt + iphlen); in gso_fix_segment()
115 struct nm_udphdr *udph = (struct nm_udphdr *)(pkt + iphlen); in gso_fix_segment()
118 udph->len = htobe16(len-iphlen); in gso_fix_segment()
127 nm_os_csum_tcpudp_ipv4(iph, check_data, len-iphlen, check); in gso_fix_segment()
129 nm_os_csum_tcpudp_ipv6(ip6h, check_data, len-iphlen, check); in gso_fix_segment()
254 u_int iphlen = 0; in bdg_mismatch_datapath() local
304 iphlen = 4 * (iph->version_ihl & 0x0F); in bdg_mismatch_datapath()
309 iphlen = 40; in bdg_mismatch_datapath()
318 if (src_len < ethhlen + iphlen) { in bdg_mismatch_datapath()
328 (gso_hdr + ethhlen + iphlen); in bdg_mismatch_datapath()
330 if (src_len < ethhlen + iphlen + 20) { in bdg_mismatch_datapath()
335 gso_hdr_len = ethhlen + iphlen + in bdg_mismatch_datapath()
338 gso_hdr_len = ethhlen + iphlen + 8; /* UDP */ in bdg_mismatch_datapath()
384 ipv4, iphlen, tcp, in bdg_mismatch_datapath()