Lines Matching refs:table_dict

67 	nvlist_t *	table_dict;  member
1125 tl->table_dict = nvlist_create(0); in npf_table_create()
1126 nvlist_add_string(tl->table_dict, "name", name); in npf_table_create()
1127 nvlist_add_number(tl->table_dict, "id", id); in npf_table_create()
1128 nvlist_add_number(tl->table_dict, "type", type); in npf_table_create()
1147 nvlist_append_nvlist_array(tl->table_dict, "entries", entry); in npf_table_add_entry()
1163 if (dnvlist_get_number(tl->table_dict, "type", 0) != NPF_TABLE_CONST) { in _npf_table_build_const()
1167 if (!nvlist_exists_nvlist_array(tl->table_dict, "entries")) { in _npf_table_build_const()
1177 entries = nvlist_get_nvlist_array(tl->table_dict, "entries", &nitems); in _npf_table_build_const()
1235 nvlist_move_binary(tl->table_dict, "data", buf, len); in _npf_table_build_const()
1236 error = nvlist_error(tl->table_dict); in _npf_table_build_const()
1251 name = dnvlist_get_string(tl->table_dict, "name", NULL); in npf_table_insert()
1261 nvlist_append_nvlist_array(ncf->ncf_dict, "tables", tl->table_dict); in npf_table_insert()
1262 nvlist_destroy(tl->table_dict); in npf_table_insert()
1277 error = _npf_xfer_fd(fd, IOC_NPF_TABLE_REPLACE, tl->table_dict, &resp); in npf_table_replace()
1290 const nvlist_t *table_dict; in npf_table_iterate() local
1293 table_dict = _npf_dataset_getelement(ncf->ncf_dict, "tables", i); in npf_table_iterate()
1294 if (!table_dict) { in npf_table_iterate()
1299 ncf->ncf_cur_table.table_dict = __UNCONST(table_dict); // XXX in npf_table_iterate()
1306 return dnvlist_get_number(tl->table_dict, "id", (unsigned)-1); in npf_table_getid()
1312 return dnvlist_get_string(tl->table_dict, "name", NULL); in npf_table_getname()
1318 return dnvlist_get_number(tl->table_dict, "type", 0); in npf_table_gettype()
1324 nvlist_destroy(tl->table_dict); in npf_table_destroy()