Lines Matching full:csum
14 __sum16 csum = 0; in nf_ip_checksum() local
21 !csum_fold(skb->csum)) || in nf_ip_checksum()
24 skb->csum)) { in nf_ip_checksum()
31 skb->csum = 0; in nf_ip_checksum()
33 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, in nf_ip_checksum()
36 csum = __skb_checksum_complete(skb); in nf_ip_checksum()
38 return csum; in nf_ip_checksum()
48 __sum16 csum = 0; in nf_ip_checksum_partial() local
56 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol, in nf_ip_checksum_partial()
61 return csum; in nf_ip_checksum_partial()
68 __sum16 csum = 0; in nf_ip6_checksum() local
76 csum_sub(skb->csum, in nf_ip6_checksum()
84 skb->csum = ~csum_unfold( in nf_ip6_checksum()
91 csum = __skb_checksum_complete(skb); in nf_ip6_checksum()
93 return csum; in nf_ip6_checksum()
103 __sum16 csum = 0; in nf_ip6_checksum_partial() local
112 skb->csum = ~csum_unfold(csum_ipv6_magic(&ip6h->saddr, in nf_ip6_checksum_partial()
120 return csum; in nf_ip6_checksum_partial()
127 __sum16 csum = 0; in nf_checksum() local
131 csum = nf_ip_checksum(skb, hook, dataoff, protocol); in nf_checksum()
134 csum = nf_ip6_checksum(skb, hook, dataoff, protocol); in nf_checksum()
138 return csum; in nf_checksum()
146 __sum16 csum = 0; in nf_checksum_partial() local
150 csum = nf_ip_checksum_partial(skb, hook, dataoff, len, in nf_checksum_partial()
154 csum = nf_ip6_checksum_partial(skb, hook, dataoff, len, in nf_checksum_partial()
159 return csum; in nf_checksum_partial()