Lines Matching refs:kidx

174 	uint16_t	kidx;		/* named object index */
199 uint16_t kidx; /* named object index */
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 %d", *pkidx);
718 no->name, no->etlv, no->kidx, no->refcnt));
719 DYN_DEBUG("kidx %d", no->kidx);
720 obj = SRV_OBJECT(ch, no->kidx);
721 SRV_OBJECT(ch, no->kidx) = NULL;
723 ipfw_objhash_free_idx(CHAIN_TO_SRV(ch), no->kidx);
1055 if (info->kidx != 0 && s->kidx != info->kidx)
1081 const void *ulp, int pktlen, uint32_t bucket, uint16_t kidx)
1090 s->kidx != kidx)
1124 * NOTE: we do not need to check kidx, because parent rule
1125 * can not create states with different kidx.
1206 if (info->kidx != 0 && s->kidx != info->kidx)
1233 const void *ulp, int pktlen, uint32_t bucket, uint16_t kidx)
1241 if (s->proto != pkt->proto || s->kidx != kidx ||
1277 * NOTE: we do not need to check kidx, because parent rule
1278 * can not create states with different kidx.
1342 info->kidx = cmd->arg1;
1512 dyn_alloc_ipv4_state(const struct ipfw_flow_id *pkt, uint16_t kidx,
1522 s->kidx = kidx;
1541 uint16_t kidx)
1574 s = dyn_alloc_ipv4_state(pkt, kidx, O_LIMIT_PARENT);
1595 uint16_t kidx, uint8_t type)
1604 info->kidx != kidx ||
1612 bucket, kidx) != 0) {
1625 s = dyn_alloc_ipv4_state(pkt, kidx, type);
1643 uint16_t kidx, uint8_t type)
1652 s->kidx = kidx;
1672 uint32_t version, uint16_t kidx)
1705 s = dyn_alloc_ipv6_state(pkt, zoneid, kidx, O_LIMIT_PARENT);
1726 uint16_t fibnum, uint16_t kidx, uint8_t type)
1735 info->kidx != kidx ||
1743 bucket, kidx) != 0) {
1756 s = dyn_alloc_ipv6_state(pkt, zoneid, kidx, type);
1774 struct ip_fw *rule, uint32_t hashval, uint32_t limit, uint16_t kidx)
1799 rule->rulenum, pkt, hashval, version, kidx);
1823 kidx);
1868 uint16_t kidx, uint8_t type)
1910 limit, kidx);
1933 ulp, pktlen, hashval, info, fibnum, kidx, type);
1937 zoneid, ulp, pktlen, hashval, info, fibnum, kidx, type);
2136 struct ip_fw *rule, uint16_t kidx)
2149 MPASS(kidx != 0);
2153 obj = SRV_OBJECT(ch, kidx);
2163 struct ip_fw *rule, uint16_t kidx)
2168 MPASS(kidx != 0);
2170 obj = SRV_OBJECT(ch, kidx);
2208 dyn_acquire_rule(ch, s->data, rule, s->kidx);
2233 dyn_acquire_rule(ch, s->data, rule, s->kidx);
2299 rule, s->kidx); \
2847 MPASS(s->kidx != 0); \
2849 s->kidx) != 0) \
2900 dyn_export_parent(const struct dyn_parent *p, uint16_t kidx, uint8_t set,
2905 dst->kidx = kidx;
2932 dyn_export_data(const struct dyn_data *data, uint16_t kidx, uint8_t type,
2937 dst->kidx = kidx;
2974 dyn_export_parent(s->limit, s->kidx, rule->set, dst);
2980 dyn_export_data(s->data, s->kidx, s->type, rule->set, dst);
3006 dyn_export_parent(s->limit, s->kidx, rule->set, dst);
3012 dyn_export_data(s->data, s->kidx, s->type, rule->set, dst);