Home
last modified time | relevance | path

Searched refs:ilbs (Results 1 – 9 of 9) sorted by relevance

/titanic_44/usr/src/uts/common/inet/ilb/
H A Dilb.c117 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 Dilb_conn.c60 ilb_stack_t *ilbs; member
205 ilb_stack_t *ilbs; in ilb_conn_cleanup() local
212 ilbs = timer->ilbs; in ilb_conn_cleanup()
213 c2s_hash = ilbs->ilbs_c2s_conn_hash; in ilb_conn_cleanup()
241 if (connp == ilbs->ilbs_conn_list_connp) { in ilb_conn_cleanup()
242 ilbs->ilbs_conn_list_connp = in ilb_conn_cleanup()
281 (void) taskq_dispatch(timer->ilbs->ilbs_conn_taskq, ilb_conn_cleanup, in ilb_conn_timer()
294 ilb_conn_hash_init(ilb_stack_t *ilbs) in ilb_conn_hash_init() argument
305 if (!ISP2(ilbs->ilbs_conn_hash_size)) { in ilb_conn_hash_init()
307 if (ilbs->ilbs_conn_hash_size < (1 << i)) in ilb_conn_hash_init()
[all …]
H A Dilb_nat.c134 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 Dilb_impl.h51 #define ILB_KSTAT_UPDATE(ilbs, x, y) \ argument
54 (ilbs)); \
55 ((ilbs)->ilbs_kstat->x.value.ui64 += (y)); \
H A Dilb_nat.h67 extern int ilb_create_nat_src(ilb_stack_t *ilbs, ilb_nat_src_t **,
/titanic_44/usr/src/cmd/mdb/common/modules/ip/
H A Dip.c3179 ilb_stack_t ilbs; in ilb_rules_walk_init() local
3184 if (mdb_vread(&ilbs, sizeof (ilbs), wsp->walk_addr) == -1) { in ilb_rules_walk_init()
3188 if ((wsp->walk_addr = (uintptr_t)ilbs.ilbs_rule_head) != NULL) in ilb_rules_walk_init()
3255 ilb_stack_t ilbs; member
3273 if (mdb_vread(&ns_walk->ilbs, sizeof (ns_walk->ilbs), in ilb_nat_src_walk_init()
3280 if (ns_walk->ilbs.ilbs_nat_src == NULL) { in ilb_nat_src_walk_init()
3286 for (i = 0; i < ns_walk->ilbs.ilbs_nat_src_hash_size; i++) { in ilb_nat_src_walk_init()
3291 khead = (char *)ns_walk->ilbs.ilbs_nat_src + i * in ilb_nat_src_walk_init()
3324 ilb_stack_t *ilbs; in ilb_nat_src_walk_step() local
3340 ilbs = &ns_walk->ilbs; in ilb_nat_src_walk_step()
[all …]
/titanic_44/usr/src/uts/common/inet/ip/
H A Dip_input.c567 ilb_stack_t *ilbs = ipst->ips_netstack->netstack_ilb; in ill_input_short_v4() local
681 if (ilb_has_rules(ilbs) && ILB_SUPP_L4(ipha->ipha_protocol)) { in ill_input_short_v4()
703 if (!ilb_rule_match_vip_v4(ilbs, nexthop, NULL)) { in ill_input_short_v4()
707 ILB_KSTAT_UPDATE(ilbs, ip_frag_in, 1); in ill_input_short_v4()
708 ILB_KSTAT_UPDATE(ilbs, ip_frag_dropped, 1); in ill_input_short_v4()
714 lb_ret = ilb_check_v4(ilbs, ill, mp, ipha, ipha->ipha_protocol, in ill_input_short_v4()
H A Dip6_input.c524 ilb_stack_t *ilbs = ipst->ips_netstack->netstack_ilb; in ill_input_short_v6() local
729 if (ilb_has_rules(ilbs) && ILB_SUPP_L4(ira->ira_protocol) && in ill_input_short_v6()
745 lb_ret = ilb_check_v6(ilbs, ill, mp, ip6h, ira->ira_protocol, in ill_input_short_v6()
H A Dip_if.c18715 ilb_stack_t *ilbs; in ip_sioctl_ilb_cmd() local
18718 ilbs = ipst->ips_netstack->netstack_ilb; in ip_sioctl_ilb_cmd()
18730 ret = ilb_rule_add(ilbs, zoneid, cmd); in ip_sioctl_ilb_cmd()
18745 ilb_rule_del_all(ilbs, zoneid); in ip_sioctl_ilb_cmd()
18748 ilb_rule_enable_all(ilbs, zoneid); in ip_sioctl_ilb_cmd()
18751 ilb_rule_disable_all(ilbs, zoneid); in ip_sioctl_ilb_cmd()
18756 ret = ilb_rule_del(ilbs, zoneid, cmd->name); in ip_sioctl_ilb_cmd()
18758 ret = ilb_rule_enable(ilbs, zoneid, cmd->name, in ip_sioctl_ilb_cmd()
18761 ret = ilb_rule_disable(ilbs, zoneid, cmd->name, in ip_sioctl_ilb_cmd()
18775 ilb_get_num_rules(ilbs, zoneid, &(cmd->num)); in ip_sioctl_ilb_cmd()
[all …]