netfilter: xt_NFQUEUE: use NFPROTO_UNSPEC
authorFlorian Westphal <fw@strlen.de>
Fri, 5 Jun 2009 11:18:07 +0000 (13:18 +0200)
committerPatrick McHardy <kaber@trash.net>
Fri, 5 Jun 2009 11:18:07 +0000 (13:18 +0200)
We can use wildcard matching here, just like
ab4f21e6fb1c09b13c4c3cb8357babe8223471bd ("xtables: use NFPROTO_UNSPEC
in more extensions").

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/xt_NFQUEUE.c

index f9977b3311f75692239c2f7c32ca7a417ed3eddb..6e0f84d4d058cd043823d52380419f6bc611a3a6 100644 (file)
@@ -34,21 +34,7 @@ nfqueue_tg(struct sk_buff *skb, const struct xt_target_param *par)
 static struct xt_target nfqueue_tg_reg[] __read_mostly = {
        {
                .name           = "NFQUEUE",
-               .family         = NFPROTO_IPV4,
-               .target         = nfqueue_tg,
-               .targetsize     = sizeof(struct xt_NFQ_info),
-               .me             = THIS_MODULE,
-       },
-       {
-               .name           = "NFQUEUE",
-               .family         = NFPROTO_IPV6,
-               .target         = nfqueue_tg,
-               .targetsize     = sizeof(struct xt_NFQ_info),
-               .me             = THIS_MODULE,
-       },
-       {
-               .name           = "NFQUEUE",
-               .family         = NFPROTO_ARP,
+               .family         = NFPROTO_UNSPEC,
                .target         = nfqueue_tg,
                .targetsize     = sizeof(struct xt_NFQ_info),
                .me             = THIS_MODULE,