Lines Matching defs:no

68  * `no.type` represents lookup key type (addr, ifp, uid, etc..)
74 struct named_object no;
168 tc->no.refcnt++;
175 tc->no.refcnt--;
303 if (tc->no.subtype != ti->type)
315 tc->no.refcnt++;
606 tc->no.refcnt--;
635 kidx = tc->no.kidx;
643 kidx = tc->no.kidx;
745 tc->no.refcnt--;
757 kidx = tc->no.kidx;
803 * 1) alloc_modify (no locks, M_WAITOK) - alloc new state based on @pflags.
827 tc->no.refcnt++;
868 ti = KIDX_TO_TI(ch, tc->no.kidx);
892 tc->no.refcnt--;
1125 if (tc->no.subtype != ti.type) {
1130 kti = KIDX_TO_TI(ch, tc->no.kidx);
1241 ta->print_config(tc->astate, KIDX_TO_TI(ch, tc->no.kidx),
1247 tc->no.refcnt++;
1270 tc->no.refcnt--;
1291 kidx = tc->no.kidx;
1411 if (tc_a->no.subtype!=tc_b->no.subtype || tc_a->tflags!=tc_b->tflags) {
1435 ti = tablestate[tc_a->no.kidx];
1442 tablestate[tc_a->no.kidx] = tablestate[tc_b->no.kidx];
1447 tablestate[tc_b->no.kidx] = ti;
1454 tc_a->ti_copy = tablestate[tc_a->no.kidx];
1455 tc_b->ti_copy = tablestate[tc_b->no.kidx];
1459 tc_a->ta->change_ti(tc_a->astate, &tablestate[tc_a->no.kidx]);
1461 tc_b->ta->change_ti(tc_b->astate, &tablestate[tc_b->no.kidx]);
1490 if (tc->no.refcnt > 0) {
1500 if (ipfw_objhash_free_idx(ni, tc->no.kidx) != 0)
1502 tc->no.kidx, tc->tablename);
1641 *kidx = tc->no.kidx;
1651 struct named_object *no;
1655 no = ipfw_objhash_lookup_kidx(ni, kidx);
1656 KASSERT(no != NULL, ("Table with index %d not found", kidx));
1657 no->refcnt--;
1906 if (compat == 0 || tc_new->no.subtype != tc->no.subtype) {
1925 tc->no.kidx = kidx;
1926 tc->no.etlv = IPFW_TLV_TBL_NAME;
1932 tc->no.refcnt++;
1934 *pkidx = tc->no.kidx;
1981 struct named_object *no;
1986 no = ipfw_objhash_lookup_kidx(ni, kidx);
1987 KASSERT(no != NULL, ("invalid table kidx passed"));
1995 ntlv->idx = no->kidx;
1996 strlcpy(ntlv->name, no->name, sizeof(ntlv->name));
2041 ti = KIDX_TO_TI(ch, tc->no.kidx);
2069 i->type = tc->no.subtype;
2072 i->set = tc->no.set;
2073 i->kidx = tc->no.kidx;
2074 i->refcnt = tc->no.refcnt;
2081 ti = KIDX_TO_TI(ch, tc->no.kidx);
2102 export_table_internal(struct namedobj_instance *ni, struct named_object *no,
2113 export_table_info(dta->ch, (struct table_config *)no, i);
2207 da.ti = KIDX_TO_TI(ch, tc->no.kidx);
2255 xtbl->type = tc->no.subtype;
2273 da.ti = KIDX_TO_TI(ch, tc->no.kidx);
2399 if (tc->no.subtype != IPFW_TABLE_ADDR)
2404 da.ti = KIDX_TO_TI(ch, tc->no.kidx);
2490 if (tc->no.subtype == IPFW_TABLE_ADDR && tent->subtype == AF_INET) {
2549 da.ti = KIDX_TO_TI(ch, tc->no.kidx);
2838 *pno = &tc->no;
2854 return (&tc->no);
2992 test_sets_cb(struct namedobj_instance *ni __unused, struct named_object *no,
2997 if (no->set != 0)
3014 struct named_object *no;
3060 no = ipfw_objhash_lookup_kidx(ni, kidx);
3062 if (no->set != 0 || rule->set != 0) {
3103 struct named_object *no;
3126 no = ipfw_objhash_lookup_name(ni, set, name);
3127 *tc = (struct table_config *)no;
3181 tc->no.name = tc->tablename;
3182 tc->no.subtype = ta->type;
3183 tc->no.set = set;
3232 kidx = tc->no.kidx;
3234 ipfw_objhash_add(ni, &tc->no);
3262 kidx = tc->no.kidx;
3265 ipfw_objhash_del(ni, &tc->no);
3296 destroy_table_locked(struct namedobj_instance *ni, struct named_object *no,
3300 unlink_table((struct ip_fw_chain *)arg, (struct table_config *)no);
3301 if (ipfw_objhash_free_idx(ni, no->kidx) != 0)
3303 no->kidx, no->name);
3304 free_table_config(ni, (struct table_config *)no);