Lines Matching refs:check
358 inet_proto_csum_replace4(&tcp_hdr(skb)->check, skb, in update_ip_l4_checksum()
364 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { in update_ip_l4_checksum()
365 inet_proto_csum_replace4(&uh->check, skb, in update_ip_l4_checksum()
367 if (!uh->check) in update_ip_l4_checksum()
368 uh->check = CSUM_MANGLED_0; in update_ip_l4_checksum()
378 csum_replace4(&nh->check, *addr, new_addr); in set_ip_addr()
391 inet_proto_csum_replace16(&tcp_hdr(skb)->check, skb, in update_ipv6_checksum()
397 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { in update_ipv6_checksum()
398 inet_proto_csum_replace16(&uh->check, skb, in update_ipv6_checksum()
400 if (!uh->check) in update_ipv6_checksum()
401 uh->check = CSUM_MANGLED_0; in update_ipv6_checksum()
476 csum_replace2(&nh->check, htons(nh->ttl << 8), htons(new_ttl << 8)); in set_ip_ttl()
667 __be16 new_port, __sum16 *check) in set_tp_port() argument
670 inet_proto_csum_replace2(check, skb, *port, new_port, false); in set_tp_port()
692 if (uh->check && skb->ip_summed != CHECKSUM_PARTIAL) { in set_udp()
694 set_tp_port(skb, &uh->source, src, &uh->check); in set_udp()
698 set_tp_port(skb, &uh->dest, dst, &uh->check); in set_udp()
702 if (unlikely(!uh->check)) in set_udp()
703 uh->check = CSUM_MANGLED_0; in set_udp()
733 set_tp_port(skb, &th->source, src, &th->check); in set_tcp()
738 set_tp_port(skb, &th->dest, dst, &th->check); in set_tcp()