Searched refs:adj_sum (Results 1 – 2 of 2) sorted by relevance
409 adj_cksum(uint16_t *chksum, uint32_t adj_sum) in adj_cksum() argument411 adj_sum += (uint16_t)~(*chksum); in adj_cksum()412 while ((adj_sum >> 16) != 0) in adj_cksum()413 adj_sum = (adj_sum & 0xffff) + (adj_sum >> 16); in adj_cksum()414 *chksum = (uint16_t)~adj_sum; in adj_cksum()
428 in_port_t new_port, uint32_t *adj_sum) in hnat_cksum_v4() argument435 *adj_sum = (uint16_t)~sum + *naddr + *(naddr + 1) + new_port; in hnat_cksum_v4()440 in_port_t new_port, uint32_t *adj_sum) in hnat_cksum_v6() argument449 *adj_sum = (uint16_t)~sum + *naddr + *(naddr + 1) + in hnat_cksum_v6()457 in_port_t new_port1, in_port_t new_port2, uint32_t *adj_sum) in fnat_cksum_v4() argument465 *adj_sum = (uint16_t)~sum + *naddr1 + *(naddr1 + 1) + new_port1 + in fnat_cksum_v4()472 in_port_t new_port1, in_port_t new_port2, uint32_t *adj_sum) in fnat_cksum_v6() argument487 *adj_sum = sum + *naddr2 + *(naddr2 + 1) + *(naddr2 + 2) + in fnat_cksum_v6()