Searched refs:cksum (Results 1 – 1 of 1) sorted by relevance
346 uint32_t cksum = 0; in ipa_nati_calc_ip_cksum() local349 cksum += (pub_ip_addr & 0xFFFF); in ipa_nati_calc_ip_cksum()354 cksum += (pub_ip_addr>>16); in ipa_nati_calc_ip_cksum()355 if (cksum >> 16) { in ipa_nati_calc_ip_cksum()356 cksum = (cksum & 0x0000FFFF); in ipa_nati_calc_ip_cksum()357 cksum += 1; in ipa_nati_calc_ip_cksum()366 cksum += (priv_ip_addr & 0xFFFF); in ipa_nati_calc_ip_cksum()367 if (cksum >> 16) { in ipa_nati_calc_ip_cksum()368 cksum = (cksum & 0x0000FFFF); in ipa_nati_calc_ip_cksum()369 cksum += 1; in ipa_nati_calc_ip_cksum()[all …]