summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-13 15:59:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-13 15:59:34 +0000
commite75d648fe3ce72c9c354aeff44a2b7ad5ae6445e (patch)
treefe64acbd2661e351ce2340e86854ad358e4ad688 /sbin
parentb3b7b3d8f22899a1cee6ba56a850777aad8b8ed9 (diff)
do not allow network-induced tracing
Diffstat (limited to 'sbin')
-rw-r--r--sbin/routed/Makefile3
-rw-r--r--sbin/routed/input.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/sbin/routed/Makefile b/sbin/routed/Makefile
index 4420b69f434..2ffb27523e3 100644
--- a/sbin/routed/Makefile
+++ b/sbin/routed/Makefile
@@ -1,6 +1,9 @@
# $NetBSD: Makefile,v 1.14 1995/06/20 22:25:51 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 6/19/93
+# disable an undesirable feature
+#CFLAGS=-DTRACING
+
PROG= routed
SRCS= af.c if.c input.c main.c output.c startup.c tables.c timer.c \
trace.c inet.c
diff --git a/sbin/routed/input.c b/sbin/routed/input.c
index 31b0dd63ba2..ed732d3282e 100644
--- a/sbin/routed/input.c
+++ b/sbin/routed/input.c
@@ -175,6 +175,7 @@ rip_input(from, rip, size)
case RIPCMD_TRACEON:
case RIPCMD_TRACEOFF:
/* verify message came from a privileged port */
+#ifdef TRACING
if ((*afp->af_portcheck)(from) == 0)
return;
@@ -186,6 +187,7 @@ rip_input(from, rip, size)
traceon(rip->rip_tracefile);
else
traceoff();
+#endif
return;
case RIPCMD_RESPONSE: