]> Pileus Git - ~andy/linux/commitdiff
netfilter: xtables: use NFPROTO_ for xt_proto_init callsites
authorJan Engelhardt <jengelh@medozas.de>
Tue, 14 Apr 2009 12:24:21 +0000 (14:24 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 8 May 2009 08:30:46 +0000 (10:30 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c

index 2ec8d7290c400a4e8adfe71888150c41927be835..3051dda67cddb103568d23cf3850d8a1185cda46 100644 (file)
@@ -2201,12 +2201,12 @@ static struct xt_match icmp_matchstruct __read_mostly = {
 
 static int __net_init ip_tables_net_init(struct net *net)
 {
-       return xt_proto_init(net, AF_INET);
+       return xt_proto_init(net, NFPROTO_IPV4);
 }
 
 static void __net_exit ip_tables_net_exit(struct net *net)
 {
-       xt_proto_fini(net, AF_INET);
+       xt_proto_fini(net, NFPROTO_IPV4);
 }
 
 static struct pernet_operations ip_tables_net_ops = {
index 219e165aea1008368b99b8786a3fcdb731c14a98..41fbc1eea96935995549af90399e67170f7a9c6e 100644 (file)
@@ -2234,12 +2234,12 @@ static struct xt_match icmp6_matchstruct __read_mostly = {
 
 static int __net_init ip6_tables_net_init(struct net *net)
 {
-       return xt_proto_init(net, AF_INET6);
+       return xt_proto_init(net, NFPROTO_IPV6);
 }
 
 static void __net_exit ip6_tables_net_exit(struct net *net)
 {
-       xt_proto_fini(net, AF_INET6);
+       xt_proto_fini(net, NFPROTO_IPV6);
 }
 
 static struct pernet_operations ip6_tables_net_ops = {