Searched refs:NAT_HASH_FN (Results 1 – 2 of 2) sorted by relevance
/titanic_44/usr/src/uts/common/inet/ipf/ |
H A D | ip_nat.c | 322 hv = NAT_HASH_FN(j, 0, ifs->ifs_ipf_rdrrules_sz); 355 hv = NAT_HASH_FN(j, 0, ifs->ifs_ipf_natrules_sz); 2772 hv1 = NAT_HASH_FN(nat->nat_inip.s_addr, nat->nat_inport, 2774 hv1 = NAT_HASH_FN(nat->nat_oip.s_addr, hv1 + nat->nat_oport, 2776 hv2 = NAT_HASH_FN(nat->nat_outip.s_addr, nat->nat_outport, 2778 hv2 = NAT_HASH_FN(nat->nat_oip.s_addr, hv2 + nat->nat_oport, 2781 hv1 = NAT_HASH_FN(nat->nat_inip.s_addr, 0, 0xffffffff); 2782 hv1 = NAT_HASH_FN(nat->nat_oip.s_addr, hv1, 2784 hv2 = NAT_HASH_FN(nat->nat_outip.s_addr, 0, 0xffffffff); 2785 hv2 = NAT_HASH_FN(nat->nat_oip.s_addr, hv2, [all …]
|
/titanic_44/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_nat.h | 432 #define NAT_HASH_FN(k, l, m) (((k) + ((k) >> 12) + l) % (m)) macro
|