projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1de9243
)
ipv4: Deliver ICMP redirects to sockets too.
author
David S. Miller
<davem@davemloft.net>
Thu, 12 Jul 2012 01:35:12 +0000
(18:35 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 12 Jul 2012 01:35:12 +0000
(18:35 -0700)
And thus, we can remove the ping_err() hack.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/icmp.c
b/net/ipv4/icmp.c
index 18e39d1895d45b5dc7c2e0005fbcc0c1d8505562..588514627aa7060fba774d65ff0693a1c999739e 100644
(file)
--- a/
net/ipv4/icmp.c
+++ b/
net/ipv4/icmp.c
@@
-782,13
+782,7
@@
static void icmp_redirect(struct sk_buff *skb)
break;
}
- /* Ping wants to see redirects.
- * Let's pretend they are errors of sorts... */
- if (iph->protocol == IPPROTO_ICMP &&
- iph->ihl >= 5 &&
- pskb_may_pull(skb, (iph->ihl<<2)+8)) {
- ping_err(skb, icmp_hdr(skb)->un.gateway);
- }
+ icmp_socket_deliver(skb, icmp_hdr(skb)->un.gateway);
out:
return;