Home
last modified time | relevance | path

Searched refs:iptables_command_state (Results 1 – 25 of 25) sorted by relevance

/aosp_15_r20/external/iptables/iptables/
H A Dnft-shared.h45 struct nftnl_rule *r, struct iptables_command_state *cs);
46 bool (*is_same)(const struct iptables_command_state *cs_a,
47 const struct iptables_command_state *cs_b);
50 void (*set_goto_flag)(struct iptables_command_state *cs);
59 void (*save_rule)(const struct iptables_command_state *cs,
64 void (*init_cs)(struct iptables_command_state *cs);
66 struct iptables_command_state *cs);
67 void (*clear_cs)(struct iptables_command_state *cs);
68 int (*xlate)(const struct iptables_command_state *cs,
72 struct iptables_command_state *cs,
[all …]
H A Dnft-ruleparse.h46 struct iptables_command_state *cs;
100 struct iptables_command_state *cs);
104 struct iptables_command_state *cs);
107 struct iptables_command_state *cs);
109 struct iptables_command_state *cs);
118 struct iptables_command_state *cs,
125 struct iptables_command_state *cs);
135 struct iptables_command_state *cs);
H A Dxshared.h120 struct iptables_command_state { struct
140 void xtables_clear_iptables_command_state(struct iptables_command_state *cs); argument
218 void command_jump(struct iptables_command_state *cs, const char *jumpto);
268 void (*proto_parse)(struct iptables_command_state *cs,
271 struct iptables_command_state *cs,
290 struct xt_cmd_parse *p, struct iptables_command_state *cs,
293 void ipv4_proto_parse(struct iptables_command_state *cs,
295 void ipv6_proto_parse(struct iptables_command_state *cs,
297 void ipv4_post_parse(int command, struct iptables_command_state *cs,
299 void ipv6_post_parse(int command, struct iptables_command_state *cs,
H A Dnft-bridge.c27 void ebt_cs_clean(struct iptables_command_state *cs) in ebt_cs_clean()
90 static int _add_action(struct nftnl_rule *r, struct iptables_command_state *cs) in _add_action()
131 struct iptables_command_state *cs) in nft_bridge_add()
207 struct iptables_command_state *cs) in nft_rule_to_ebtables_command_state()
233 static void print_matches_and_watchers(const struct iptables_command_state *cs, in print_matches_and_watchers()
294 static void __nft_bridge_save_rule(const struct iptables_command_state *cs, in __nft_bridge_save_rule()
344 static void nft_bridge_save_rule(const struct iptables_command_state *cs, in nft_bridge_save_rule()
354 struct iptables_command_state cs = {}; in nft_bridge_print_rule()
372 static bool nft_bridge_is_same(const struct iptables_command_state *cs_a, in nft_bridge_is_same()
373 const struct iptables_command_state *cs_b) in nft_bridge_is_same()
[all …]
H A Dnft-ipv6.c29 struct nftnl_rule *r, struct iptables_command_state *cs) in nft_ipv6_add()
87 static bool nft_ipv6_is_same(const struct iptables_command_state *a, in nft_ipv6_is_same()
88 const struct iptables_command_state *b) in nft_ipv6_is_same()
109 static void nft_ipv6_set_goto_flag(struct iptables_command_state *cs) in nft_ipv6_set_goto_flag()
117 struct iptables_command_state cs = {}; in nft_ipv6_print_rule()
142 static void nft_ipv6_save_rule(const struct iptables_command_state *cs, in nft_ipv6_save_rule()
185 static int nft_ipv6_xlate(const struct iptables_command_state *cs, in nft_ipv6_xlate()
238 struct iptables_command_state *cs, in nft_ipv6_add_entry()
271 struct iptables_command_state *cs, in nft_ipv6_delete_entry()
297 struct iptables_command_state *cs, in nft_ipv6_check_entry()
[all …]
H A Dnft-ipv4.c30 struct nftnl_rule *r, struct iptables_command_state *cs) in nft_ipv4_add()
101 static bool nft_ipv4_is_same(const struct iptables_command_state *a, in nft_ipv4_is_same()
102 const struct iptables_command_state *b) in nft_ipv4_is_same()
121 static void nft_ipv4_set_goto_flag(struct iptables_command_state *cs) in nft_ipv4_set_goto_flag()
129 struct iptables_command_state cs = {}; in nft_ipv4_print_rule()
156 static void nft_ipv4_save_rule(const struct iptables_command_state *cs, in nft_ipv4_save_rule()
201 static int nft_ipv4_xlate(const struct iptables_command_state *cs, in nft_ipv4_xlate()
258 struct iptables_command_state *cs, in nft_ipv4_add_entry()
288 struct iptables_command_state *cs, in nft_ipv4_delete_entry()
310 struct iptables_command_state *cs, in nft_ipv4_check_entry()
[all …]
H A Dnft-ruleparse.c34 nft_find_match_in_cs(struct iptables_command_state *cs, const char *name) in nft_find_match_in_cs()
53 struct iptables_command_state *cs, in nft_create_match()
266 struct iptables_command_state *cs, in nft_parse_icmp()
353 struct iptables_command_state *cs, in nft_parse_udp()
371 struct iptables_command_state *cs, in nft_parse_tcp()
389 struct iptables_command_state *cs, in nft_parse_th_port()
406 struct iptables_command_state *cs, in nft_parse_tcp_flags()
424 struct iptables_command_state *cs) in nft_parse_transport()
550 struct iptables_command_state *cs = ctx->cs; in nft_parse_immediate()
729 struct iptables_command_state *cs, in nft_parse_udp_range()
[all …]
H A Dnft-bridge.h70 struct iptables_command_state;
117 void ebt_cs_clean(struct iptables_command_state *cs);
120 struct iptables_command_state *cs);
122 struct iptables_command_state *cs);
123 int ebt_command_default(struct iptables_command_state *cs);
H A Dnft-arp.c44 struct nftnl_rule *r, struct iptables_command_state *cs) in nft_arp_add()
184 static void nft_arp_print_rule_details(const struct iptables_command_state *cs, in nft_arp_print_rule_details()
332 nft_arp_save_rule(const struct iptables_command_state *cs, unsigned int format) in nft_arp_save_rule()
347 struct iptables_command_state cs = {}; in nft_arp_print_rule()
370 static bool nft_arp_is_same(const struct iptables_command_state *cs_a, in nft_arp_is_same()
371 const struct iptables_command_state *cs_b) in nft_arp_is_same()
461 struct iptables_command_state *cs, in nft_arp_post_parse()
553 static void nft_arp_init_cs(struct iptables_command_state *cs) in nft_arp_init_cs()
564 struct iptables_command_state *cs, in nft_arp_add_entry()
593 struct iptables_command_state *cs, in nft_arp_delete_entry()
[all …]
H A Dnft.h175 …truct nft_rule_ctx *rule, const char *chain, const char *table, struct iptables_command_state *cs);
197 int add_action(struct nftnl_rule *r, struct iptables_command_state *cs, bool goto_set);
198 int add_log(struct nftnl_rule *r, struct iptables_command_state *cs);
244 bool xlate_find_match(const struct iptables_command_state *cs, const char *p_name);
245 int xlate_matches(const struct iptables_command_state *cs, struct xt_xlate *xl);
246 int xlate_action(const struct iptables_command_state *cs, bool goto_set,
H A Dnft-cmd.h34 struct iptables_command_state *state,
39 const char *table, struct iptables_command_state *state,
42 const char *table, struct iptables_command_state *state,
45 const char *table, struct iptables_command_state *state,
H A Dxtables-translate.c73 int xlate_action(const struct iptables_command_state *cs, bool goto_set, in xlate_action()
108 int xlate_matches(const struct iptables_command_state *cs, struct xt_xlate *xl) in xlate_matches()
130 bool xlate_find_match(const struct iptables_command_state *cs, const char *p_name) in xlate_find_match()
149 const struct iptables_command_state *cs, in nft_rule_xlate_add()
187 struct iptables_command_state *cs, in xlate()
191 const struct iptables_command_state *cs, in xlate()
255 struct iptables_command_state cs = { in do_command_xlate()
H A Dnft-cmd.c21 struct iptables_command_state *state, in nft_cmd_new()
98 const char *table, struct iptables_command_state *state, in nft_cmd_rule_append()
114 const char *table, struct iptables_command_state *state, in nft_cmd_rule_insert()
135 const char *table, struct iptables_command_state *state, in nft_cmd_rule_delete()
H A Dnft-ruleparse-bridge.c35 struct iptables_command_state *cs) in nft_bridge_parse_meta()
81 struct iptables_command_state *cs) in nft_bridge_parse_payload()
397 struct iptables_command_state *cs) in nft_bridge_parse_match()
403 struct iptables_command_state *cs) in nft_bridge_parse_target()
H A Dxtables-eb.c119 struct iptables_command_state *cs, in append_entry()
137 struct iptables_command_state *cs, in delete_entry()
410 …ters_rule(int argc, char **argv, int *rule_nr, int *rule_nr_end, struct iptables_command_state *cs) in parse_change_counters_rule()
542 struct iptables_command_state *cs) in ebt_add_match()
574 struct iptables_command_state *cs) in ebt_add_watcher()
601 int ebt_command_default(struct iptables_command_state *cs) in ebt_command_default()
720 struct iptables_command_state cs = { in do_commandeb()
H A Dxshared.c114 static struct xtables_match *load_proto(struct iptables_command_state *cs) in load_proto()
125 static int command_default(struct iptables_command_state *cs, in command_default()
785 static void command_match(struct iptables_command_state *cs, bool invert) in command_match()
843 void command_jump(struct iptables_command_state *cs, const char *jumpto) in command_jump()
1353 void xtables_clear_iptables_command_state(struct iptables_command_state *cs) in xtables_clear_iptables_command_state()
1371 struct xt_cmd_parse *p, struct iptables_command_state *cs, in do_parse()
1884 void ipv4_proto_parse(struct iptables_command_state *cs, in ipv4_proto_parse()
1900 void ipv6_proto_parse(struct iptables_command_state *cs, in ipv6_proto_parse()
1918 void ipv4_post_parse(int command, struct iptables_command_state *cs, in ipv4_post_parse()
1968 void ipv6_post_parse(int command, struct iptables_command_state *cs, in ipv6_post_parse()
H A Dnft-ruleparse-ipv6.c32 struct iptables_command_state *cs) in nft_ipv6_parse_meta()
61 struct iptables_command_state *cs) in nft_ipv6_parse_payload()
H A Dnft-ruleparse-ipv4.c32 struct iptables_command_state *cs) in nft_ipv4_parse_meta()
76 struct iptables_command_state *cs) in nft_ipv4_parse_payload()
H A Dnft-ruleparse-arp.c32 struct iptables_command_state *cs) in nft_arp_parse_meta()
78 struct iptables_command_state *cs) in nft_arp_parse_payload()
H A Dxtables-eb-translate.c140 const struct iptables_command_state *cs, bool append) in nft_rule_eb_xlate_add()
167 struct iptables_command_state cs = { in do_commandeb_xlate()
H A Dnft-shared.c282 void save_matches_and_target(const struct iptables_command_state *cs, in save_matches_and_target()
322 void print_matches_and_target(struct iptables_command_state *cs, in print_matches_and_target()
H A Dnft.c1590 int add_action(struct nftnl_rule *r, struct iptables_command_state *cs, in add_action()
1618 int add_log(struct nftnl_rule *r, struct iptables_command_state *cs) in add_log()
1722 struct iptables_command_state *cs) in nft_rule_new()
1788 struct iptables_command_state cs = {}; in nft_rule_print_save()
2387 struct iptables_command_state _cs = {}, this = {}, *cs = &_cs; in nft_rule_cmp()
2892 struct iptables_command_state cs = {}; in nft_rule_zero_counters()
3296 struct iptables_command_state cs = { in ebt_add_policy_rule()
H A Dxtables.c151 struct iptables_command_state cs = { in do_commandx()
H A Dip6tables.c679 struct iptables_command_state cs = { in do_command6()
H A Diptables.c673 struct iptables_command_state cs = { in do_command4()