mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
ipv4: fix a bug in ping_err().
We should get 'type' and 'code' from the outer ICMP header. Signed-off-by: Li Wei <lw@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a0b1c42951
commit
b531ed61a2
1 changed files with 2 additions and 2 deletions
|
@ -322,8 +322,8 @@ void ping_err(struct sk_buff *skb, u32 info)
|
|||
struct iphdr *iph = (struct iphdr *)skb->data;
|
||||
struct icmphdr *icmph = (struct icmphdr *)(skb->data+(iph->ihl<<2));
|
||||
struct inet_sock *inet_sock;
|
||||
int type = icmph->type;
|
||||
int code = icmph->code;
|
||||
int type = icmp_hdr(skb)->type;
|
||||
int code = icmp_hdr(skb)->code;
|
||||
struct net *net = dev_net(skb->dev);
|
||||
struct sock *sk;
|
||||
int harderr;
|
||||
|
|
Loading…
Reference in a new issue