| 1 |
#include <linux/netfilter.h> |
| 2 |
|
| 3 |
// Similarly to autoconf-netfilter-4_1.c, this autoconf test covers |
| 4 |
// backport of kernel patch 238e54c9cb9385a1ba99e92801f3615a2fb398b6 |
| 5 |
// to kernel-3.10.0-284.el7 per rhbz1230935#c4 as patch no 119478. |
| 6 |
// This fixes PR18711. |
| 7 |
|
| 8 |
unsigned int |
| 9 |
new_style_hook(const struct nf_hook_ops *ops, |
| 10 |
struct sk_buff *skb, |
| 11 |
const struct net_device *nf_in, |
| 12 |
const struct net_device *nf_out, |
| 13 |
const struct nf_hook_state *state); |
| 14 |
|
| 15 |
unsigned int |
| 16 |
new_style_hook(const struct nf_hook_ops *ops, |
| 17 |
struct sk_buff *skb, |
| 18 |
const struct net_device *nf_in, |
| 19 |
const struct net_device *nf_out, |
| 20 |
const struct nf_hook_state *state) |
| 21 |
{ |
| 22 |
(void) ops; (void) skb; (void) nf_in; (void) nf_out; (void) state; |
| 23 |
return 0; |
| 24 |
} |
| 25 |
|
| 26 |
struct nf_hook_ops netfilter_ops = { |
| 27 |
.hook = new_style_hook |
| 28 |
}; |
| 29 |
|