summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-04-09 07:01:53 +0000
committerpst <pst@FreeBSD.org>1996-04-09 07:01:53 +0000
commit67931eee29c1243cda8edab749e0053a487358b5 (patch)
treefb4534e6335e95e3dfd18ee130878b258d20132f /sys/netinet/udp_usrreq.c
parenta3cc2115526720239bf249173d8cef81e6876367 (diff)
downloadFreeBSD-src-67931eee29c1243cda8edab749e0053a487358b5.zip
FreeBSD-src-67931eee29c1243cda8edab749e0053a487358b5.tar.gz
Logging UDP and TCP connection attempts should not be enabled by default.
It's trivial to create a denial of service attack on a box so enabled. These messages, if enabled at all, must be rate-limited. (!)
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 57abbe6..220b976 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
- * $Id: udp_usrreq.c,v 1.20 1996/03/11 15:13:38 davidg Exp $
+ * $Id: udp_usrreq.c,v 1.21 1996/04/04 10:46:44 phk Exp $
*/
#include <sys/param.h>
@@ -73,7 +73,7 @@ static int udpcksum = 0; /* XXX */
SYSCTL_INT(_net_inet_udp, UDPCTL_CHECKSUM, checksum, CTLFLAG_RW,
&udpcksum, 0, "");
-static int log_in_vain = 1;
+static int log_in_vain = 0;
SYSCTL_INT(_net_inet_udp, OID_AUTO, log_in_vain, CTLFLAG_RW,
&log_in_vain, 0, "");
OpenPOWER on IntegriCloud