Lines Matching refs:ipph
331 struct ip_pseudo_header ipph; in eth_calc_ip4_pseudo_hdr_csum() local
332 ipph.ip_src = iphdr->ip_src; in eth_calc_ip4_pseudo_hdr_csum()
333 ipph.ip_dst = iphdr->ip_dst; in eth_calc_ip4_pseudo_hdr_csum()
334 ipph.ip_payload = cpu_to_be16(csl); in eth_calc_ip4_pseudo_hdr_csum()
335 ipph.ip_proto = iphdr->ip_p; in eth_calc_ip4_pseudo_hdr_csum()
336 ipph.zeros = 0; in eth_calc_ip4_pseudo_hdr_csum()
337 *cso = sizeof(ipph); in eth_calc_ip4_pseudo_hdr_csum()
338 return net_checksum_add(*cso, (uint8_t *) &ipph); in eth_calc_ip4_pseudo_hdr_csum()
347 struct ip6_pseudo_header ipph; in eth_calc_ip6_pseudo_hdr_csum() local
348 ipph.ip6_src = iphdr->ip6_src; in eth_calc_ip6_pseudo_hdr_csum()
349 ipph.ip6_dst = iphdr->ip6_dst; in eth_calc_ip6_pseudo_hdr_csum()
350 ipph.len = cpu_to_be16(csl); in eth_calc_ip6_pseudo_hdr_csum()
351 ipph.zero[0] = 0; in eth_calc_ip6_pseudo_hdr_csum()
352 ipph.zero[1] = 0; in eth_calc_ip6_pseudo_hdr_csum()
353 ipph.zero[2] = 0; in eth_calc_ip6_pseudo_hdr_csum()
354 ipph.next_hdr = l4_proto; in eth_calc_ip6_pseudo_hdr_csum()
355 *cso = sizeof(ipph); in eth_calc_ip6_pseudo_hdr_csum()
356 return net_checksum_add(*cso, (uint8_t *)&ipph); in eth_calc_ip6_pseudo_hdr_csum()