summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>1998-09-15 10:49:03 +0000
committerjkoshy <jkoshy@FreeBSD.org>1998-09-15 10:49:03 +0000
commited7cc860374c899ac82fe41832afd84295494cc8 (patch)
treecbe84db3ab3ab9964a2736ffbce22906901c9e50 /sys/netinet
parent79200df6729d1afbc24596e05c0bee54a2544616 (diff)
downloadFreeBSD-src-ed7cc860374c899ac82fe41832afd84295494cc8.zip
FreeBSD-src-ed7cc860374c899ac82fe41832afd84295494cc8.tar.gz
Turn off replies to ICMP echo requests for broadcast and multicast
addresses by default. Add a knob "icmp_bmcastecho" to "rc.network" to allow this behaviour to be controlled from "rc.conf". Document the controlling sysctl variable "net.inet.icmp.bmcastecho" in sysctl(3). Reviewed by: dg, jkh Reminded on -hackers by: Steinar Haug <sthaug@nethelp.no>
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_icmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
index 1858c15..186b8e6 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_icmp.c 8.2 (Berkeley) 1/4/94
- * $Id: ip_icmp.c,v 1.29 1997/08/25 16:29:27 wollman Exp $
+ * $Id: ip_icmp.c,v 1.30 1998/05/26 11:34:30 dg Exp $
*/
#include <sys/param.h>
@@ -69,7 +69,7 @@ static int icmpmaskrepl = 0;
SYSCTL_INT(_net_inet_icmp, ICMPCTL_MASKREPL, maskrepl, CTLFLAG_RW,
&icmpmaskrepl, 0, "");
-static int icmpbmcastecho = 1;
+static int icmpbmcastecho = 0;
SYSCTL_INT(_net_inet_icmp, OID_AUTO, bmcastecho, CTLFLAG_RW, &icmpbmcastecho,
0, "");
OpenPOWER on IntegriCloud