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