Home
last modified time | relevance | path

Searched refs:kidx (Results 1 – 19 of 19) sorted by relevance

/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_table.c294 uint16_t kidx; in find_ref_table() local
632 kidx = tc->no.kidx; in add_table_entry()
640 kidx = tc->no.kidx; in add_table_entry()
762 kidx = tc->no.kidx; in del_table_entry()
1295 kidx = tc->no.kidx; in flush_table()
1446 tablestate[tc_a->no.kidx] = tablestate[tc_b->no.kidx]; in swap_tables()
1644 *kidx = tc->no.kidx; in ipfw_ref_table()
1927 tc->no.kidx = kidx; in create_table_internal()
2075 i->kidx = tc->no.kidx; in export_table_info()
3231 kidx = tc->no.kidx; in link_table()
[all …]
H A Dip_fw_eaction.c215 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) { in create_eaction_obj()
223 SRV_OBJECT(ch, obj->no.kidx) = obj; in create_eaction_obj()
229 *eaction_id = obj->no.kidx; in create_eaction_obj()
243 obj = SRV_OBJECT(ch, no->kidx); in destroy_eaction_obj()
244 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_eaction_obj()
247 ipfw_objhash_free_idx(ni, no->kidx); in destroy_eaction_obj()
267 if (eaction_id == no->kidx) in reset_eaction_rules()
285 no->kidx, instance_id) != 0) in reset_eaction_rules()
294 ipfw_dyn_reset_eaction(ch, eaction_id, no->kidx, instance_id); in reset_eaction_rules()
436 uint16_t kidx) in ipfw_reset_eaction_instance() argument
[all …]
H A Dip_fw_dynamic.c1057 if (info->kidx != 0 && s->kidx != info->kidx) in dyn_lookup_ipv4_state()
1092 s->kidx != kidx) in dyn_lookup_ipv4_state_locked()
1204 if (info->kidx != 0 && s->kidx != info->kidx) in dyn_lookup_ipv6_state()
1239 if (s->proto != pkt->proto || s->kidx != kidx || in dyn_lookup_ipv6_state_locked()
1520 s->kidx = kidx; in dyn_alloc_ipv4_state()
1602 info->kidx != kidx || in dyn_add_ipv4_state()
1650 s->kidx = kidx; in dyn_alloc_ipv6_state()
1733 info->kidx != kidx || in dyn_add_ipv6_state()
1821 kidx); in dyn_get_parent_state()
2906 dst->kidx = kidx; in dyn_export_parent()
[all …]
H A Dip_fw_table_value.c160 ptv->pval = &pval[ptv->no.kidx]; in update_tvalue()
161 ptv->no.name = (char *)&pval[ptv->no.kidx]; in update_tvalue()
252 uint32_t kidx) in unref_table_value() argument
256 KASSERT(pval[kidx].refcnt > 0, ("Refcount is 0 on kidx %d", kidx)); in unref_table_value()
257 if (--pval[kidx].refcnt > 0) in unref_table_value()
264 ipfw_objhash_free_idx(vi, kidx); in unref_table_value()
505 if (vlimit > 0 && vlimit <= ptv->no.kidx) in ipfw_link_table_values()
510 ptei->value = ptv->no.kidx; in ipfw_link_table_values()
569 ptei->value = ptv->no.kidx; in ipfw_link_table_values()
588 ptv->no.kidx = vidx; in ipfw_link_table_values()
[all …]
H A Dip_fw_private.h195 ((p)->kidx != 0 && (p)->kidx != (cmd)->arg1))
198 (p)->kidx = 0; \
202 uint16_t kidx; /* state name kidx */ member
345 uint16_t kidx; /* object kernel index */ member
473 uint16_t kidx; /* kernel object index */ member
586 uint16_t kidx);
664 int ipfw_mark_object_kidx(uint32_t *bmask, uint16_t etlv, uint16_t kidx);
778 uint16_t kidx);
779 int ipfw_ref_table(struct ip_fw_chain *ch, ipfw_obj_ntlv *ntlv, uint16_t *kidx);
780 void ipfw_unref_table(struct ip_fw_chain *ch, uint16_t kidx);
H A Dip_fw_sockopt.c1096 uint16_t kidx; in move_objects() local
2235 ntlv->idx = no->kidx; in ipfw_export_obj_ntlv()
2353 bidx += kidx / 32; in ipfw_mark_object_kidx()
2373 uint16_t kidx; in mark_rule_objects() local
2543 uint16_t kidx; in create_objects_compat() local
2551 if (p->kidx != 0) in create_objects_compat()
2567 p->kidx = kidx; in create_objects_compat()
2602 uint16_t kidx, uidx; in set_legacy_obj_kidx() local
2659 if (p->kidx == 0) in unref_oib_objects()
2684 uint16_t kidx; in unref_rule_objects() local
[all …]
H A Dip_fw_table.h185 int ipfw_export_table_ntlv(struct ip_fw_chain *ch, uint16_t kidx,
195 int ipfw_foreach_table_tentry(struct ip_fw_chain *ch, uint16_t kidx,
H A Dip_fw_table_algo.c524 tent->v.kidx = n->value; in ta_dump_radix_tentry()
532 tent->v.kidx = xn->value; in ta_dump_radix_tentry()
1375 tent->v.kidx = ent->value; in ta_dump_chash_tentry()
1898 uint16_t kidx; member
1979 if (key < ifidx->kidx) in compare_ifidx()
2384 ifi.kidx = ifindex; in if_notifier()
2519 tent->v.kidx = ife->value; in ta_dump_ifidx_tentry()
2975 tent->v.kidx = na->value; in ta_dump_numarray_tentry()
3362 tent->v.kidx = ent->value; in ta_dump_fhash_tentry()
3920 tent->v.kidx = 0; in ta_dump_kfib_tentry_int()
[all …]
H A Dip_fw2.c426 return ipfw_lookup_table(chain, cmd->p.kidx, 0, in iface_match()
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64clat.c69 uint32_t kidx) in nat64clat_log() argument
78 plog->rulenr = htonl(kidx); in nat64clat_log()
107 nat64clat_log(logdata, m, AF_INET, cfg->no.kidx); in nat64clat_handle_ip4()
139 nat64clat_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64clat_handle_ip6()
199 nat64clat_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64clat_handle_icmp6()
H A Dnat64stl.c68 uint32_t kidx) in nat64stl_log() argument
77 plog->rulenr = htonl(kidx); in nat64stl_log()
108 nat64stl_log(logdata, m, AF_INET, cfg->no.kidx); in nat64stl_handle_ip4()
141 nat64stl_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64stl_handle_ip6()
199 nat64stl_log(logdata, m, AF_INET6, cfg->no.kidx); in nat64stl_handle_icmp6()
H A Dnat64stl_control.c150 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) in nat64stl_create_internal()
225 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nat64stl_create()
231 ipfw_objhash_free_idx(ni, cfg->no.kidx); in nat64stl_create()
308 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nat64stl_detach_config()
345 ipfw_reset_eaction_instance(ch, V_nat64stl_eid, cfg->no.kidx); in nat64stl_destroy()
346 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nat64stl_destroy()
579 cfg = (struct nat64stl_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb()
580 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
H A Dnat64clat_control.c193 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { in nat64clat_create()
200 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nat64clat_create()
305 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nat64clat_detach_config()
340 ipfw_reset_eaction_instance(ch, V_nat64clat_eid, cfg->no.kidx); in nat64clat_destroy()
341 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nat64clat_destroy()
574 cfg = (struct nat64clat_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb()
575 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
H A Dnat64lsn_control.c197 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) { in nat64lsn_create()
205 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nat64lsn_create()
219 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nat64lsn_detach_config()
253 ipfw_reset_eaction_instance(ch, V_nat64lsn_eid, cfg->no.kidx); in nat64lsn_destroy()
254 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nat64lsn_destroy()
901 cfg = (struct nat64lsn_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb()
902 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
/f-stack/freebsd/netpfil/ipfw/nptv6/
H A Dnptv6.c581 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx); in ifaddr_cb()
704 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { in nptv6_create()
710 SRV_OBJECT(ch, cfg->no.kidx) = cfg; in nptv6_create()
750 ipfw_reset_eaction_instance(ch, V_nptv6_eid, cfg->no.kidx); in nptv6_destroy()
751 SRV_OBJECT(ch, cfg->no.kidx) = NULL; in nptv6_destroy()
753 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); in nptv6_destroy()
1000 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx); in destroy_config_cb()
1001 SRV_OBJECT(ch, no->kidx) = NULL; in destroy_config_cb()
1003 ipfw_objhash_free_idx(ni, cfg->no.kidx); in destroy_config_cb()
/f-stack/tools/compat/include/netinet/
H A Dip_fw.h417 uint16_t kidx; member
722 u_int16_t kidx; /* index of named object */ member
904 uint32_t kidx; /* value kernel index */ member
984 uint32_t kidx; /* kernel index */ member
/f-stack/freebsd/netinet/
H A Dip_fw.h417 uint16_t kidx; member
722 u_int16_t kidx; /* index of named object */ member
904 uint32_t kidx; /* value kernel index */ member
984 uint32_t kidx; /* kernel index */ member
/f-stack/tools/ipfw/
H A Dtables.c797 printf(" kindex: %d, type: %s, locked\n", i->kidx, ttype); in table_show_info()
799 printf(" kindex: %d, type: %s\n", i->kidx, ttype); in table_show_info()
H A Dipfw2.c1597 insntod(cmd, if)->p.kidx)); in print_instruction()
2327 if (d->kidx != 0) in show_dyn_state()
2329 d->kidx, IPFW_TLV_STATE_NAME)); in show_dyn_state()
3449 cmd->p.kidx = uidx; in fill_iface()