From e75d648fe3ce72c9c354aeff44a2b7ad5ae6445e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 13 May 1996 15:59:34 +0000 Subject: do not allow network-induced tracing --- sbin/routed/Makefile | 3 +++ sbin/routed/input.c | 2 ++ 2 files changed, 5 insertions(+) (limited to 'sbin') 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: -- cgit v1.2.3