diff options
author | Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 2005-07-08 20:34:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-08 20:34:46 -0400 |
commit | 4c866aa798bc6de0a1d45495229e9f13c35b55c2 (patch) | |
tree | d648ccbe485a71d37a80b08b4bf09d911d9ec2d3 /net/ipv4/icmp.c | |
parent | 86a76caf8705e3524e15f343f3c4806939a06dc8 (diff) |
[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 <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/icmp.c')
-rw-r--r-- | net/ipv4/icmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index cb759484979..279f57abfec 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c | |||
@@ -970,7 +970,8 @@ int icmp_rcv(struct sk_buff *skb) | |||
970 | * RFC 1122: 3.2.2.8 An ICMP_TIMESTAMP MAY be silently | 970 | * RFC 1122: 3.2.2.8 An ICMP_TIMESTAMP MAY be silently |
971 | * discarded if to broadcast/multicast. | 971 | * discarded if to broadcast/multicast. |
972 | */ | 972 | */ |
973 | if (icmph->type == ICMP_ECHO && | 973 | if ((icmph->type == ICMP_ECHO || |
974 | icmph->type == ICMP_TIMESTAMP) && | ||
974 | sysctl_icmp_echo_ignore_broadcasts) { | 975 | sysctl_icmp_echo_ignore_broadcasts) { |
975 | goto error; | 976 | goto error; |
976 | } | 977 | } |