/illumos-gate/usr/src/uts/common/inet/ilb/ |
H A D | ilb.c | 117 ilb_stack_t *ilbs; member 177 ilb_kstat_g_init(netstackid_t stackid, ilb_stack_t *ilbs) in ilb_kstat_g_init() argument 191 bcopy(&template, ilbs->ilbs_kstat, sizeof (template)); in ilb_kstat_g_init() 192 ksp->ks_data = ilbs->ilbs_kstat; in ilb_kstat_g_init() 200 ilb_kstat_g_fini(netstackid_t stackid, ilb_stack_t *ilbs) in ilb_kstat_g_fini() argument 202 if (ilbs->ilbs_ksp != NULL) { in ilb_kstat_g_fini() 204 ilbs->ilbs_ksp->ks_private); in ilb_kstat_g_fini() 205 kstat_delete_netstack(ilbs->ilbs_ksp, stackid); in ilb_kstat_g_fini() 206 ilbs->ilbs_ksp = NULL; in ilb_kstat_g_fini() 280 ilb_rule_hash_init(ilb_stack_t *ilbs) in ilb_rule_hash_init() argument [all …]
|
H A D | ilb_conn.c | 60 ilb_stack_t *ilbs; member 208 ilb_stack_t *ilbs; in ilb_conn_cleanup() local 215 ilbs = timer->ilbs; in ilb_conn_cleanup() 216 c2s_hash = ilbs->ilbs_c2s_conn_hash; in ilb_conn_cleanup() 244 if (connp == ilbs->ilbs_conn_list_connp) { in ilb_conn_cleanup() 245 ilbs->ilbs_conn_list_connp = in ilb_conn_cleanup() 284 (void) taskq_dispatch(timer->ilbs->ilbs_conn_taskq, ilb_conn_cleanup, in ilb_conn_timer() 297 ilb_conn_hash_init(ilb_stack_t *ilbs) in ilb_conn_hash_init() argument 308 if (!ISP2(ilbs->ilbs_conn_hash_size)) { in ilb_conn_hash_init() 310 if (ilbs->ilbs_conn_hash_size < (1 << i)) in ilb_conn_hash_init() [all …]
|
H A D | ilb_nat.c | 134 ilb_nat_src_init(ilb_stack_t *ilbs) in ilb_nat_src_init() argument 138 ilbs->ilbs_nat_src = kmem_zalloc(sizeof (ilb_nat_src_hash_t) * in ilb_nat_src_init() 139 ilbs->ilbs_nat_src_hash_size, KM_SLEEP); in ilb_nat_src_init() 140 for (i = 0; i < ilbs->ilbs_nat_src_hash_size; i++) { in ilb_nat_src_init() 141 list_create(&ilbs->ilbs_nat_src[i].nsh_head, in ilb_nat_src_init() 144 mutex_init(&ilbs->ilbs_nat_src[i].nsh_lock, NULL, in ilb_nat_src_init() 147 ilbs->ilbs_nat_src_tid = timeout(ilb_nat_src_timer, ilbs, in ilb_nat_src_init() 156 ilb_nat_src_fini(ilb_stack_t *ilbs) in ilb_nat_src_fini() argument 166 mutex_enter(&ilbs->ilbs_nat_src_lock); in ilb_nat_src_fini() 167 tid = ilbs->ilbs_nat_src_tid; in ilb_nat_src_fini() [all …]
|
H A D | ilb_impl.h | 51 #define ILB_KSTAT_UPDATE(ilbs, x, y) \ argument 54 (ilbs)); \ 55 ((ilbs)->ilbs_kstat->x.value.ui64 += (y)); \
|
H A D | ilb_nat.h | 67 extern int ilb_create_nat_src(ilb_stack_t *ilbs, ilb_nat_src_t **,
|
/illumos-gate/usr/src/cmd/mdb/common/modules/ip/ |
H A D | ip.c | 3213 ilb_stack_t ilbs; in ilb_rules_walk_init() local 3218 if (mdb_vread(&ilbs, sizeof (ilbs), wsp->walk_addr) == -1) { in ilb_rules_walk_init() 3222 if ((wsp->walk_addr = (uintptr_t)ilbs.ilbs_rule_head) != 0) in ilb_rules_walk_init() 3289 ilb_stack_t ilbs; member 3307 if (mdb_vread(&ns_walk->ilbs, sizeof (ns_walk->ilbs), in ilb_nat_src_walk_init() 3314 if (ns_walk->ilbs.ilbs_nat_src == NULL) { in ilb_nat_src_walk_init() 3320 for (i = 0; i < ns_walk->ilbs.ilbs_nat_src_hash_size; i++) { in ilb_nat_src_walk_init() 3325 khead = (char *)ns_walk->ilbs.ilbs_nat_src + i * in ilb_nat_src_walk_init() 3358 ilb_stack_t *ilbs; in ilb_nat_src_walk_step() local 3374 ilbs = &ns_walk->ilbs; in ilb_nat_src_walk_step() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_input.c | 569 ilb_stack_t *ilbs = ipst->ips_netstack->netstack_ilb; in ill_input_short_v4() local 684 if (ilb_has_rules(ilbs) && ILB_SUPP_L4(ipha->ipha_protocol)) { in ill_input_short_v4() 706 if (!ilb_rule_match_vip_v4(ilbs, nexthop, NULL)) { in ill_input_short_v4() 710 ILB_KSTAT_UPDATE(ilbs, ip_frag_in, 1); in ill_input_short_v4() 711 ILB_KSTAT_UPDATE(ilbs, ip_frag_dropped, 1); in ill_input_short_v4() 717 lb_ret = ilb_check_v4(ilbs, ill, mp, ipha, ipha->ipha_protocol, in ill_input_short_v4()
|
H A D | ip6_input.c | 525 ilb_stack_t *ilbs = ipst->ips_netstack->netstack_ilb; in ill_input_short_v6() local 730 if (ilb_has_rules(ilbs) && ILB_SUPP_L4(ira->ira_protocol) && in ill_input_short_v6() 746 lb_ret = ilb_check_v6(ilbs, ill, mp, ip6h, ira->ira_protocol, in ill_input_short_v6()
|
H A D | ip_if.c | 18727 ilb_stack_t *ilbs; in ip_sioctl_ilb_cmd() local 18730 ilbs = ipst->ips_netstack->netstack_ilb; in ip_sioctl_ilb_cmd() 18742 ret = ilb_rule_add(ilbs, zoneid, cmd); in ip_sioctl_ilb_cmd() 18757 ilb_rule_del_all(ilbs, zoneid); in ip_sioctl_ilb_cmd() 18760 ilb_rule_enable_all(ilbs, zoneid); in ip_sioctl_ilb_cmd() 18763 ilb_rule_disable_all(ilbs, zoneid); in ip_sioctl_ilb_cmd() 18768 ret = ilb_rule_del(ilbs, zoneid, cmd->name); in ip_sioctl_ilb_cmd() 18770 ret = ilb_rule_enable(ilbs, zoneid, cmd->name, in ip_sioctl_ilb_cmd() 18773 ret = ilb_rule_disable(ilbs, zoneid, cmd->name, in ip_sioctl_ilb_cmd() 18787 ilb_get_num_rules(ilbs, zoneid, &(cmd->num)); in ip_sioctl_ilb_cmd() [all …]
|