aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_mac.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-02-12 11:14:43 -0800
committerDavid S. Miller <davem@davemloft.net>2007-02-12 11:14:43 -0800
commit891350c9d168a7d58a193a67a1d107c23f9c2eb1 (patch)
tree1a4f8c2e05c278187ac481a10aa1790e2530061d /net/netfilter/xt_mac.c
parent[NETFILTER]: nf_conntrack: change nf_conntrack_l[34]proto_unregister to void (diff)
downloadlinux-dev-891350c9d168a7d58a193a67a1d107c23f9c2eb1.tar.xz
linux-dev-891350c9d168a7d58a193a67a1d107c23f9c2eb1.zip
[NETFILTER]: xt_mac/xt_CLASSIFY: use IPv6 hook names for IPv6 registration
Use NF_IP6_ instead of NF_IP_. The values are identical, this is merely cleanup. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/netfilter/xt_mac.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/netfilter/xt_mac.c b/net/netfilter/xt_mac.c
index 425fc21e31f5..d430d90d7b26 100644
--- a/net/netfilter/xt_mac.c
+++ b/net/netfilter/xt_mac.c
@@ -14,6 +14,7 @@
#include <linux/etherdevice.h>
#include <linux/netfilter_ipv4.h>
+#include <linux/netfilter_ipv6.h>
#include <linux/netfilter/xt_mac.h>
#include <linux/netfilter/x_tables.h>
@@ -59,9 +60,9 @@ static struct xt_match xt_mac_match[] = {
.family = AF_INET6,
.match = match,
.matchsize = sizeof(struct xt_mac_info),
- .hooks = (1 << NF_IP_PRE_ROUTING) |
- (1 << NF_IP_LOCAL_IN) |
- (1 << NF_IP_FORWARD),
+ .hooks = (1 << NF_IP6_PRE_ROUTING) |
+ (1 << NF_IP6_LOCAL_IN) |
+ (1 << NF_IP6_FORWARD),
.me = THIS_MODULE,
},
};