Home
last modified time | relevance | path

Searched refs:nft_handle (Results 1 – 24 of 24) sorted by relevance

/external/iptables/iptables/
Dnft.h86 struct nft_handle { struct
121 int mnl_talk(struct nft_handle *h, struct nlmsghdr *nlh, argument
124 int nft_init(struct nft_handle *h, int family, const struct builtin_table *t);
125 void nft_fini(struct nft_handle *h);
126 int nft_restart(struct nft_handle *h);
134 int nft_for_each_table(struct nft_handle *h, int (*func)(struct nft_handle *h, const char *tablenam…
135 bool nft_table_find(struct nft_handle *h, const char *tablename);
136 int nft_table_purge_chains(struct nft_handle *h, const char *table, struct nftnl_chain_list *list);
137 int nft_table_flush(struct nft_handle *h, const char *table);
138 const struct builtin_table *nft_table_builtin_find(struct nft_handle *h, const char *table);
[all …]
Dnft-cmd.h29 struct nft_cmd *nft_cmd_new(struct nft_handle *h, int command,
35 int nft_cmd_rule_append(struct nft_handle *h, const char *chain,
38 int nft_cmd_rule_insert(struct nft_handle *h, const char *chain,
41 int nft_cmd_rule_delete(struct nft_handle *h, const char *chain,
44 int nft_cmd_rule_delete_num(struct nft_handle *h, const char *chain,
46 int nft_cmd_rule_flush(struct nft_handle *h, const char *chain,
48 int nft_cmd_zero_counters(struct nft_handle *h, const char *chain,
50 int nft_cmd_chain_user_add(struct nft_handle *h, const char *chain,
52 int nft_cmd_chain_user_del(struct nft_handle *h, const char *chain,
54 int nft_cmd_chain_zero_counters(struct nft_handle *h, const char *chain,
[all …]
Dnft-cache.h4 struct nft_handle;
9 void nft_cache_level_set(struct nft_handle *h, int level,
11 void nft_rebuild_cache(struct nft_handle *h);
12 void nft_release_cache(struct nft_handle *h);
13 void flush_chain_cache(struct nft_handle *h, const char *tablename);
14 int flush_rule_cache(struct nft_handle *h, const char *table,
16 void nft_cache_build(struct nft_handle *h);
17 int nft_cache_add_chain(struct nft_handle *h, const struct builtin_table *t,
21 nft_chain_find(struct nft_handle *h, const char *table, const char *chain);
24 nft_set_list_get(struct nft_handle *h, const char *table, const char *set);
Dnft-cmd.c17 struct nft_cmd *nft_cmd_new(struct nft_handle *h, int command, in nft_cmd_new()
74 static void nft_cmd_rule_bridge(struct nft_handle *h, const struct nft_cmd *cmd) in nft_cmd_rule_bridge()
92 int nft_cmd_rule_append(struct nft_handle *h, const char *chain, in nft_cmd_rule_append()
108 int nft_cmd_rule_insert(struct nft_handle *h, const char *chain, in nft_cmd_rule_insert()
129 int nft_cmd_rule_delete(struct nft_handle *h, const char *chain, 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()
160 int nft_cmd_rule_flush(struct nft_handle *h, const char *chain, 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()
193 int nft_cmd_chain_user_add(struct nft_handle *h, const char *chain, 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()
[all …]
Dnft-shared.h39 struct nft_handle;
53 struct nft_handle *h;
77 int (*add)(struct nft_handle *h, struct nftnl_rule *r, void *data);
99 void (*print_rule)(struct nft_handle *h, struct nftnl_rule *r,
109 void (*rule_to_cs)(struct nft_handle *h, const struct nftnl_rule *r,
144 void nft_rule_to_iptables_command_state(struct nft_handle *h,
215 void do_parse(struct nft_handle *h, int argc, char *argv[],
222 void (*table_new)(struct nft_handle *h, const char *table);
223 int (*chain_set)(struct nft_handle *h, const char *table,
226 int (*chain_restore)(struct nft_handle *h, const char *chain,
[all …]
Dnft-cache.c47 void nft_cache_level_set(struct nft_handle *h, int level, in nft_cache_level_set()
96 static void mnl_genid_get(struct nft_handle *h, uint32_t *genid) in mnl_genid_get()
115 struct nft_handle *h = data; in nftnl_table_list_cb()
138 static int fetch_table_cache(struct nft_handle *h) in fetch_table_cache()
177 static struct hlist_head *chain_name_hlist(struct nft_handle *h, in chain_name_hlist()
187 nft_chain_find(struct nft_handle *h, const char *table, const char *chain) in nft_chain_find()
205 int nft_cache_add_chain(struct nft_handle *h, const struct builtin_table *t, in nft_cache_add_chain()
245 struct nft_handle *h;
253 struct nft_handle *h = d->h; in nftnl_chain_list_cb()
285 struct nft_handle *h;
[all …]
Dnft.c64 int mnl_talk(struct nft_handle *h, struct nlmsghdr *nlh, in mnl_talk()
159 static void mnl_set_sndbuffer(struct nft_handle *h) in mnl_set_sndbuffer()
174 static void mnl_set_rcvbuffer(struct nft_handle *h, int numcmds) in mnl_set_rcvbuffer()
189 static ssize_t mnl_nft_socket_sendmsg(struct nft_handle *h, int numcmds) in mnl_nft_socket_sendmsg()
210 static int mnl_batch_talk(struct nft_handle *h, int numcmds) in mnl_batch_talk()
281 static int mnl_append_error(const struct nft_handle *h, in mnl_append_error()
359 static struct obj_update *batch_add(struct nft_handle *h, enum obj_update_type type, void *ptr) in batch_add()
377 batch_table_add(struct nft_handle *h, enum obj_update_type type, in batch_table_add()
384 batch_set_add(struct nft_handle *h, enum obj_update_type type, in batch_set_add()
391 batch_chain_add(struct nft_handle *h, enum obj_update_type type, in batch_chain_add()
[all …]
Dxtables-translate.c152 static int nft_rule_xlate_add(struct nft_handle *h, in nft_rule_xlate_add()
176 static int xlate(struct nft_handle *h, struct nft_xt_cmd_parse *p, in xlate()
179 int (*cb)(struct nft_handle *h, in xlate()
234 static int do_command_xlate(struct nft_handle *h, int argc, char *argv[], in do_command_xlate()
357 static int xlate_chain_user_restore(struct nft_handle *h, const char *chain, in xlate_chain_user_restore()
364 static int commit(struct nft_handle *h) in commit()
369 static void xlate_table_new(struct nft_handle *h, const char *table) in xlate_table_new()
398 static int xlate_chain_set(struct nft_handle *h, const char *table, in xlate_chain_set()
450 static int xtables_xlate_main_common(struct nft_handle *h, in xtables_xlate_main_common()
502 struct nft_handle h = { in xtables_xlate_main()
[all …]
Dxtables-restore.c76 static void xtables_restore_parse_line(struct nft_handle *h, in xtables_restore_parse_line()
256 void xtables_restore_parse(struct nft_handle *h, in xtables_restore_parse()
290 struct nft_handle h; in xtables_restore_main()
430 struct nft_handle h; in xtables_eb_restore_main()
469 struct nft_handle h; in xtables_arp_restore_main()
Dxtables-save.c69 __do_output(struct nft_handle *h, const char *tablename, void *data) in __do_output()
101 do_output(struct nft_handle *h, const char *tablename, struct do_output_data *d) in do_output()
135 struct nft_handle h; in xtables_save_main()
Dxtables-arp.c323 list_entries(struct nft_handle *h, const char *chain, const char *table, in list_entries()
348 append_entry(struct nft_handle *h, in append_entry()
392 bool verbose, struct nft_handle *h) in replace_entry()
412 bool verbose, struct nft_handle *h) in delete_entry()
430 int nft_init_arp(struct nft_handle *h, const char *pname) in nft_init_arp()
451 int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table, in do_commandarp()
Dxtables.c269 bool verbose, struct nft_handle *h, bool append) in add_entry()
325 bool verbose, struct nft_handle *h) in replace_entry()
350 struct nft_handle *h) in delete_entry()
390 bool verbose, struct nft_handle *h) in check_entry()
425 list_entries(struct nft_handle *h, const char *chain, const char *table, in list_entries()
450 list_rules(struct nft_handle *h, const char *chain, const char *table, in list_rules()
459 void do_parse(struct nft_handle *h, int argc, char *argv[], in do_parse()
949 int do_commandx(struct nft_handle *h, int argc, char *argv[], char **table, in do_commandx()
Dxtables-eb-standalone.c48 struct nft_handle h; in xtables_eb_main()
Dxtables-arp-standalone.c50 struct nft_handle h; in xtables_arp_main()
Dnft-chain.h7 struct nft_handle;
Dxtables-eb.c92 append_entry(struct nft_handle *h, in append_entry()
110 delete_entry(struct nft_handle *h, in delete_entry()
357 static int list_rules(struct nft_handle *h, const char *chain, const char *table, in list_rules()
677 int nft_init_eb(struct nft_handle *h, const char *pname) in nft_init_eb()
704 void nft_fini_eb(struct nft_handle *h) in nft_fini_eb()
722 int do_commandeb(struct nft_handle *h, int argc, char *argv[], char **table, in do_commandeb()
Dxtables-standalone.c47 struct nft_handle h; in xtables_main()
Dxtables-eb-translate.c172 static int nft_rule_eb_xlate_add(struct nft_handle *h, const struct nft_xt_cmd_parse *p, in nft_rule_eb_xlate_add()
193 static int do_commandeb_xlate(struct nft_handle *h, int argc, char *argv[], char **table) in do_commandeb_xlate()
569 struct nft_handle h; in xtables_eb_xlate_main()
Dxtables-monitor.c45 struct nft_handle *h;
613 struct nft_handle h = {}; in xtables_monitor_main()
Dnft-ipv6.c28 static int nft_ipv6_add(struct nft_handle *h, struct nftnl_rule *r, void *data) in nft_ipv6_add()
194 static void nft_ipv6_print_rule(struct nft_handle *h, struct nftnl_rule *r, in nft_ipv6_print_rule()
Dnft-bridge.c99 static int nft_bridge_add(struct nft_handle *h, in nft_bridge_add()
519 static void nft_rule_to_ebtables_command_state(struct nft_handle *h, in nft_rule_to_ebtables_command_state()
659 static void nft_bridge_print_rule(struct nft_handle *h, struct nftnl_rule *r, in nft_bridge_print_rule()
Dnft-ipv4.c29 static int nft_ipv4_add(struct nft_handle *h, struct nftnl_rule *r, void *data) in nft_ipv4_add()
268 static void nft_ipv4_print_rule(struct nft_handle *h, struct nftnl_rule *r, in nft_ipv4_print_rule()
Dnft-arp.c129 static int nft_arp_add(struct nft_handle *h, struct nftnl_rule *r, void *data) in nft_arp_add()
572 nft_arp_print_rule(struct nft_handle *h, struct nftnl_rule *r, in nft_arp_print_rule()
Dnft-shared.c596 static void nft_parse_lookup(struct nft_xt_ctx *ctx, struct nft_handle *h, in nft_parse_lookup()
603 void nft_rule_to_iptables_command_state(struct nft_handle *h, in nft_rule_to_iptables_command_state()