]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/icmp.c
[IPV4]: Apply sysctl_icmp_echo_ignore_broadcasts to ICMP_TIMESTAMP as well.
[net-next-2.6.git] / net / ipv4 / icmp.c
index cb759484979d94d46d946a66cca3ef4bf87d84a1..279f57abfecb5f3bbe8c10c23a4445f7180bd01e 100644 (file)
@@ -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;
                }