projects
/
GitHub
/
moto-9609
/
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:
86a76ca
)
[IPV4]: Apply sysctl_icmp_echo_ignore_broadcasts to ICMP_TIMESTAMP as well.
author
Alexey Kuznetsov
<kuznet@ms2.inr.ac.ru>
Sat, 9 Jul 2005 00:34:46 +0000
(17:34 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sat, 9 Jul 2005 00:34:46 +0000
(17:34 -0700)
This was the full intention of the original code.
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 cb759484979d94d46d946a66cca3ef4bf87d84a1..279f57abfecb5f3bbe8c10c23a4445f7180bd01e 100644
(file)
--- a/
net/ipv4/icmp.c
+++ b/
net/ipv4/icmp.c
@@
-970,7
+970,8
@@
int icmp_rcv(struct sk_buff *skb)
* RFC 1122: 3.2.2.8 An ICMP_TIMESTAMP MAY be silently
* discarded if to broadcast/multicast.
*/
- if (icmph->type == ICMP_ECHO &&
+ if ((icmph->type == ICMP_ECHO ||
+ icmph->type == ICMP_TIMESTAMP) &&
sysctl_icmp_echo_ignore_broadcasts) {
goto error;
}