Home
last modified time | relevance | path

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

12

/net/ipv4/netfilter/
Diptable_mangle.c77 ipt_pre_routing_hook(unsigned int hook, in ipt_pre_routing_hook() argument
83 return ipt_do_table(skb, hook, in, out, in ipt_pre_routing_hook()
88 ipt_post_routing_hook(unsigned int hook, in ipt_post_routing_hook() argument
94 return ipt_do_table(skb, hook, in, out, in ipt_post_routing_hook()
99 ipt_local_in_hook(unsigned int hook, in ipt_local_in_hook() argument
105 return ipt_do_table(skb, hook, in, out, in ipt_local_in_hook()
110 ipt_forward_hook(unsigned int hook, in ipt_forward_hook() argument
116 return ipt_do_table(skb, hook, in, out, in ipt_forward_hook()
121 ipt_local_hook(unsigned int hook, in ipt_local_hook() argument
145 ret = ipt_do_table(skb, hook, in, out, in ipt_local_hook()
[all …]
Diptable_security.c69 ipt_local_in_hook(unsigned int hook, in ipt_local_in_hook() argument
75 return ipt_do_table(skb, hook, in, out, in ipt_local_in_hook()
80 ipt_forward_hook(unsigned int hook, in ipt_forward_hook() argument
86 return ipt_do_table(skb, hook, in, out, in ipt_forward_hook()
91 ipt_local_out_hook(unsigned int hook, in ipt_local_out_hook() argument
101 return ipt_do_table(skb, hook, in, out, in ipt_local_out_hook()
107 .hook = ipt_local_in_hook,
114 .hook = ipt_forward_hook,
121 .hook = ipt_local_out_hook,
Diptable_filter.c66 ipt_local_in_hook(unsigned int hook, in ipt_local_in_hook() argument
72 return ipt_do_table(skb, hook, in, out, in ipt_local_in_hook()
77 ipt_hook(unsigned int hook, in ipt_hook() argument
83 return ipt_do_table(skb, hook, in, out, in ipt_hook()
88 ipt_local_out_hook(unsigned int hook, in ipt_local_out_hook() argument
98 return ipt_do_table(skb, hook, in, out, in ipt_local_out_hook()
104 .hook = ipt_local_in_hook,
111 .hook = ipt_hook,
118 .hook = ipt_local_out_hook,
Darptable_filter.c58 static unsigned int arpt_in_hook(unsigned int hook, in arpt_in_hook() argument
64 return arpt_do_table(skb, hook, in, out, in arpt_in_hook()
68 static unsigned int arpt_out_hook(unsigned int hook, in arpt_out_hook() argument
74 return arpt_do_table(skb, hook, in, out, in arpt_out_hook()
80 .hook = arpt_in_hook,
87 .hook = arpt_out_hook,
94 .hook = arpt_in_hook,
Diptable_raw.c49 ipt_hook(unsigned int hook, in ipt_hook() argument
55 return ipt_do_table(skb, hook, in, out, in ipt_hook()
60 ipt_local_hook(unsigned int hook, in ipt_local_hook() argument
70 return ipt_do_table(skb, hook, in, out, in ipt_local_hook()
77 .hook = ipt_hook,
84 .hook = ipt_local_hook,
Dnf_defrag_ipv4.c64 .hook = ipv4_conntrack_defrag,
71 .hook = ipv4_conntrack_defrag,
Dip_tables.c281 unsigned int hook, in trace_packet() argument
294 root = get_entry(table_base, private->hook_entry[hook]); in trace_packet()
296 hookname = chainname = (char *)hooknames[hook]; in trace_packet()
300 private->size - private->hook_entry[hook], in trace_packet()
304 nf_log_packet(AF_INET, hook, skb, in, out, &trace_loginfo, in trace_packet()
313 unsigned int hook, in ipt_do_table() argument
348 tgpar.hooknum = hook; in ipt_do_table()
351 IP_NF_ASSERT(table->valid_hooks & (1 << hook)); in ipt_do_table()
354 e = get_entry(table_base, private->hook_entry[hook]); in ipt_do_table()
357 back = get_entry(table_base, private->underflow[hook]); in ipt_do_table()
[all …]
Dipt_REJECT.c35 static void send_reset(struct sk_buff *oldskb, int hook) in send_reset() argument
58 if (nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), IPPROTO_TCP)) in send_reset()
103 if (hook != NF_INET_FORWARD in send_reset()
Dnf_nat_standalone.c253 .hook = nf_nat_in,
261 .hook = nf_nat_out,
269 .hook = nf_nat_local_fn,
277 .hook = nf_nat_fn,
Darp_tables.c219 unsigned int hook, in arpt_do_table() argument
243 e = get_entry(table_base, private->hook_entry[hook]); in arpt_do_table()
244 back = get_entry(table_base, private->underflow[hook]); in arpt_do_table()
248 tgpar.hooknum = hook; in arpt_do_table()
340 unsigned int hook; in mark_source_chains() local
345 for (hook = 0; hook < NF_ARP_NUMHOOKS; hook++) { in mark_source_chains()
346 unsigned int pos = newinfo->hook_entry[hook]; in mark_source_chains()
350 if (!(valid_hooks & (1 << hook))) in mark_source_chains()
359 int visited = e->comefrom & (1 << hook); in mark_source_chains()
363 hook, pos, e->comefrom); in mark_source_chains()
[all …]
/net/ipv6/netfilter/
Dip6table_security.c68 ip6t_local_in_hook(unsigned int hook, in ip6t_local_in_hook() argument
74 return ip6t_do_table(skb, hook, in, out, in ip6t_local_in_hook()
79 ip6t_forward_hook(unsigned int hook, in ip6t_forward_hook() argument
85 return ip6t_do_table(skb, hook, in, out, in ip6t_forward_hook()
90 ip6t_local_out_hook(unsigned int hook, in ip6t_local_out_hook() argument
97 return ip6t_do_table(skb, hook, in, out, in ip6t_local_out_hook()
103 .hook = ip6t_local_in_hook,
110 .hook = ip6t_forward_hook,
117 .hook = ip6t_local_out_hook,
Dip6table_mangle.c70 ip6t_in_hook(unsigned int hook, in ip6t_in_hook() argument
76 return ip6t_do_table(skb, hook, in, out, in ip6t_in_hook()
81 ip6t_post_routing_hook(unsigned int hook, in ip6t_post_routing_hook() argument
87 return ip6t_do_table(skb, hook, in, out, in ip6t_post_routing_hook()
92 ip6t_local_out_hook(unsigned int hook, in ip6t_local_out_hook() argument
123 ret = ip6t_do_table(skb, hook, in, out, in ip6t_local_out_hook()
138 .hook = ip6t_in_hook,
145 .hook = ip6t_in_hook,
152 .hook = ip6t_in_hook,
159 .hook = ip6t_local_out_hook,
[all …]
Dip6table_filter.c64 ip6t_in_hook(unsigned int hook, in ip6t_in_hook() argument
70 return ip6t_do_table(skb, hook, in, out, in ip6t_in_hook()
75 ip6t_local_out_hook(unsigned int hook, in ip6t_local_out_hook() argument
91 return ip6t_do_table(skb, hook, in, out, in ip6t_local_out_hook()
97 .hook = ip6t_in_hook,
104 .hook = ip6t_in_hook,
111 .hook = ip6t_local_out_hook,
Dip6table_raw.c48 ip6t_pre_routing_hook(unsigned int hook, in ip6t_pre_routing_hook() argument
54 return ip6t_do_table(skb, hook, in, out, in ip6t_pre_routing_hook()
59 ip6t_local_out_hook(unsigned int hook, in ip6t_local_out_hook() argument
65 return ip6t_do_table(skb, hook, in, out, in ip6t_local_out_hook()
71 .hook = ip6t_pre_routing_hook,
78 .hook = ip6t_local_out_hook,
Dnf_conntrack_l3proto_ipv6.c265 .hook = ipv6_defrag,
272 .hook = ipv6_conntrack_in,
279 .hook = ipv6_conntrack_local,
286 .hook = ipv6_defrag,
293 .hook = ipv6_confirm,
300 .hook = ipv6_confirm,
Dip6_tables.c313 unsigned int hook, in trace_packet() argument
326 root = get_entry(table_base, private->hook_entry[hook]); in trace_packet()
328 hookname = chainname = (char *)hooknames[hook]; in trace_packet()
332 private->size - private->hook_entry[hook], in trace_packet()
336 nf_log_packet(AF_INET6, hook, skb, in, out, &trace_loginfo, in trace_packet()
345 unsigned int hook, in ip6t_do_table() argument
374 tgpar.hooknum = hook; in ip6t_do_table()
377 IP_NF_ASSERT(table->valid_hooks & (1 << hook)); in ip6t_do_table()
380 e = get_entry(table_base, private->hook_entry[hook]); in ip6t_do_table()
383 back = get_entry(table_base, private->underflow[hook]); in ip6t_do_table()
[all …]
/net/netfilter/
Dcore.c116 unsigned int hook, in nf_iterate() argument
137 verdict = elem->hook(hook, skb, indev, outdev, okfn); in nf_iterate()
143 elem->hook, hook); in nf_iterate()
158 int nf_hook_slow(u_int8_t pf, unsigned int hook, struct sk_buff *skb, in nf_hook_slow() argument
171 elem = &nf_hooks[pf][hook]; in nf_hook_slow()
173 verdict = nf_iterate(&nf_hooks[pf][hook], skb, hook, indev, in nf_hook_slow()
182 if (!nf_queue(skb, elem, pf, hook, indev, outdev, okfn, in nf_hook_slow()
Dnf_queue.c110 u_int8_t pf, unsigned int hook, in __nf_queue() argument
144 .hook = hook, in __nf_queue()
194 u_int8_t pf, unsigned int hook, in nf_queue() argument
203 return __nf_queue(skb, elem, pf, hook, indev, outdev, okfn, in nf_queue()
224 if (!__nf_queue(segs, elem, pf, hook, indev, outdev, okfn, in nf_queue()
256 verdict = nf_iterate(&nf_hooks[entry->pf][entry->hook], in nf_reinject()
257 skb, entry->hook, in nf_reinject()
271 if (!__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/bridge/netfilter/
Debtable_filter.c64 ebt_in_hook(unsigned int hook, struct sk_buff *skb, const struct net_device *in, in ebt_in_hook() argument
67 return ebt_do_table(hook, skb, in, out, dev_net(in)->xt.frame_filter); in ebt_in_hook()
71 ebt_out_hook(unsigned int hook, struct sk_buff *skb, const struct net_device *in, in ebt_out_hook() argument
74 return ebt_do_table(hook, skb, in, out, dev_net(out)->xt.frame_filter); in ebt_out_hook()
79 .hook = ebt_in_hook,
86 .hook = ebt_in_hook,
93 .hook = ebt_out_hook,
Debtable_nat.c64 ebt_nat_in(unsigned int hook, struct sk_buff *skb, const struct net_device *in in ebt_nat_in() argument
67 return ebt_do_table(hook, skb, in, out, dev_net(in)->xt.frame_nat); in ebt_nat_in()
71 ebt_nat_out(unsigned int hook, struct sk_buff *skb, const struct net_device *in in ebt_nat_out() argument
74 return ebt_do_table(hook, skb, in, out, dev_net(out)->xt.frame_nat); in ebt_nat_out()
79 .hook = ebt_nat_out,
86 .hook = ebt_nat_out,
93 .hook = ebt_nat_in,
/net/ipv6/
Dnetfilter.c67 if (entry->hook == NF_INET_LOCAL_OUT) { in nf_ip6_saveroute()
81 if (entry->hook == NF_INET_LOCAL_OUT) { in nf_ip6_reroute()
97 __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum() argument
105 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip6_checksum()
130 static __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum_partial() argument
141 return nf_ip6_checksum(skb, hook, dataoff, protocol); in nf_ip6_checksum_partial()
/net/bridge/
Dbr_netfilter.c497 static unsigned int br_nf_pre_routing_ipv6(unsigned int hook, in br_nf_pre_routing_ipv6() argument
549 static unsigned int br_nf_pre_routing(unsigned int hook, struct sk_buff *skb, in br_nf_pre_routing() argument
567 return br_nf_pre_routing_ipv6(hook, skb, in, out, okfn); in br_nf_pre_routing()
626 static unsigned int br_nf_local_in(unsigned int hook, struct sk_buff *skb, in br_nf_local_in() argument
665 static unsigned int br_nf_forward_ip(unsigned int hook, struct sk_buff *skb, in br_nf_forward_ip() argument
713 static unsigned int br_nf_forward_arp(unsigned int hook, struct sk_buff *skb, in br_nf_forward_arp() argument
755 static unsigned int br_nf_local_out(unsigned int hook, struct sk_buff *skb, in br_nf_local_out() argument
802 static unsigned int br_nf_post_routing(unsigned int hook, struct sk_buff *skb, in br_nf_post_routing() argument
879 static unsigned int ip_sabotage_in(unsigned int hook, struct sk_buff *skb, in ip_sabotage_in() argument
897 { .hook = br_nf_pre_routing,
[all …]
/net/ipv4/
Dnetfilter.c136 if (entry->hook == NF_INET_LOCAL_OUT) { in nf_ip_saveroute()
151 if (entry->hook == NF_INET_LOCAL_OUT) { in nf_ip_reroute()
163 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum() argument
171 if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN) in nf_ip_checksum()
194 static __sum16 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum_partial() argument
204 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial()
/net/sched/
Dact_ipt.c41 static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int hook) in ipt_init_target() argument
57 par.hook_mask = hook; in ipt_init_target()
113 u32 hook = 0; in tcf_ipt_init() local
150 hook = nla_get_u32(tb[TCA_IPT_HOOK]); in tcf_ipt_init()
164 if ((err = ipt_init_target(t, tname, hook)) < 0) in tcf_ipt_init()
175 ipt->tcfi_hook = hook; in tcf_ipt_init()

12