summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_icmp.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-27 20:28:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-27 20:28:36 +0000
commit4c21dd03331eaa7b12d7bab3bea989fc33101262 (patch)
treefbabe4b7048dab9d8e82e0ad594aced253d00423 /sys/netinet/ip_icmp.c
parent915f8e87ccf96f421de32a5f28bcb42a80db91d5 (diff)
for icmpbmcastecho, block all of them
Diffstat (limited to 'sys/netinet/ip_icmp.c')
-rw-r--r--sys/netinet/ip_icmp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
index e9850626854..e77c5e694d2 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_icmp.c,v 1.9 1998/05/18 21:10:48 provos Exp $ */
+/* $OpenBSD: ip_icmp.c,v 1.10 1998/05/27 20:28:35 deraadt Exp $ */
/* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */
/*
@@ -330,8 +330,7 @@ icmp_input(m, va_alist)
case ICMP_ECHO:
if (!icmpbmcastecho &&
- (m->m_flags & (M_MCAST | M_BCAST)) != 0 &&
- IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
+ (m->m_flags & (M_MCAST | M_BCAST)) != 0) {
icmpstat.icps_bmcastecho++;
break;
}
@@ -340,8 +339,7 @@ icmp_input(m, va_alist)
case ICMP_TSTAMP:
if (!icmpbmcastecho &&
- (m->m_flags & (M_MCAST | M_BCAST)) != 0 &&
- IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
+ (m->m_flags & (M_MCAST | M_BCAST)) != 0) {
icmpstat.icps_bmcastecho++;
break;
}