diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-03-22 23:09:07 -0400 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-03-25 11:00:49 -0400 |
commit | b2e0b385d77069031edb957839aaaa8441b47287 (patch) | |
tree | 7b0cd8ed74fd0f8ab6a198cd1be735c6a972517e /net/ipv6/ip6_input.c | |
parent | 9bbc768aa911a3ef336272eaa6d220abfba8ce50 (diff) |
netfilter: ipv6: use NFPROTO values for NF_HOOK invocation
The semantic patch that was used:
// <smpl>
@@
@@
(NF_HOOK
|NF_HOOK_THRESH
|nf_hook
)(
-PF_INET6,
+NFPROTO_IPV6,
...)
// </smpl>
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/ipv6/ip6_input.c')
-rw-r--r-- | net/ipv6/ip6_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c index e28f9203deca..2c01dc65794d 100644 --- a/net/ipv6/ip6_input.c +++ b/net/ipv6/ip6_input.c | |||
@@ -142,7 +142,7 @@ int ipv6_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt | |||
142 | /* Must drop socket now because of tproxy. */ | 142 | /* Must drop socket now because of tproxy. */ |
143 | skb_orphan(skb); | 143 | skb_orphan(skb); |
144 | 144 | ||
145 | return NF_HOOK(PF_INET6, NF_INET_PRE_ROUTING, skb, dev, NULL, | 145 | return NF_HOOK(NFPROTO_IPV6, NF_INET_PRE_ROUTING, skb, dev, NULL, |
146 | ip6_rcv_finish); | 146 | ip6_rcv_finish); |
147 | err: | 147 | err: |
148 | IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INHDRERRORS); | 148 | IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INHDRERRORS); |
@@ -235,7 +235,7 @@ discard: | |||
235 | 235 | ||
236 | int ip6_input(struct sk_buff *skb) | 236 | int ip6_input(struct sk_buff *skb) |
237 | { | 237 | { |
238 | return NF_HOOK(PF_INET6, NF_INET_LOCAL_IN, skb, skb->dev, NULL, | 238 | return NF_HOOK(NFPROTO_IPV6, NF_INET_LOCAL_IN, skb, skb->dev, NULL, |
239 | ip6_input_finish); | 239 | ip6_input_finish); |
240 | } | 240 | } |
241 | 241 | ||