/freebsd-11-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 | 179 get_table_value(struct ip_fw_chain *ch, struct table_config *tc, uint32_t kidx) argument 185 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)); 553 uint16_t kidx; local 635 kidx = tc->no.kidx; 717 uint16_t kidx; local 969 int error, i, kidx, read; local 1211 uint16_t kidx; local 1613 ipfw_objhash_lookup_table_kidx(struct ip_fw_chain *ch, uint16_t kidx) argument 1624 ipfw_ref_table(struct ip_fw_chain *ch, ipfw_obj_ntlv *ntlv, uint16_t *kidx) argument 1647 ipfw_unref_table(struct ip_fw_chain *ch, uint16_t kidx) argument 1876 uint16_t kidx; local 1977 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 3227 uint16_t kidx; local 3256 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 | 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 645 DYN_DEBUG("kidx %d", idx); 683 * Just return its kidx and bump refcount. 685 *pkidx = no->kidx; 689 DYN_DEBUG("\tfound kidx %d", *pkidx); 692 if (ipfw_objhash_alloc_idx(ni, &obj->no.kidx) != 0) { 699 SRV_OBJECT(ch, obj->no.kidx) = obj; 701 *pkidx = obj->no.kidx; 703 DYN_DEBUG("\tcreated kidx 1080 dyn_lookup_ipv4_state_locked(const struct ipfw_flow_id *pkt, const void *ulp, int pktlen, uint32_t bucket, uint16_t kidx) argument 1232 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 1512 dyn_alloc_ipv4_state(const struct ipfw_flow_id *pkt, uint16_t kidx, uint8_t type) argument 1539 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 1592 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 1642 dyn_alloc_ipv6_state(const struct ipfw_flow_id *pkt, uint32_t zoneid, uint16_t kidx, uint8_t type) argument 1670 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 1723 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 1773 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 1865 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 2135 dyn_acquire_rule(struct ip_fw_chain *ch, struct dyn_data *data, struct ip_fw *rule, uint16_t kidx) argument 2162 dyn_release_rule(struct ip_fw_chain *ch, struct dyn_data *data, struct ip_fw *rule, uint16_t kidx) argument 2900 dyn_export_parent(const struct dyn_parent *p, uint16_t kidx, uint8_t set, ipfw_dyn_rule *dst) argument 2932 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 | 169 static int export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx, 591 cmdif->p.kidx = (uint16_t)cmdif->p.glob; 675 cmdif->p.glob = cmdif->p.kidx; 966 * @set used to pass kidx. 977 /* @set used to pass kidx */ 995 /* @set used to pass kidx */ 1103 uint16_t kidx; local 1118 rw = find_op_rw(cmd, &kidx, NULL); 1127 if (rw->manage_sets(ch, kidx, 1, COUNT_ONE) != 0) 1145 rw = find_op_rw(cmd, &kidx, NUL 2257 export_objhash_ntlv(struct namedobj_instance *ni, uint16_t kidx, struct sockopt_data *sd) argument 2356 ipfw_mark_object_kidx(uint32_t *bmask, uint16_t etlv, uint16_t kidx) argument 2384 uint16_t kidx; local 2554 uint16_t kidx; local 2613 uint16_t kidx, uidx; local 2697 uint16_t kidx; local 4528 ipfw_objhash_lookup_kidx(struct namedobj_instance *ni, uint16_t kidx) argument [all...] |
H A D | ip_fw_private.h | 209 ((p)->kidx != 0 && (p)->kidx != (cmd)->arg1)) 212 (p)->kidx = 0; \ 216 uint16_t kidx; /* state name kidx */ member in struct:ipfw_dyn_info 358 uint16_t kidx; /* object kernel index */ member in struct:named_object 484 uint16_t kidx; /* kernel object index */ member in struct:obj_idx 597 uint16_t kidx); 617 * COUNT_ONE used to count number of references used by object with kidx `set'; 618 * 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) 2396 ifi.kidx = ifindex; 2532 tent->v.kidx = ife->value; 2989 tent->v.kidx [all...] |
H A D | ip_fw2.c | 409 return ipfw_lookup_table(chain, cmd->p.kidx, 0,
|
/freebsd-11-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 | 204 if (ipfw_objhash_alloc_idx(CHAIN_TO_SRV(ch), &cfg->no.kidx) != 0) { 212 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 226 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 260 ipfw_reset_eaction_instance(ch, V_nat64lsn_eid, cfg->no.kidx); 261 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 871 cfg = (struct nat64lsn_cfg *)SRV_OBJECT(ch, no->kidx); 872 SRV_OBJECT(ch, no->kidx) = NULL;
|
/freebsd-11-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-11-stable/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.c | 557 if (ipfw_objhash_alloc_idx(ni, &cfg->no.kidx) != 0) { 563 SRV_OBJECT(ch, cfg->no.kidx) = cfg; 600 ipfw_reset_eaction_instance(ch, V_nptv6_eid, cfg->no.kidx); 601 SRV_OBJECT(ch, cfg->no.kidx) = NULL; 603 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), cfg->no.kidx); 815 NPTV6_DEBUG("kidx %u -> %s", idx, no->name); 850 cfg = (struct nptv6_cfg *)SRV_OBJECT(ch, no->kidx); 851 SRV_OBJECT(ch, no->kidx) = NULL; 853 ipfw_objhash_free_idx(ni, cfg->no.kidx);
|
/freebsd-11-stable/sys/netinet/ |
H A D | ip_fw.h | 415 uint16_t kidx; member in union:_ipfw_insn_if::__anon5430 723 u_int16_t kidx; /* index of named object */ member in struct:_ipfw_dyn_rule 905 uint32_t kidx; /* value kernel index */ member in union:_ipfw_obj_tentry::__anon5436 985 uint32_t kidx; /* kernel index */ member in struct:_ipfw_xtable_info
|
/freebsd-11-stable/sys/dev/ral/ |
H A D | rt2860reg.h | 198 #define RT2860_SKEY(vap, kidx) (0x6c00 + (vap) * 128 + (kidx) * 32)
|
/freebsd-11-stable/sbin/ipfw/ |
H A D | tables.c | 804 printf(" kindex: %d, type: %s, locked\n", i->kidx, ttype); 806 printf(" kindex: %d, type: %s\n", i->kidx, ttype);
|
H A D | ipfw2.c | 1575 insntod(cmd, if)->p.kidx)); 2305 if (d->kidx != 0) 2307 d->kidx, IPFW_TLV_STATE_NAME)); 3414 cmd->p.kidx = uidx; 5504 printf(" kidx: %4d\ttype: %10d\tname: %s\n", 5507 printf(" kidx: %4d\ttype: %10s\tname: %s\n",
|
/freebsd-11-stable/sys/dev/bwn/ |
H A D | if_bwn.c | 4559 uint16_t kidx, value; local 4561 kidx = BWN_SEC_KEY2FW(mac, index); 4563 BWN_SHARED_KEYIDX_BLOCK + (kidx * 2), (kidx << 4) | algorithm);
|