Home
last modified time | relevance | path

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

12

/net/bridge/netfilter/
Debtable_nat.c63 ebt_nat_in(unsigned int hook, struct sk_buff *skb, const struct net_device *in in ebt_nat_in() argument
66 return ebt_do_table(hook, skb, in, out, dev_net(in)->xt.frame_nat); in ebt_nat_in()
70 ebt_nat_out(unsigned int hook, struct sk_buff *skb, const struct net_device *in in ebt_nat_out() argument
73 return ebt_do_table(hook, skb, in, out, dev_net(out)->xt.frame_nat); in ebt_nat_out()
78 .hook = ebt_nat_out,
85 .hook = ebt_nat_out,
92 .hook = ebt_nat_in,
Debtable_filter.c63 ebt_in_hook(unsigned int hook, struct sk_buff *skb, const struct net_device *in, in ebt_in_hook() argument
66 return ebt_do_table(hook, skb, in, out, dev_net(in)->xt.frame_filter); in ebt_in_hook()
70 ebt_out_hook(unsigned int hook, struct sk_buff *skb, const struct net_device *in, in ebt_out_hook() argument
73 return ebt_do_table(hook, skb, in, out, dev_net(out)->xt.frame_filter); in ebt_out_hook()
78 .hook = ebt_in_hook,
85 .hook = ebt_in_hook,
92 .hook = ebt_out_hook,
/net/netfilter/
Dcore.c129 unsigned int hook, in nf_iterate() argument
149 verdict = (*elemp)->hook(hook, skb, indev, outdev, okfn); in nf_iterate()
155 (*elemp)->hook, hook); in nf_iterate()
170 int nf_hook_slow(u_int8_t pf, unsigned int hook, struct sk_buff *skb, in nf_hook_slow() argument
183 elem = list_entry_rcu(&nf_hooks[pf][hook], struct nf_hook_ops, list); in nf_hook_slow()
185 verdict = nf_iterate(&nf_hooks[pf][hook], skb, hook, indev, in nf_hook_slow()
195 int err = nf_queue(skb, elem, pf, hook, indev, outdev, okfn, in nf_hook_slow()
Dnf_queue.c104 u_int8_t pf, unsigned int hook, in nf_queue() argument
138 .hook = hook, in nf_queue()
194 verdict = nf_iterate(&nf_hooks[entry->pf][entry->hook], in nf_reinject()
195 skb, entry->hook, in nf_reinject()
208 err = nf_queue(skb, elem, entry->pf, entry->hook, in nf_reinject()
Dnf_internals.h18 unsigned int hook,
28 u_int8_t pf, unsigned int hook,
/net/ipv4/
Dnetfilter.c97 if (entry->hook == NF_INET_LOCAL_OUT) { in nf_ip_saveroute()
112 if (entry->hook == NF_INET_LOCAL_OUT) { in nf_ip_reroute()
124 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum() argument
132 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip_checksum()
155 static __sum16 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum_partial() argument
165 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial()
/net/ipv6/
Dnetfilter.c86 if (entry->hook == NF_INET_LOCAL_OUT) { in nf_ip6_saveroute()
100 if (entry->hook == NF_INET_LOCAL_OUT) { in nf_ip6_reroute()
132 __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum() argument
140 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip6_checksum()
165 static __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum_partial() argument
176 return nf_ip6_checksum(skb, hook, dataoff, protocol); in nf_ip6_checksum_partial()
/net/ipv4/netfilter/
Diptable_mangle.c82 iptable_mangle_hook(unsigned int hook, in iptable_mangle_hook() argument
88 if (hook == NF_INET_LOCAL_OUT) in iptable_mangle_hook()
90 if (hook == NF_INET_POST_ROUTING) in iptable_mangle_hook()
91 return ipt_do_table(skb, hook, in, out, in iptable_mangle_hook()
94 return ipt_do_table(skb, hook, in, out, in iptable_mangle_hook()
Diptable_raw.c23 iptable_raw_hook(unsigned int hook, struct sk_buff *skb, in iptable_raw_hook() argument
29 if (hook == NF_INET_LOCAL_OUT && in iptable_raw_hook()
36 return ipt_do_table(skb, hook, in, out, net->ipv4.iptable_raw); in iptable_raw_hook()
Diptable_security.c40 iptable_security_hook(unsigned int hook, struct sk_buff *skb, in iptable_security_hook() argument
47 if (hook == NF_INET_LOCAL_OUT && in iptable_security_hook()
54 return ipt_do_table(skb, hook, in, out, net->ipv4.iptable_security); in iptable_security_hook()
Diptable_filter.c36 iptable_filter_hook(unsigned int hook, struct sk_buff *skb, in iptable_filter_hook() argument
42 if (hook == NF_INET_LOCAL_OUT && in iptable_filter_hook()
49 return ipt_do_table(skb, hook, in, out, net->ipv4.iptable_filter); in iptable_filter_hook()
Dip_tables.c250 unsigned int hook, in trace_packet() argument
265 root = get_entry(table_base, private->hook_entry[hook]); in trace_packet()
267 hookname = chainname = hooknames[hook]; in trace_packet()
270 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) in trace_packet()
275 nf_log_packet(net, AF_INET, hook, skb, in, out, &trace_loginfo, in trace_packet()
290 unsigned int hook, in ipt_do_table() argument
323 acpar.hooknum = hook; in ipt_do_table()
325 IP_NF_ASSERT(table->valid_hooks & (1 << hook)); in ipt_do_table()
335 e = get_entry(table_base, private->hook_entry[hook]); in ipt_do_table()
338 table->name, hook, origptr, in ipt_do_table()
[all …]
Dnf_conntrack_l3proto_ipv4.c179 .hook = ipv4_conntrack_in,
186 .hook = ipv4_conntrack_local,
193 .hook = ipv4_helper,
200 .hook = ipv4_confirm,
207 .hook = ipv4_helper,
214 .hook = ipv4_confirm,
Diptable_nat.c254 .hook = nf_nat_ipv4_in,
262 .hook = nf_nat_ipv4_out,
270 .hook = nf_nat_ipv4_local_fn,
278 .hook = nf_nat_ipv4_fn,
Darptable_filter.c30 arptable_filter_hook(unsigned int hook, struct sk_buff *skb, in arptable_filter_hook() argument
36 return arpt_do_table(skb, hook, in, out, net->ipv4.arptable_filter); in arptable_filter_hook()
/net/ipv6/netfilter/
Dip6table_mangle.c79 ip6table_mangle_hook(unsigned int hook, struct sk_buff *skb, in ip6table_mangle_hook() argument
83 if (hook == NF_INET_LOCAL_OUT) in ip6table_mangle_hook()
85 if (hook == NF_INET_POST_ROUTING) in ip6table_mangle_hook()
86 return ip6t_do_table(skb, hook, in, out, in ip6table_mangle_hook()
89 return ip6t_do_table(skb, hook, in, out, in ip6table_mangle_hook()
Dip6_tables.c276 unsigned int hook, in trace_packet() argument
291 root = get_entry(table_base, private->hook_entry[hook]); in trace_packet()
293 hookname = chainname = hooknames[hook]; in trace_packet()
296 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) in trace_packet()
301 nf_log_packet(net, AF_INET6, hook, skb, in, out, &trace_loginfo, in trace_packet()
316 unsigned int hook, in ip6t_do_table() argument
345 acpar.hooknum = hook; in ip6t_do_table()
347 IP_NF_ASSERT(table->valid_hooks & (1 << hook)); in ip6t_do_table()
358 e = get_entry(table_base, private->hook_entry[hook]); in ip6t_do_table()
388 trace_packet(skb, hook, in, out, in ip6t_do_table()
[all …]
Dnf_conntrack_l3proto_ipv6.c250 .hook = ipv6_conntrack_in,
257 .hook = ipv6_conntrack_local,
264 .hook = ipv6_helper,
271 .hook = ipv6_confirm,
278 .hook = ipv6_helper,
285 .hook = ipv6_confirm,
Dip6table_nat.c255 .hook = nf_nat_ipv6_in,
263 .hook = nf_nat_ipv6_out,
271 .hook = nf_nat_ipv6_local_fn,
279 .hook = nf_nat_ipv6_fn,
Dip6table_raw.c22 ip6table_raw_hook(unsigned int hook, struct sk_buff *skb, in ip6table_raw_hook() argument
28 return ip6t_do_table(skb, hook, in, out, net->ipv6.ip6table_raw); in ip6table_raw_hook()
Dip6table_security.c39 ip6table_security_hook(unsigned int hook, struct sk_buff *skb, in ip6table_security_hook() argument
46 return ip6t_do_table(skb, hook, in, out, net->ipv6.ip6table_security); in ip6table_security_hook()
Dip6table_filter.c35 ip6table_filter_hook(unsigned int hook, struct sk_buff *skb, in ip6table_filter_hook() argument
41 return ip6t_do_table(skb, hook, in, out, net->ipv6.ip6table_filter); in ip6table_filter_hook()
Dnf_defrag_ipv6_hooks.c86 .hook = ipv6_defrag,
93 .hook = ipv6_defrag,
/net/bridge/
Dbr_netfilter.c622 static unsigned int br_nf_pre_routing_ipv6(unsigned int hook, in br_nf_pre_routing_ipv6() argument
672 static unsigned int br_nf_pre_routing(unsigned int hook, struct sk_buff *skb, in br_nf_pre_routing() argument
694 return br_nf_pre_routing_ipv6(hook, skb, in, out, okfn); in br_nf_pre_routing()
730 static unsigned int br_nf_local_in(unsigned int hook, struct sk_buff *skb, in br_nf_local_in() argument
768 static unsigned int br_nf_forward_ip(unsigned int hook, struct sk_buff *skb, in br_nf_forward_ip() argument
821 static unsigned int br_nf_forward_arp(unsigned int hook, struct sk_buff *skb, in br_nf_forward_arp() argument
881 static unsigned int br_nf_post_routing(unsigned int hook, struct sk_buff *skb, in br_nf_post_routing() argument
926 static unsigned int ip_sabotage_in(unsigned int hook, struct sk_buff *skb, in ip_sabotage_in() argument
943 .hook = br_nf_pre_routing,
950 .hook = br_nf_local_in,
[all …]
/net/sched/
Dact_ipt.c42 static int ipt_init_target(struct xt_entry_target *t, char *table, unsigned int hook) in ipt_init_target() argument
58 par.hook_mask = hook; in ipt_init_target()
114 u32 hook = 0; in tcf_ipt_init() local
151 hook = nla_get_u32(tb[TCA_IPT_HOOK]); in tcf_ipt_init()
165 err = ipt_init_target(t, tname, hook); in tcf_ipt_init()
177 ipt->tcfi_hook = hook; in tcf_ipt_init()

12