Lines Matching full:chain
18 const char *table, const char *chain, in nft_cmd_new() argument
31 if (chain) in nft_cmd_new()
32 cmd->chain = strdup(chain); in nft_cmd_new()
37 rule = nft_rule_new(h, chain, table, state); in nft_cmd_new()
55 free((void *)cmd->chain); in nft_cmd_free()
82 /* Since ebtables user-defined chain policies are implemented as last in nft_cmd_rule_bridge()
86 !nft_chain_builtin_find(t, cmd->chain)) in nft_cmd_rule_bridge()
92 int nft_cmd_rule_append(struct nft_handle *h, const char *chain, in nft_cmd_rule_append() argument
98 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_APPEND, table, chain, state, -1, in nft_cmd_rule_append()
108 int nft_cmd_rule_insert(struct nft_handle *h, const char *chain, in nft_cmd_rule_insert() argument
114 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_INSERT, table, chain, state, in nft_cmd_rule_insert()
129 int nft_cmd_rule_delete(struct nft_handle *h, const char *chain, in nft_cmd_rule_delete() argument
135 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_DELETE, table, chain, state, in nft_cmd_rule_delete()
145 int nft_cmd_rule_delete_num(struct nft_handle *h, const char *chain, in nft_cmd_rule_delete_num() argument
150 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_DELETE, table, chain, NULL, in nft_cmd_rule_delete_num()
160 int nft_cmd_rule_flush(struct nft_handle *h, const char *chain, in nft_cmd_rule_flush() argument
165 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_FLUSH, table, chain, NULL, -1, in nft_cmd_rule_flush()
170 if (chain || verbose) in nft_cmd_rule_flush()
178 int nft_cmd_chain_zero_counters(struct nft_handle *h, const char *chain, in nft_cmd_chain_zero_counters() argument
183 cmd = nft_cmd_new(h, NFT_COMPAT_CHAIN_ZERO, table, chain, NULL, -1, in nft_cmd_chain_zero_counters()
193 int nft_cmd_chain_user_add(struct nft_handle *h, const char *chain, in nft_cmd_chain_user_add() argument
198 cmd = nft_cmd_new(h, NFT_COMPAT_CHAIN_USER_ADD, table, chain, NULL, -1, in nft_cmd_chain_user_add()
208 int nft_cmd_chain_user_del(struct nft_handle *h, const char *chain, in nft_cmd_chain_user_del() argument
213 cmd = nft_cmd_new(h, NFT_COMPAT_CHAIN_USER_DEL, table, chain, NULL, -1, in nft_cmd_chain_user_del()
229 int nft_cmd_chain_user_rename(struct nft_handle *h,const char *chain, in nft_cmd_chain_user_rename() argument
234 cmd = nft_cmd_new(h, NFT_COMPAT_CHAIN_RENAME, table, chain, NULL, -1, in nft_cmd_chain_user_rename()
246 int nft_cmd_rule_list(struct nft_handle *h, const char *chain, in nft_cmd_rule_list() argument
251 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_LIST, table, chain, NULL, rulenum, in nft_cmd_rule_list()
263 int nft_cmd_rule_replace(struct nft_handle *h, const char *chain, in nft_cmd_rule_replace() argument
269 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_REPLACE, table, chain, data, in nft_cmd_rule_replace()
279 int nft_cmd_rule_check(struct nft_handle *h, const char *chain, in nft_cmd_rule_check() argument
284 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_CHECK, table, chain, data, -1, in nft_cmd_rule_check()
295 const char *chain, const char *policy, in nft_cmd_chain_set() argument
300 cmd = nft_cmd_new(h, NFT_COMPAT_CHAIN_UPDATE, table, chain, NULL, -1, in nft_cmd_chain_set()
333 int nft_cmd_chain_restore(struct nft_handle *h, const char *chain, in nft_cmd_chain_restore() argument
338 cmd = nft_cmd_new(h, NFT_COMPAT_CHAIN_RESTORE, table, chain, NULL, -1, in nft_cmd_chain_restore()
348 int nft_cmd_rule_zero_counters(struct nft_handle *h, const char *chain, in nft_cmd_rule_zero_counters() argument
353 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_ZERO, table, chain, NULL, rulenum, in nft_cmd_rule_zero_counters()
363 int nft_cmd_rule_list_save(struct nft_handle *h, const char *chain, in nft_cmd_rule_list_save() argument
368 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_SAVE, table, chain, NULL, rulenum, in nft_cmd_rule_list_save()
381 const char *chain, const char *policy) in ebt_cmd_user_chain_policy() argument
385 cmd = nft_cmd_new(h, NFT_COMPAT_BRIDGE_USER_CHAIN_UPDATE, table, chain, in ebt_cmd_user_chain_policy()