mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
net: fix icmp_socket_deliver argument 2 input
it expects a unsigned int, but got a __be32 Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: Zhang Yu <zhangyu31@baidu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f17f7648a4
commit
0f404bbdaf
1 changed files with 1 additions and 1 deletions
|
@ -902,7 +902,7 @@ static bool icmp_redirect(struct sk_buff *skb)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
icmp_socket_deliver(skb, icmp_hdr(skb)->un.gateway);
|
icmp_socket_deliver(skb, ntohl(icmp_hdr(skb)->un.gateway));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue