Lines Matching refs:uh
374 struct udphdr *uh; in checksum_ipv4() local
377 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv4()
379 uh->uh_sum = in_pseudo(ip4->ip_src.s_addr, in checksum_ipv4()
383 uh->uh_sum = in_cksum_skip(m, in checksum_ipv4()
386 if (uh->uh_sum == 0) in checksum_ipv4()
387 uh->uh_sum = 0xffff; in checksum_ipv4()
499 struct udphdr *uh; in checksum_ipv6() local
502 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); in checksum_ipv6()
504 uh->uh_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); in checksum_ipv6()
507 uh->uh_sum = in_cksum_skip(m, in checksum_ipv6()
510 if (uh->uh_sum == 0) in checksum_ipv6()
511 uh->uh_sum = 0xffff; in checksum_ipv6()