Home
last modified time | relevance | path

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

12

/Linux-v4.19/net/bridge/netfilter/
Debtable_broute.c28 .valid_hooks = 1 << NF_BR_BROUTING,
36 static int check(const struct ebt_table_info *info, unsigned int valid_hooks) in check() argument
38 if (valid_hooks & ~(1 << NF_BR_BROUTING)) in check()
46 .valid_hooks = 1 << NF_BR_BROUTING,
Debtable_filter.c35 .valid_hooks = FILTER_VALID_HOOKS,
45 static int check(const struct ebt_table_info *info, unsigned int valid_hooks) in check() argument
47 if (valid_hooks & ~FILTER_VALID_HOOKS) in check()
55 .valid_hooks = FILTER_VALID_HOOKS,
Debtable_nat.c35 .valid_hooks = NAT_VALID_HOOKS,
45 static int check(const struct ebt_table_info *info, unsigned int valid_hooks) in check() argument
47 if (valid_hooks & ~NAT_VALID_HOOKS) in check()
55 .valid_hooks = NAT_VALID_HOOKS,
Debtables.c439 unsigned int valid_hooks = repl->valid_hooks; in ebt_verify_pointers() local
457 if ((valid_hooks & (1 << i)) == 0) in ebt_verify_pointers()
496 (valid_hooks & (1 << i))) { in ebt_verify_pointers()
1041 if (t->check && (ret = t->check(newinfo, repl->valid_hooks))) in do_replace_finish()
1229 if ((repl->valid_hooks & (1 << i)) == 0) in ebt_register_table()
1241 if (table->check && table->check(newinfo, table->valid_hooks)) { in ebt_register_table()
1271 ret = nf_register_net_hooks(net, ops, hweight32(table->valid_hooks)); in ebt_register_table()
1295 nf_unregister_net_hooks(net, ops, hweight32(table->valid_hooks)); in ebt_unregister_table()
1569 tmp.valid_hooks = t->valid_hooks; in do_ebt_get_ctl()
1573 tmp.valid_hooks = t->table->valid_hooks; in do_ebt_get_ctl()
[all …]
/Linux-v4.19/net/netfilter/
Dxt_repldata.h18 unsigned int hook_mask = info->valid_hooks; \
34 tbl->repl.valid_hooks = hook_mask; \
/Linux-v4.19/net/ipv4/netfilter/
Darp_tables.c301 unsigned int valid_hooks, void *entry0, in mark_source_chains() argument
313 if (!(valid_hooks & (1 << hook))) in mark_source_chains()
454 unsigned int valid_hooks) in check_entry_size_and_hooks() argument
478 if (!(valid_hooks & (1 << h))) in check_entry_size_and_hooks()
543 repl->valid_hooks); in translate_table()
558 ret = xt_check_table_hooks(newinfo, repl->valid_hooks); in translate_table()
562 if (!mark_source_chains(newinfo, repl->valid_hooks, entry0, offsets)) { in translate_table()
816 info.valid_hooks = t->valid_hooks; in get_info()
875 unsigned int valid_hooks, in __do_replace() argument
901 if (valid_hooks != t->valid_hooks) { in __do_replace()
[all …]
Diptable_raw.c22 .valid_hooks = RAW_VALID_HOOKS,
31 .valid_hooks = RAW_VALID_HOOKS,
Dip_tables.c261 WARN_ON(!(table->valid_hooks & (1 << hook))); in ipt_do_table()
372 unsigned int valid_hooks, void *entry0, in mark_source_chains() argument
383 if (!(valid_hooks & (1 << hook))) in mark_source_chains()
597 unsigned int valid_hooks) in check_entry_size_and_hooks() argument
621 if (!(valid_hooks & (1 << h))) in check_entry_size_and_hooks()
692 repl->valid_hooks); in translate_table()
707 ret = xt_check_table_hooks(newinfo, repl->valid_hooks); in translate_table()
711 if (!mark_source_chains(newinfo, repl->valid_hooks, entry0, offsets)) { in translate_table()
982 info.valid_hooks = t->valid_hooks; in get_info()
1041 __do_replace(struct net *net, const char *name, unsigned int valid_hooks, in __do_replace() argument
[all …]
Darptable_filter.c24 .valid_hooks = FILTER_VALID_HOOKS,
Diptable_security.c35 .valid_hooks = SECURITY_VALID_HOOKS,
Diptable_filter.c30 .valid_hooks = FILTER_VALID_HOOKS,
Diptable_nat.c25 .valid_hooks = (1 << NF_INET_PRE_ROUTING) |
Diptable_mangle.c35 .valid_hooks = MANGLE_VALID_HOOKS,
/Linux-v4.19/net/ipv6/netfilter/
Dip6table_raw.c21 .valid_hooks = RAW_VALID_HOOKS,
30 .valid_hooks = RAW_VALID_HOOKS,
Dip6_tables.c282 WARN_ON(!(table->valid_hooks & (1 << hook))); in ip6t_do_table()
390 unsigned int valid_hooks, void *entry0, in mark_source_chains() argument
401 if (!(valid_hooks & (1 << hook))) in mark_source_chains()
615 unsigned int valid_hooks) in check_entry_size_and_hooks() argument
639 if (!(valid_hooks & (1 << h))) in check_entry_size_and_hooks()
709 repl->valid_hooks); in translate_table()
724 ret = xt_check_table_hooks(newinfo, repl->valid_hooks); in translate_table()
728 if (!mark_source_chains(newinfo, repl->valid_hooks, entry0, offsets)) { in translate_table()
998 info.valid_hooks = t->valid_hooks; in get_info()
1058 __do_replace(struct net *net, const char *name, unsigned int valid_hooks, in __do_replace() argument
[all …]
Dip6table_security.c34 .valid_hooks = SECURITY_VALID_HOOKS,
Dip6table_filter.c29 .valid_hooks = FILTER_VALID_HOOKS,
Dip6table_nat.c27 .valid_hooks = (1 << NF_INET_PRE_ROUTING) |
Dip6table_mangle.c30 .valid_hooks = MANGLE_VALID_HOOKS,
/Linux-v4.19/include/uapi/linux/netfilter_arp/
Darp_tables.h141 unsigned int valid_hooks; member
163 unsigned int valid_hooks; member
/Linux-v4.19/include/linux/netfilter_bridge/
Debtables.h95 unsigned int valid_hooks; member
100 unsigned int valid_hooks);
/Linux-v4.19/include/uapi/linux/netfilter_ipv4/
Dip_tables.h163 unsigned int valid_hooks; member
185 unsigned int valid_hooks; member
/Linux-v4.19/include/uapi/linux/netfilter_ipv6/
Dip6_tables.h203 unsigned int valid_hooks; member
225 unsigned int valid_hooks; member
/Linux-v4.19/include/uapi/linux/netfilter_bridge/
Debtables.h46 unsigned int valid_hooks; member
62 unsigned int valid_hooks; member
/Linux-v4.19/include/linux/netfilter/
Dx_tables.h227 unsigned int valid_hooks; member
284 int xt_check_table_hooks(const struct xt_table_info *info, unsigned int valid_hooks);

12