/freebsd-13-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_eaction.c | 171 EACTION_DEBUG("kidx %u", idx); 215 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) { 223 SRV_OBJECT(ch, obj->no.kidx) = obj; 229 *eaction_id = obj->no.kidx; 243 obj = SRV_OBJECT(ch, no->kidx); 244 SRV_OBJECT(ch, no->kidx) = NULL; 247 ipfw_objhash_free_idx(ni, no->kidx); 267 if (eaction_id == no->kidx) 270 EACTION_DEBUG("Going to replace id %u with %u", eaction_id, no->kidx); 285 no->kidx, instance_i 435 ipfw_reset_eaction_instance(struct ip_fw_chain *ch, uint16_t eaction_id, uint16_t kidx) argument [all...] |
H A D | ip_fw_table.c | 180 get_table_value(struct ip_fw_chain *ch, struct table_config *tc, uint32_t kidx) argument 186 return (&pval[kidx]); 254 * Saves table config, algo and allocated kidx info @ptc, @pta and 294 uint16_t kidx; local 328 error = create_table_compat(ch, ti, &kidx); 334 tc = (struct table_config *)ipfw_objhash_lookup_kidx(ni, kidx); 335 KASSERT(tc != NULL, ("create_table_compat returned bad idx %d", kidx)); 550 uint16_t kidx; local 632 kidx = tc->no.kidx; 722 uint16_t kidx; local 973 int error, i, kidx, read; local 1215 uint16_t kidx; local 1616 ipfw_objhash_lookup_table_kidx(struct ip_fw_chain *ch, uint16_t kidx) argument 1627 ipfw_ref_table(struct ip_fw_chain *ch, ipfw_obj_ntlv *ntlv, uint16_t *kidx) argument 1650 ipfw_unref_table(struct ip_fw_chain *ch, uint16_t kidx) argument 1879 uint16_t kidx; local 1979 ipfw_export_table_ntlv(struct ip_fw_chain *ch, uint16_t kidx, struct sockopt_data *sd) argument 2531 ipfw_foreach_table_tentry(struct ip_fw_chain *ch, uint16_t kidx, ta_foreach_f *f, void *arg) argument 3018 uint16_t kidx; local 3226 uint16_t kidx; local 3255 uint16_t kidx; local [all...] |
H A D | ip_fw_table_value.c | 160 ptv->pval = &pval[ptv->no.kidx]; 161 ptv->no.name = (char *)&pval[ptv->no.kidx]; 247 * Drops reference for table value with index @kidx, stored in @pval and 252 uint32_t kidx) 256 KASSERT(pval[kidx].refcnt > 0, ("Refcount is 0 on kidx %d", kidx)); 257 if (--pval[kidx].refcnt > 0) 261 ptvl = (struct table_val_link *)ipfw_objhash_lookup_kidx(vi, kidx); 262 KASSERT(ptvl != NULL, ("lookup on value kidx 251 unref_table_value(struct namedobj_instance *vi, struct table_value *pval, uint32_t kidx) argument [all...] |
H A D | ip_fw_dynamic.c | 174 uint16_t kidx; /* named object index */ member in struct:dyn_ipv4_state 199 uint16_t kidx; /* named object index */ member in struct:dyn_ipv6_state 647 DYN_DEBUG("kidx %d", idx); 685 * Just return its kidx and bump refcount. 687 *pkidx = no->kidx; 691 DYN_DEBUG("\tfound kidx %d", *pkidx); 694 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) { 701 SRV_OBJECT(ch, obj->no.kidx) = obj; 703 *pkidx = obj->no.kidx; 705 DYN_DEBUG("\tcreated kidx 1082 dyn_lookup_ipv4_state_locked(const struct ipfw_flow_id *pkt, const void *ulp, int pktlen, uint32_t bucket, uint16_t kidx) argument 1230 dyn_lookup_ipv6_state_locked(const struct ipfw_flow_id *pkt, uint32_t zoneid, const void *ulp, int pktlen, uint32_t bucket, uint16_t kidx) argument 1510 dyn_alloc_ipv4_state(const struct ipfw_flow_id *pkt, uint16_t kidx, uint8_t type) argument 1537 dyn_add_ipv4_parent(void *rule, uint32_t ruleid, uint16_t rulenum, const struct ipfw_flow_id *pkt, uint32_t hashval, uint32_t version, uint16_t kidx) argument 1590 dyn_add_ipv4_state(void *parent, uint32_t ruleid, uint16_t rulenum, const struct ipfw_flow_id *pkt, const void *ulp, int pktlen, uint32_t hashval, struct ipfw_dyn_info *info, uint16_t fibnum, uint16_t kidx, uint8_t type) argument 1640 dyn_alloc_ipv6_state(const struct ipfw_flow_id *pkt, uint32_t zoneid, uint16_t kidx, uint8_t type) argument 1668 dyn_add_ipv6_parent(void *rule, uint32_t ruleid, uint16_t rulenum, const struct ipfw_flow_id *pkt, uint32_t zoneid, uint32_t hashval, uint32_t version, uint16_t kidx) argument 1721 dyn_add_ipv6_state(void *parent, uint32_t ruleid, uint16_t rulenum, const struct ipfw_flow_id *pkt, uint32_t zoneid, const void *ulp, int pktlen, uint32_t hashval, struct ipfw_dyn_info *info, uint16_t fibnum, uint16_t kidx, uint8_t type) argument 1771 dyn_get_parent_state(const struct ipfw_flow_id *pkt, uint32_t zoneid, struct ip_fw *rule, uint32_t hashval, uint32_t limit, uint16_t kidx) argument 1863 dyn_install_state(const struct ipfw_flow_id *pkt, uint32_t zoneid, uint16_t fibnum, const void *ulp, int pktlen, struct ip_fw *rule, struct ipfw_dyn_info *info, uint32_t limit, uint16_t limit_mask, uint16_t kidx, uint8_t type) argument 2133 dyn_acquire_rule(struct ip_fw_chain *ch, struct dyn_data *data, struct ip_fw *rule, uint16_t kidx) argument 2160 dyn_release_rule(struct ip_fw_chain *ch, struct dyn_data *data, struct ip_fw *rule, uint16_t kidx) argument 2935 dyn_export_parent(const struct dyn_parent *p, uint16_t kidx, uint8_t set, ipfw_dyn_rule *dst) argument 2967 dyn_export_data(const struct dyn_data *data, uint16_t kidx, uint8_t type, uint8_t set, ipfw_dyn_rule *dst) argument [all...] |
H A D | ip_fw_sockopt.c | 170 static int export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx, 588 cmdif->p.kidx = (uint16_t)cmdif->p.glob; 672 cmdif->p.glob = cmdif->p.kidx; 959 * @set used to pass kidx. 970 /* @set used to pass kidx */ 988 /* @set used to pass kidx */ 1096 uint16_t kidx; local 1111 rw = find_op_rw(cmd, &kidx, NULL); 1120 if (rw->manage_sets(ch, kidx, 1, COUNT_ONE) != 0) 1138 rw = find_op_rw(cmd, &kidx, NUL 2246 export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx, struct sockopt_data *sd) argument 2345 ipfw_mark_object_kidx(uint32_t *bmask, uint16_t etlv, uint16_t kidx) argument 2373 uint16_t kidx; local 2543 uint16_t kidx; local 2602 uint16_t kidx, uidx; local 2684 uint16_t kidx; local 4511 ipfw_objhash_lookup_kidx(struct namedobj_instance *ni, uint16_t kidx) argument [all...] |
H A D | ip_fw_private.h | 195 ((p)->kidx != 0 && (p)->kidx != (cmd)->arg1)) 198 (p)->kidx = 0; \ 202 uint16_t kidx; /* state name kidx */ member in struct:ipfw_dyn_info 345 uint16_t kidx; /* object kernel index */ member in struct:named_object 473 uint16_t kidx; /* kernel object index */ member in struct:obj_idx 586 uint16_t kidx); 606 * COUNT_ONE used to count number of references used by object with kidx `set'; 607 * TEST_ONE checks that named object with kidx `se [all...] |
H A D | ip_fw_table.h | 185 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 D | ip_fw_table_algo.c | 524 tent->v.kidx = n->value; 532 tent->v.kidx = xn->value; 1375 tent->v.kidx = ent->value; 1381 tent->v.kidx = ent->value; 1898 uint16_t kidx; member in struct:ifidx 1979 if (key < ifidx->kidx) 1981 else if (key > ifidx->kidx) 2384 ifi.kidx = ifindex; 2519 tent->v.kidx = ife->value; 2975 tent->v.kidx [all...] |
H A D | ip_fw2.c | 426 return ipfw_lookup_table(chain, cmd->p.kidx, 0,
|
/freebsd-13-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64clat.c | 69 uint32_t kidx) 78 plog->rulenr = htonl(kidx); 107 nat64clat_log(logdata, m, AF_INET, cfg->no.kidx); 139 nat64clat_log(logdata, m, AF_INET6, cfg->no.kidx); 199 nat64clat_log(logdata, m, AF_INET6, cfg->no.kidx); 68 nat64clat_log(struct pfloghdr *plog, struct mbuf *m, sa_family_t family, uint32_t kidx) argument
|
H A D | nat64stl.c | 68 uint32_t kidx) 77 plog->rulenr = htonl(kidx); 108 nat64stl_log(logdata, m, AF_INET, cfg->no.kidx); 141 nat64stl_log(logdata, m, AF_INET6, cfg->no.kidx); 199 nat64stl_log(logdata, m, AF_INET6, cfg->no.kidx); 67 nat64stl_log(struct pfloghdr *plog, struct mbuf *m, sa_family_t family, uint32_t kidx) argument
|
H A D | nat64stl_control.c | 150 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) 225 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 231 ipfw_objhash_free_idx(ni, cfg->no.kidx); 308 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 345 ipfw_reset_eaction_instance(ch, V_nat64stl_eid, cfg->no.kidx); 346 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 579 cfg = (struct nat64stl_cfg *)SRV_OBJECT(ch, no->kidx); 580 SRV_OBJECT(ch, no->kidx) = NULL;
|
H A D | nat64clat_control.c | 193 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { 200 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 305 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 340 ipfw_reset_eaction_instance(ch, V_nat64clat_eid, cfg->no.kidx); 341 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 574 cfg = (struct nat64clat_cfg *)SRV_OBJECT(ch, no->kidx); 575 SRV_OBJECT(ch, no->kidx) = NULL;
|
H A D | nat64lsn_control.c | 197 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) { 205 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 219 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 253 ipfw_reset_eaction_instance(ch, V_nat64lsn_eid, cfg->no.kidx); 254 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 901 cfg = (struct nat64lsn_cfg *)SRV_OBJECT(ch, no->kidx); 902 SRV_OBJECT(ch, no->kidx) = NULL;
|
/freebsd-13-stable/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 581 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx); 704 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { 710 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 750 ipfw_reset_eaction_instance(ch, V_nptv6_eid, cfg->no.kidx); 751 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 753 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 965 NPTV6_DEBUG("kidx %u -> %s", idx, no->name); 1000 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx); 1001 SRV_OBJECT(ch, no->kidx) = NULL; 1003 ipfw_objhash_free_idx(ni, cfg->no.kidx); [all...] |
/freebsd-13-stable/sys/dev/usb/wlan/ |
H A D | if_rumreg.h | 53 #define RT2573_SKEY(vap, kidx) (0x1000 + ((vap) * RT2573_SKEY_MAX + \ 54 (kidx)) * KEY_SIZE)
|
H A D | if_runreg.h | 196 #define RT2860_SKEY(vap, kidx) (0x6c00 + (vap) * 128 + (kidx) * 32)
|
/freebsd-13-stable/sys/netinet/ |
H A D | ip_fw.h | 417 uint16_t kidx; member in union:_ipfw_insn_if::__anon15346 724 u_int16_t kidx; /* index of named object */ member in struct:_ipfw_dyn_rule 906 uint32_t kidx; /* value kernel index */ member in union:_ipfw_obj_tentry::__anon15352 986 uint32_t kidx; /* kernel index */ member in struct:_ipfw_xtable_info
|
/freebsd-13-stable/sys/dev/ral/ |
H A D | rt2860reg.h | 198 #define RT2860_SKEY(vap, kidx) (0x6c00 + (vap) * 128 + (kidx) * 32)
|
/freebsd-13-stable/sbin/ipfw/ |
H A D | tables.c | 803 printf(" kindex: %d, type: %s, locked\n", i->kidx, ttype); 805 printf(" kindex: %d, type: %s\n", i->kidx, ttype);
|
H A D | ipfw2.c | 1589 insntod(cmd, if)->p.kidx)); 2322 if (d->kidx != 0) 2324 d->kidx, IPFW_TLV_STATE_NAME)); 3432 cmd->p.kidx = uidx; 5547 printf(" kidx: %4d\ttype: %10d\tname: %s\n", 5550 printf(" kidx: %4d\ttype: %10s\tname: %s\n",
|
/freebsd-13-stable/sys/dev/bwn/ |
H A D | if_bwn.c | 4775 uint16_t kidx, value; local 4777 kidx = BWN_SEC_KEY2FW(mac, index); 4779 BWN_SHARED_KEYIDX_BLOCK + (kidx * 2), (kidx << 4) | algorithm);
|