Searched refs:adj_sum (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_nat.c409 adj_cksum(uint16_t *chksum, uint32_t adj_sum) argument
411 adj_sum += (uint16_t)~(*chksum);
412 while ((adj_sum >> 16) != 0)
413 adj_sum = (adj_sum & 0xffff) + (adj_sum >> 16);
414 *chksum = (uint16_t)~adj_sum;
H A Dilb_conn.c428 in_port_t new_port, uint32_t *adj_sum)
435 *adj_sum = (uint16_t)~sum + *naddr + *(naddr + 1) + new_port;
440 in_port_t new_port, uint32_t *adj_sum)
449 *adj_sum = (uint16_t)~sum + *naddr + *(naddr + 1) +
457 in_port_t new_port1, in_port_t new_port2, uint32_t *adj_sum)
465 *adj_sum = (uint16_t)~sum + *naddr1 + *(naddr1 + 1) + new_port1 +
472 in_port_t new_port1, in_port_t new_port2, uint32_t *adj_sum)
487 *adj_sum = sum + *naddr2 + *(naddr2 + 1) + *(naddr2 + 2) +
427 hnat_cksum_v4(uint16_t *oaddr, uint16_t *naddr, in_port_t old_port, in_port_t new_port, uint32_t *adj_sum) argument
439 hnat_cksum_v6(uint16_t *oaddr, uint16_t *naddr, in_port_t old_port, in_port_t new_port, uint32_t *adj_sum) argument
455 fnat_cksum_v4(uint16_t *oaddr1, uint16_t *oaddr2, uint16_t *naddr1, uint16_t *naddr2, in_port_t old_port1, in_port_t old_port2, in_port_t new_port1, in_port_t new_port2, uint32_t *adj_sum) argument
470 fnat_cksum_v6(uint16_t *oaddr1, uint16_t *oaddr2, uint16_t *naddr1, uint16_t *naddr2, in_port_t old_port1, in_port_t old_port2, in_port_t new_port1, in_port_t new_port2, uint32_t *adj_sum) argument

Completed in 61 milliseconds