diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-04-14 08:24:21 -0400 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-05-08 04:30:46 -0400 |
commit | 383ca5b874fad082a61af0f47610a1af83e6bb44 (patch) | |
tree | e3644c0bcb2c847e1070601c867449d4b09616ad /net | |
parent | 928f308f556f4943e50c5064b546f47bce301f02 (diff) |
netfilter: xtables: use NFPROTO_ for xt_proto_init callsites
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ip_tables.c | 4 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c index 2ec8d7290c40..3051dda67cdd 100644 --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4/netfilter/ip_tables.c | |||
@@ -2201,12 +2201,12 @@ static struct xt_match icmp_matchstruct __read_mostly = { | |||
2201 | 2201 | ||
2202 | static int __net_init ip_tables_net_init(struct net *net) | 2202 | static int __net_init ip_tables_net_init(struct net *net) |
2203 | { | 2203 | { |
2204 | return xt_proto_init(net, AF_INET); | 2204 | return xt_proto_init(net, NFPROTO_IPV4); |
2205 | } | 2205 | } |
2206 | 2206 | ||
2207 | static void __net_exit ip_tables_net_exit(struct net *net) | 2207 | static void __net_exit ip_tables_net_exit(struct net *net) |
2208 | { | 2208 | { |
2209 | xt_proto_fini(net, AF_INET); | 2209 | xt_proto_fini(net, NFPROTO_IPV4); |
2210 | } | 2210 | } |
2211 | 2211 | ||
2212 | static struct pernet_operations ip_tables_net_ops = { | 2212 | static struct pernet_operations ip_tables_net_ops = { |
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 219e165aea10..41fbc1eea969 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c | |||
@@ -2234,12 +2234,12 @@ static struct xt_match icmp6_matchstruct __read_mostly = { | |||
2234 | 2234 | ||
2235 | static int __net_init ip6_tables_net_init(struct net *net) | 2235 | static int __net_init ip6_tables_net_init(struct net *net) |
2236 | { | 2236 | { |
2237 | return xt_proto_init(net, AF_INET6); | 2237 | return xt_proto_init(net, NFPROTO_IPV6); |
2238 | } | 2238 | } |
2239 | 2239 | ||
2240 | static void __net_exit ip6_tables_net_exit(struct net *net) | 2240 | static void __net_exit ip6_tables_net_exit(struct net *net) |
2241 | { | 2241 | { |
2242 | xt_proto_fini(net, AF_INET6); | 2242 | xt_proto_fini(net, NFPROTO_IPV6); |
2243 | } | 2243 | } |
2244 | 2244 | ||
2245 | static struct pernet_operations ip6_tables_net_ops = { | 2245 | static struct pernet_operations ip6_tables_net_ops = { |