Searched defs:ilbs (Results 1 - 7 of 7) sorted by relevance

/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_nat.c134 ilb_nat_src_init(ilb_stack_t *ilbs) argument
138 ilbs->ilbs_nat_src = kmem_zalloc(sizeof (ilb_nat_src_hash_t) *
139 ilbs->ilbs_nat_src_hash_size, KM_SLEEP);
140 for (i = 0; i < ilbs->ilbs_nat_src_hash_size; i++) {
141 list_create(&ilbs->ilbs_nat_src[i].nsh_head,
144 mutex_init(&ilbs->ilbs_nat_src[i].nsh_lock, NULL,
147 ilbs->ilbs_nat_src_tid = timeout(ilb_nat_src_timer, ilbs,
156 ilb_nat_src_fini(ilb_stack_t *ilbs) argument
166 mutex_enter(&ilbs
200 ilb_find_nat_src(ilb_stack_t *ilbs, const in6_addr_t *nat_src, const in6_addr_t *serv_addr, in_port_t port) argument
257 ilb_create_nat_src(ilb_stack_t *ilbs, ilb_nat_src_t **nat_src, const in6_addr_t *srv_addr, in_port_t port, const in6_addr_t *start, int num) argument
297 ilb_stack_t *ilbs = (ilb_stack_t *)arg; local
[all...]
H A Dilb.c117 ilb_stack_t *ilbs; member in struct:__anon4685
177 ilb_kstat_g_init(netstackid_t stackid, ilb_stack_t *ilbs) argument
191 bcopy(&template, ilbs->ilbs_kstat, sizeof (template));
192 ksp->ks_data = ilbs->ilbs_kstat;
200 ilb_kstat_g_fini(netstackid_t stackid, ilb_stack_t *ilbs) argument
202 if (ilbs->ilbs_ksp != NULL) {
204 ilbs->ilbs_ksp->ks_private);
205 kstat_delete_netstack(ilbs->ilbs_ksp, stackid);
206 ilbs->ilbs_ksp = NULL;
280 ilb_rule_hash_init(ilb_stack_t *ilbs) argument
305 ilb_rule_hash_fini(ilb_stack_t *ilbs) argument
315 ilb_rule_hash_add(ilb_stack_t *ilbs, ilb_rule_t *rule, const in6_addr_t *addr) argument
365 ilb_rule_hash(ilb_stack_t *ilbs, int l3, int l4, in6_addr_t *addr, in_port_t port, zoneid_t zoneid, uint32_t len, boolean_t *busy) argument
447 ilb_rule_g_add(ilb_stack_t *ilbs, ilb_rule_t *rule) argument
457 ilb_rule_g_del(ilb_stack_t *ilbs, ilb_rule_t *rule) argument
517 ilb_rule_add(ilb_stack_t *ilbs, zoneid_t zoneid, const ilb_rule_cmd_t *cmd) argument
757 ilb_rule_del_common(ilb_stack_t *ilbs, ilb_rule_t *tmp_rule) argument
803 ilb_stack_t *ilbs = ((ilb_rule_tq_t *)arg)->ilbs; local
815 ilb_rule_del(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name) argument
860 ilb_rule_match_vip_v6(ilb_stack_t *ilbs, in6_addr_t *vip, ilb_rule_t **ret_rule) argument
893 ilb_rule_match_vip_v4(ilb_stack_t *ilbs, ipaddr_t addr, ilb_rule_t **ret_rule) argument
925 ilb_find_rule_locked(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name, int *err) argument
955 ilb_find_rule(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name, int *err) argument
968 ilb_match_rule(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name, int l3, int l4, in_port_t min_port, in_port_t max_port, const in6_addr_t *addr) argument
1015 ilb_rule_enable(ilb_stack_t *ilbs, zoneid_t zoneid, const char *rule_name, ilb_rule_t *in_rule) argument
1040 ilb_rule_disable(ilb_stack_t *ilbs, zoneid_t zoneid, const char *rule_name, ilb_rule_t *in_rule) argument
1069 ilb_rule_enable_all(ilb_stack_t *ilbs, zoneid_t zoneid) argument
1088 ilb_rule_disable_all(ilb_stack_t *ilbs, zoneid_t zoneid) argument
1103 ilb_rule_del_all(ilb_stack_t *ilbs, zoneid_t zoneid) argument
1132 ilb_has_rules(ilb_stack_t *ilbs) argument
1139 ilb_server_toggle(ilb_stack_t *ilbs, zoneid_t zoneid, const char *rule_name, ilb_rule_t *rule, in6_addr_t *addr, boolean_t enable) argument
1193 ilb_server_enable(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name, ilb_rule_t *rule, in6_addr_t *addr) argument
1200 ilb_server_disable(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name, ilb_rule_t *rule, in6_addr_t *addr) argument
1211 ilb_server_add(ilb_stack_t *ilbs, ilb_rule_t *rule, ilb_server_info_t *info) argument
1415 ilb_server_del(ilb_stack_t *ilbs, zoneid_t zoneid, const char *rule_name, ilb_rule_t *rule, in6_addr_t *addr) argument
1544 ilb_icmp_v4(ilb_stack_t *ilbs, ill_t *ill, mblk_t *mp, ipha_t *ipha, icmph_t *icmph, ipaddr_t *lb_dst) argument
1605 ilb_icmp_v6(ilb_stack_t *ilbs, ill_t *ill, mblk_t *mp, ip6_t *ip6h, icmp6_t *icmp6, in6_addr_t *lb_dst) argument
1665 ilb_check(ilb_stack_t *ilbs, ill_t *ill, mblk_t *mp, in6_addr_t *src, in6_addr_t *dst, int l3, int l4, void *iph, uint8_t *tph, uint32_t pkt_len, in6_addr_t *lb_dst) argument
1882 ilb_check_v4(ilb_stack_t *ilbs, ill_t *ill, mblk_t *mp, ipha_t *ipha, int l4, uint8_t *tph, ipaddr_t *lb_dst) argument
1905 ilb_check_v6(ilb_stack_t *ilbs, ill_t *ill, mblk_t *mp, ip6_t *ip6h, int l4, uint8_t *tph, in6_addr_t *lb_dst) argument
1923 ilb_get_num_rules(ilb_stack_t *ilbs, zoneid_t zoneid, uint32_t *num_rules) argument
1938 ilb_get_num_servers(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name, uint32_t *num_servers) argument
1952 ilb_get_servers(ilb_stack_t *ilbs, zoneid_t zoneid, const char *name, ilb_server_info_t *servers, uint32_t *num_servers) argument
1980 ilb_get_rulenames(ilb_stack_t *ilbs, zoneid_t zoneid, uint32_t *num_names, char *buf) argument
2005 ilb_rule_list(ilb_stack_t *ilbs, zoneid_t zoneid, ilb_rule_cmd_t *cmd) argument
2050 ilb_stack_t *ilbs; local
2114 ilb_stack_t *ilbs = (ilb_stack_t *)arg; local
2135 ilb_stack_t *ilbs = (ilb_stack_t *)arg; local
[all...]
H A Dilb_conn.c53 * ilbs: pointer to the ilb_stack_t of the IP stack
60 ilb_stack_t *ilbs; member in struct:ilb_timer_s
205 ilb_stack_t *ilbs; local
212 ilbs = timer->ilbs;
213 c2s_hash = ilbs->ilbs_c2s_conn_hash;
241 if (connp == ilbs->ilbs_conn_list_connp) {
242 ilbs->ilbs_conn_list_connp =
281 (void) taskq_dispatch(timer->ilbs->ilbs_conn_taskq, ilb_conn_cleanup,
294 ilb_conn_hash_init(ilb_stack_t *ilbs) argument
365 ilb_conn_hash_fini(ilb_stack_t *ilbs) argument
501 ilb_conn_add(ilb_stack_t *ilbs, ilb_rule_t *rule, ilb_server_t *server, in6_addr_t *src, in_port_t sport, in6_addr_t *dst, in_port_t dport, ilb_nat_info_t *info, uint32_t *ip_sum, uint32_t *tp_sum, ilb_sticky_t *s) argument
748 ilb_find_conn(ilb_stack_t *ilbs, void *iph, void *tph, int l4, in6_addr_t *src, in_port_t sport, in6_addr_t *dst, in_port_t dport, ilb_rule_info_t *rule_cache, uint32_t *ip_sum, uint32_t *tp_sum, int32_t pkt_len, boolean_t c2s) argument
829 ilb_check_conn(ilb_stack_t *ilbs, int l3, void *iph, int l4, void *tph, in6_addr_t *src, in6_addr_t *dst, in_port_t sport, in_port_t dport, uint32_t pkt_len, in6_addr_t *lb_dst) argument
889 ilb_check_icmp_conn(ilb_stack_t *ilbs, mblk_t *mp, int l3, void *out_iph, void *icmph, in6_addr_t *lb_dst) argument
1029 ilb_list_nat(ilb_stack_t *ilbs, zoneid_t zoneid, ilb_nat_entry_t *nat, uint32_t *num, uint32_t *flags) argument
1227 ilb_sticky_find_add(ilb_stack_t *ilbs, ilb_rule_t *rule, in6_addr_t *src, ilb_server_t *server, ilb_sticky_t **res, uint16_t *src_ent_idx) argument
1311 ilb_stack_t *ilbs; local
1358 ilb_sticky_hash_init(ilb_stack_t *ilbs) argument
1412 ilb_sticky_hash_fini(ilb_stack_t *ilbs) argument
1458 ilb_list_sticky(ilb_stack_t *ilbs, zoneid_t zoneid, ilb_sticky_entry_t *st, uint32_t *num, uint32_t *flags) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip6_input.c524 ilb_stack_t *ilbs = ipst->ips_netstack->netstack_ilb; local
729 if (ilb_has_rules(ilbs) && ILB_SUPP_L4(ira->ira_protocol) &&
745 lb_ret = ilb_check_v6(ilbs, ill, mp, ip6h, ira->ira_protocol,
H A Dip_input.c567 ilb_stack_t *ilbs = ipst->ips_netstack->netstack_ilb; local
681 if (ilb_has_rules(ilbs) && ILB_SUPP_L4(ipha->ipha_protocol)) {
703 if (!ilb_rule_match_vip_v4(ilbs, nexthop, NULL)) {
707 ILB_KSTAT_UPDATE(ilbs, ip_frag_in, 1);
708 ILB_KSTAT_UPDATE(ilbs, ip_frag_dropped, 1);
714 lb_ret = ilb_check_v4(ilbs, ill, mp, ipha, ipha->ipha_protocol,
H A Dip_if.c18722 ilb_stack_t *ilbs; local
18725 ilbs = ipst->ips_netstack->netstack_ilb;
18737 ret = ilb_rule_add(ilbs, zoneid, cmd);
18752 ilb_rule_del_all(ilbs, zoneid);
18755 ilb_rule_enable_all(ilbs, zoneid);
18758 ilb_rule_disable_all(ilbs, zoneid);
18763 ret = ilb_rule_del(ilbs, zoneid, cmd->name);
18765 ret = ilb_rule_enable(ilbs, zoneid, cmd->name,
18768 ret = ilb_rule_disable(ilbs, zoneid, cmd->name,
18782 ilb_get_num_rules(ilbs, zonei
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/ip/
H A Dip.c3179 ilb_stack_t ilbs; local
3184 if (mdb_vread(&ilbs, sizeof (ilbs), wsp->walk_addr) == -1) {
3188 if ((wsp->walk_addr = (uintptr_t)ilbs.ilbs_rule_head) != NULL)
3255 ilb_stack_t ilbs; member in struct:__anon34
3273 if (mdb_vread(&ns_walk->ilbs, sizeof (ns_walk->ilbs),
3280 if (ns_walk->ilbs.ilbs_nat_src == NULL) {
3286 for (i = 0; i < ns_walk->ilbs.ilbs_nat_src_hash_size; i++) {
3291 khead = (char *)ns_walk->ilbs
3324 ilb_stack_t *ilbs; local
3456 ilb_stack_t *ilbs; local
3566 ilb_stack_t *ilbs; local
[all...]

Completed in 143 milliseconds