| 1 |
#include <linux/netfilter.h> |
| 2 |
|
| 3 |
unsigned int |
| 4 |
new_style_hook(const struct nf_hook_ops *ops, /* not: unsigned int hook; */ |
| 5 |
struct sk_buff *skb, |
| 6 |
const struct net_device *in, const struct net_device *out, |
| 7 |
int (*okfn)(struct sk_buff *)); |
| 8 |
|
| 9 |
unsigned int |
| 10 |
new_style_hook(const struct nf_hook_ops *ops, /* not: unsigned int hook; */ |
| 11 |
struct sk_buff *skb, |
| 12 |
const struct net_device *in, const struct net_device *out, |
| 13 |
int (*okfn)(struct sk_buff *)) |
| 14 |
{ |
| 15 |
(void) ops; (void) skb; (void) in; (void) out; (void) okfn; |
| 16 |
return 0; |
| 17 |
} |
| 18 |
|
| 19 |
struct nf_hook_ops netfilter_ops = { |
| 20 |
.hook = new_style_hook |
| 21 |
}; |
| 22 |
|