aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/raw.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-03-22 23:07:29 -0400
committerJan Engelhardt <jengelh@medozas.de>2010-03-25 11:00:30 -0400
commit9bbc768aa911a3ef336272eaa6d220abfba8ce50 (patch)
tree2c2d421e273eb78f3b1d4533b3a8b0654bcd45c0 /net/ipv4/raw.c
parent713aefa3fb3929ce36305d4d1b7b4059d87ed115 (diff)
netfilter: ipv4: use NFPROTO values for NF_HOOK invocation
The semantic patch that was used: // <smpl> @@ @@ (NF_HOOK |NF_HOOK_COND |nf_hook )( -PF_INET, +NFPROTO_IPV4, ...) // </smpl> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/ipv4/raw.c')
-rw-r--r--net/ipv4/raw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index ce154b47f1da..34d9adb83590 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -382,8 +382,8 @@ static int raw_send_hdrinc(struct sock *sk, void *from, size_t length,
382 icmp_out_count(net, ((struct icmphdr *) 382 icmp_out_count(net, ((struct icmphdr *)
383 skb_transport_header(skb))->type); 383 skb_transport_header(skb))->type);
384 384
385 err = NF_HOOK(PF_INET, NF_INET_LOCAL_OUT, skb, NULL, rt->u.dst.dev, 385 err = NF_HOOK(NFPROTO_IPV4, NF_INET_LOCAL_OUT, skb, NULL,
386 dst_output); 386 rt->u.dst.dev, dst_output);
387 if (err > 0) 387 if (err > 0)
388 err = net_xmit_errno(err); 388 err = net_xmit_errno(err);
389 if (err) 389 if (err)