Home
last modified time | relevance | path

Searched refs:nftnl (Results 1 – 4 of 4) sorted by relevance

/external/iptables/iptables/
Dnft-chain.c15 struct nft_chain *nft_chain_alloc(struct nftnl_chain *nftnl) in nft_chain_alloc() argument
20 c->nftnl = nftnl; in nft_chain_alloc()
27 if (c->nftnl) in nft_chain_free()
28 nftnl_chain_free(c->nftnl); in nft_chain_free()
Dnft-chain.h12 struct nftnl_chain *nftnl; member
22 struct nft_chain *nft_chain_alloc(struct nftnl_chain *nftnl);
Dnft-cache.c113 struct nftnl_table *nftnl = nftnl_table_alloc(); in nftnl_table_list_cb() local
118 if (!nftnl) in nftnl_table_list_cb()
121 if (nftnl_table_nlmsg_parse(nlh, nftnl) < 0) in nftnl_table_list_cb()
124 name = nftnl_table_get_str(nftnl, NFTNL_TABLE_NAME); in nftnl_table_list_cb()
134 nftnl_table_free(nftnl); in nftnl_table_list_cb()
198 if (!strcmp(nftnl_chain_get_str(c->nftnl, NFTNL_CHAIN_NAME), in nft_chain_find()
232 n = nftnl_chain_get_str(cur->nftnl, NFTNL_CHAIN_NAME); in nft_cache_add_chain()
494 struct nftnl_chain *c = nc->nftnl; in nft_rule_list_update()
611 return nftnl_rule_foreach(c->nftnl, ____flush_rule_cache, NULL); in __flush_rule_cache()
Dnft.c1485 nftnl_chain_rule_add_tail(r, c->nftnl); in nft_rule_append()
1609 struct nftnl_chain *c = nc->nftnl; in nft_chain_save()
1638 iter = nftnl_rule_iter_create(c->nftnl); in nft_rule_save_cb()
1715 const char *chain = nftnl_chain_get_str(c->nftnl, NFTNL_CHAIN_NAME); in nft_rule_flush_cb()
1817 c = nc->nftnl; in nft_chain_restore()
1853 struct nftnl_chain *c = nc->nftnl; in __nft_chain_user_del()
1871 nc->nftnl = NULL; in __nft_chain_user_del()
1944 handle = nftnl_chain_get_u64(nc->nftnl, NFTNL_CHAIN_HANDLE); in nft_chain_user_rename()
2096 struct nftnl_chain *c = nc->nftnl; in nft_rule_find()
2247 nftnl_chain_rule_add(new_rule, c->nftnl); in nft_rule_insert()
[all …]