Lines Matching refs:check
53 u16 check; in ip_do_nat() local
60 iph->check = 0; in ip_do_nat()
61 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); in ip_do_nat()
70 cksum = (u16*)&((struct tcphdr*)(((char*)iph) + (iph->ihl<<2)))->check; in ip_do_nat()
73 check = *cksum; in ip_do_nat()
75 check = ~check; in ip_do_nat()
76 check = csum_tcpudp_magic(iph->saddr, iph->daddr, 0, 0, check); in ip_do_nat()
77 check = csum_tcpudp_magic(~osaddr, ~odaddr, 0, 0, ~check); in ip_do_nat()
79 check = ~check; in ip_do_nat()
80 *cksum = check; in ip_do_nat()
83 cksum = (u16*)&((struct udphdr*)(((char*)iph) + (iph->ihl<<2)))->check; in ip_do_nat()
86 if ((check = *cksum) != 0) { in ip_do_nat()
87 check = csum_tcpudp_magic(iph->saddr, iph->daddr, 0, 0, ~check); in ip_do_nat()
88 check = csum_tcpudp_magic(~osaddr, ~odaddr, 0, 0, ~check); in ip_do_nat()
89 *cksum = check ? : 0xFFFF; in ip_do_nat()
152 check = csum_tcpudp_magic(ciph->saddr, ciph->daddr, 0, 0, ~(*cksum)); in ip_do_nat()
153 *cksum = csum_tcpudp_magic(~isaddr, ~idaddr, 0, 0, ~check); in ip_do_nat()