Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c866aa7 authored by Alexey Kuznetsov's avatar Alexey Kuznetsov Committed by David S. Miller
Browse files

[IPV4]: Apply sysctl_icmp_echo_ignore_broadcasts to ICMP_TIMESTAMP as well.



This was the full intention of the original code.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 86a76caf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		}