diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-04 14:22:13 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-04 14:22:13 +0100 |
commit | 19223f26d97077da8cf25251458afe00cae20cbb (patch) | |
tree | 453ad12de5398ba8ea8ed536af9ba974f0830ec1 /net/ipv4 | |
parent | d4ec52bae739409b2372fea30dba0e7a8d6b9181 (diff) | |
download | kernel_samsung_tuna-19223f26d97077da8cf25251458afe00cae20cbb.zip kernel_samsung_tuna-19223f26d97077da8cf25251458afe00cae20cbb.tar.gz kernel_samsung_tuna-19223f26d97077da8cf25251458afe00cae20cbb.tar.bz2 |
netfilter: arptable_filter: merge forward hook
It's identical to NF_ARP_IN hook.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/arptable_filter.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/net/ipv4/netfilter/arptable_filter.c b/net/ipv4/netfilter/arptable_filter.c index bee3d11..e091187 100644 --- a/net/ipv4/netfilter/arptable_filter.c +++ b/net/ipv4/netfilter/arptable_filter.c @@ -75,16 +75,6 @@ static unsigned int arpt_out_hook(unsigned int hook, dev_net(out)->ipv4.arptable_filter); } -static unsigned int arpt_forward_hook(unsigned int hook, - struct sk_buff *skb, - const struct net_device *in, - const struct net_device *out, - int (*okfn)(struct sk_buff *)) -{ - return arpt_do_table(skb, hook, in, out, - dev_net(in)->ipv4.arptable_filter); -} - static struct nf_hook_ops arpt_ops[] __read_mostly = { { .hook = arpt_in_hook, @@ -101,7 +91,7 @@ static struct nf_hook_ops arpt_ops[] __read_mostly = { .priority = NF_IP_PRI_FILTER, }, { - .hook = arpt_forward_hook, + .hook = arpt_in_hook, .owner = THIS_MODULE, .pf = NFPROTO_ARP, .hooknum = NF_ARP_FORWARD, |