tree d648ccbe485a71d37a80b08b4bf09d911d9ec2d3
parent 86a76caf8705e3524e15f343f3c4806939a06dc8
author Alexey Kuznetsov <[EMAIL PROTECTED]> Sat, 09 Jul 2005 07:34:46 -0700
committer David S. Miller <[EMAIL PROTECTED]> Sat, 09 Jul 2005 07:34:46 -0700
[IPV4]: Apply sysctl_icmp_echo_ignore_broadcasts to ICMP_TIMESTAMP as well.
This was the full intention of the original code.
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
net/ipv4/icmp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
--- 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;
}
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html