diff options
author | Patrick McHardy <kaber@trash.net> | 2007-02-12 19:14:43 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-02-12 19:14:43 (GMT) |
commit | 891350c9d168a7d58a193a67a1d107c23f9c2eb1 (patch) | |
tree | 1a4f8c2e05c278187ac481a10aa1790e2530061d /net/netfilter/xt_CLASSIFY.c | |
parent | fe3eb20c1ace69e42e6ebf2afd2a904b2ae85cde (diff) | |
download | linux-891350c9d168a7d58a193a67a1d107c23f9c2eb1.tar.xz |
[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 'net/netfilter/xt_CLASSIFY.c')
-rw-r--r-- | net/netfilter/xt_CLASSIFY.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/netfilter/xt_CLASSIFY.c b/net/netfilter/xt_CLASSIFY.c index 195e929..4007bbe 100644 --- a/net/netfilter/xt_CLASSIFY.c +++ b/net/netfilter/xt_CLASSIFY.c @@ -15,6 +15,8 @@ #include <linux/ip.h> #include <net/checksum.h> +#include <linux/netfilter_ipv4.h> +#include <linux/netfilter_ipv6.h> #include <linux/netfilter/x_tables.h> #include <linux/netfilter/xt_CLASSIFY.h> @@ -55,9 +57,9 @@ static struct xt_target xt_classify_target[] = { .target = target, .targetsize = sizeof(struct xt_classify_target_info), .table = "mangle", - .hooks = (1 << NF_IP_LOCAL_OUT) | - (1 << NF_IP_FORWARD) | - (1 << NF_IP_POST_ROUTING), + .hooks = (1 << NF_IP6_LOCAL_OUT) | + (1 << NF_IP6_FORWARD) | + (1 << NF_IP6_POST_ROUTING), .me = THIS_MODULE, }, }; |