Debian Codegraph @

runtime/linux/autoconf-netfilter-4_1.c

raw
1 #include <linux/netfilter.h>
2
3 // The following kernel commit first appears in v4.1-rc1 and modifies
4 // the netfilter hook function signature (again).
5 //
6 // commit 238e54c9cb9385a1ba99e92801f3615a2fb398b6
7 // Author: David S. Miller <[email protected]>
8 // Date: Fri Apr 3 20:32:56 2015 -0400
9 //
10 // netfilter: Make nf_hookfn use nf_hook_state.
11 //
12 // Pass the nf_hook_state all the way down into the hook
13 // functions themselves.
14 //
15 // Signed-off-by: David S. Miller <[email protected]>
16
17 unsigned int
18 newer_style_hook(const struct nf_hook_ops *ops,
19 struct sk_buff *skb,
20 const struct nf_hook_state *state);
21
22 unsigned int
23 newer_style_hook(const struct nf_hook_ops *ops,
24 struct sk_buff *skb,
25 const struct nf_hook_state *state)
26 {
27 (void) ops; (void) skb; (void) state;
28 return 0;
29 }
30
31 struct nf_hook_ops netfilter_ops = {
32 .hook = newer_style_hook
33 };
34