Searched refs:cksum (Results 1 – 2 of 2) 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 …]
389 uint32_t cksum = 0; in ipa_nati_calc_ip_cksum() local392 cksum += (pub_ip_addr & 0xFFFF); in ipa_nati_calc_ip_cksum()397 cksum += (pub_ip_addr>>16); in ipa_nati_calc_ip_cksum()398 if (cksum >> 16) { in ipa_nati_calc_ip_cksum()399 cksum = (cksum & 0x0000FFFF); in ipa_nati_calc_ip_cksum()400 cksum += 1; in ipa_nati_calc_ip_cksum()409 cksum += (priv_ip_addr & 0xFFFF); in ipa_nati_calc_ip_cksum()410 if (cksum >> 16) { in ipa_nati_calc_ip_cksum()411 cksum = (cksum & 0x0000FFFF); in ipa_nati_calc_ip_cksum()412 cksum += 1; in ipa_nati_calc_ip_cksum()[all …]