aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ping.c')
-rw-r--r--net/ipv4/ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
index 39b403f854c..0ae2cf1dada 100644
--- a/net/ipv4/ping.c
+++ b/net/ipv4/ping.c
@@ -320,8 +320,8 @@ void ping_err(struct sk_buff *skb, u32 info)
320 struct iphdr *iph = (struct iphdr *)skb->data; 320 struct iphdr *iph = (struct iphdr *)skb->data;
321 struct icmphdr *icmph = (struct icmphdr *)(skb->data+(iph->ihl<<2)); 321 struct icmphdr *icmph = (struct icmphdr *)(skb->data+(iph->ihl<<2));
322 struct inet_sock *inet_sock; 322 struct inet_sock *inet_sock;
323 int type = icmph->type; 323 int type = icmp_hdr(skb)->type;
324 int code = icmph->code; 324 int code = icmp_hdr(skb)->code;
325 struct net *net = dev_net(skb->dev); 325 struct net *net = dev_net(skb->dev);
326 struct sock *sk; 326 struct sock *sk;
327 int harderr; 327 int harderr;