/freebsd-12-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 | 181 get_table_value(struct ip_fw_chain *ch, struct table_config *tc, uint32_t kidx) argument 187 return (&pval[kidx]); 256 * Saves table config, algo and allocated kidx info @ptc, @pta and 296 uint16_t kidx; local 330 error = create_table_compat(ch, ti, &kidx); 336 tc = (struct table_config *)ipfw_objhash_lookup_kidx(ni, kidx); 337 KASSERT(tc != NULL, ("create_table_compat returned bad idx %d", kidx)); 555 uint16_t kidx; local 637 kidx = tc->no.kidx; 719 uint16_t kidx; local 971 int error, i, kidx, read; local 1213 uint16_t kidx; local 1615 ipfw_objhash_lookup_table_kidx(struct ip_fw_chain *ch, uint16_t kidx) argument 1626 ipfw_ref_table(struct ip_fw_chain *ch, ipfw_obj_ntlv *ntlv, uint16_t *kidx) argument 1649 ipfw_unref_table(struct ip_fw_chain *ch, uint16_t kidx) argument 1878 uint16_t kidx; local 1979 ipfw_export_table_ntlv(struct ip_fw_chain *ch, uint16_t kidx, struct sockopt_data *sd) argument 2533 ipfw_foreach_table_tentry(struct ip_fw_chain *ch, uint16_t kidx, ta_foreach_f *f, void *arg) argument 3020 uint16_t kidx; local 3229 uint16_t kidx; local 3258 uint16_t kidx; local [all...] |
H A D | ip_fw_table_value.c | 162 ptv->pval = &pval[ptv->no.kidx]; 163 ptv->no.name = (char *)&pval[ptv->no.kidx]; 249 * Drops reference for table value with index @kidx, stored in @pval and 254 uint32_t kidx) 258 KASSERT(pval[kidx].refcnt > 0, ("Refcount is 0 on kidx %d", kidx)); 259 if (--pval[kidx].refcnt > 0) 263 ptvl = (struct table_val_link *)ipfw_objhash_lookup_kidx(vi, kidx); 264 KASSERT(ptvl != NULL, ("lookup on value kidx 253 unref_table_value(struct namedobj_instance *vi, struct table_value *pval, uint32_t kidx) argument [all...] |
H A D | ip_fw_dynamic.c | 175 uint16_t kidx; /* named object index */ member in struct:dyn_ipv4_state 200 uint16_t kidx; /* named object index */ member in struct:dyn_ipv6_state 646 DYN_DEBUG("kidx %d", idx); 684 * Just return its kidx and bump refcount. 686 *pkidx = no->kidx; 690 DYN_DEBUG("\tfound kidx %d", *pkidx); 693 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) { 700 SRV_OBJECT(ch, obj->no.kidx) = obj; 702 *pkidx = obj->no.kidx; 704 DYN_DEBUG("\tcreated kidx 1081 dyn_lookup_ipv4_state_locked(const struct ipfw_flow_id *pkt, const void *ulp, int pktlen, uint32_t bucket, uint16_t kidx) argument 1233 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 1513 dyn_alloc_ipv4_state(const struct ipfw_flow_id *pkt, uint16_t kidx, uint8_t type) argument 1540 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 1593 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 1643 dyn_alloc_ipv6_state(const struct ipfw_flow_id *pkt, uint32_t zoneid, uint16_t kidx, uint8_t type) argument 1671 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 1724 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 1774 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 1866 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 2136 dyn_acquire_rule(struct ip_fw_chain *ch, struct dyn_data *data, struct ip_fw *rule, uint16_t kidx) argument 2163 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 | 171 static int export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx, 593 cmdif->p.kidx = (uint16_t)cmdif->p.glob; 677 cmdif->p.glob = cmdif->p.kidx; 968 * @set used to pass kidx. 979 /* @set used to pass kidx */ 997 /* @set used to pass kidx */ 1105 uint16_t kidx; local 1120 rw = find_op_rw(cmd, &kidx, NULL); 1129 if (rw->manage_sets(ch, kidx, 1, COUNT_ONE) != 0) 1147 rw = find_op_rw(cmd, &kidx, NUL 2259 export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx, struct sockopt_data *sd) argument 2358 ipfw_mark_object_kidx(uint32_t *bmask, uint16_t etlv, uint16_t kidx) argument 2386 uint16_t kidx; local 2556 uint16_t kidx; local 2615 uint16_t kidx, uidx; local 2699 uint16_t kidx; local 4530 ipfw_objhash_lookup_kidx(struct namedobj_instance *ni, uint16_t kidx) argument [all...] |
H A D | ip_fw_private.h | 211 ((p)->kidx != 0 && (p)->kidx != (cmd)->arg1)) 214 (p)->kidx = 0; \ 218 uint16_t kidx; /* state name kidx */ member in struct:ipfw_dyn_info 360 uint16_t kidx; /* object kernel index */ member in struct:named_object 486 uint16_t kidx; /* kernel object index */ member in struct:obj_idx 599 uint16_t kidx); 619 * COUNT_ONE used to count number of references used by object with kidx `set'; 620 * TEST_ONE checks that named object with kidx `se [all...] |
H A D | ip_fw_table.h | 184 int ipfw_export_table_ntlv(struct ip_fw_chain *ch, uint16_t kidx, 194 int ipfw_foreach_table_tentry(struct ip_fw_chain *ch, uint16_t kidx,
|
H A D | ip_fw_table_algo.c | 525 tent->v.kidx = n->value; 533 tent->v.kidx = xn->value; 1382 tent->v.kidx = ent->value; 1388 tent->v.kidx = ent->value; 1907 uint16_t kidx; member in struct:ifidx 1988 if (key < ifidx->kidx) 1990 else if (key > ifidx->kidx) 2395 ifi.kidx = ifindex; 2531 tent->v.kidx = ife->value; 2988 tent->v.kidx [all...] |
H A D | ip_fw2.c | 424 return ipfw_lookup_table(chain, cmd->p.kidx, 0,
|
/freebsd-12-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 | 151 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) 226 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 232 ipfw_objhash_free_idx(ni, cfg->no.kidx); 309 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 346 ipfw_reset_eaction_instance(ch, V_nat64stl_eid, cfg->no.kidx); 347 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 581 cfg = (struct nat64stl_cfg *)SRV_OBJECT(ch, no->kidx); 582 SRV_OBJECT(ch, no->kidx) = NULL;
|
H A D | nat64clat_control.c | 194 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { 201 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 306 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 341 ipfw_reset_eaction_instance(ch, V_nat64clat_eid, cfg->no.kidx); 342 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 576 cfg = (struct nat64clat_cfg *)SRV_OBJECT(ch, no->kidx); 577 SRV_OBJECT(ch, no->kidx) = NULL;
|
H A D | nat64lsn_control.c | 198 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) { 206 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 220 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 254 ipfw_reset_eaction_instance(ch, V_nat64lsn_eid, cfg->no.kidx); 255 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 902 cfg = (struct nat64lsn_cfg *)SRV_OBJECT(ch, no->kidx); 903 SRV_OBJECT(ch, no->kidx) = NULL;
|
/freebsd-12-stable/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 580 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx); 703 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { 709 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 749 ipfw_reset_eaction_instance(ch, V_nptv6_eid, cfg->no.kidx); 750 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 752 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 964 NPTV6_DEBUG("kidx %u -> %s", idx, no->name); 999 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx); 1000 SRV_OBJECT(ch, no->kidx) = NULL; 1002 ipfw_objhash_free_idx(ni, cfg->no.kidx); [all...] |
/freebsd-12-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-12-stable/sys/netinet/ |
H A D | ip_fw.h | 417 uint16_t kidx; member in union:_ipfw_insn_if::__anon16333 727 u_int16_t kidx; /* index of named object */ member in struct:_ipfw_dyn_rule 909 uint32_t kidx; /* value kernel index */ member in union:_ipfw_obj_tentry::__anon16339 989 uint32_t kidx; /* kernel index */ member in struct:_ipfw_xtable_info
|
/freebsd-12-stable/sys/dev/ral/ |
H A D | rt2860reg.h | 198 #define RT2860_SKEY(vap, kidx) (0x6c00 + (vap) * 128 + (kidx) * 32)
|
/freebsd-12-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-12-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);
|