diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-06-09 09:52:34 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-06-09 09:52:34 +0000 |
commit | 0b0d1251a238968b62762ab9560b37bed73ee2b2 (patch) | |
tree | b1e6fd951f738abd012f1178b477a98fe7ad5f0a | |
parent | 6b5f145d80cb1e2e90d727b15ae722e2f9bfc9bc (diff) |
Log packet contents to the specified logfile,
if they are wanted
-rw-r--r-- | usr.sbin/ipmon/ipmon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ipmon/ipmon.c b/usr.sbin/ipmon/ipmon.c index e7a488b4bf9..eff7c03202e 100644 --- a/usr.sbin/ipmon/ipmon.c +++ b/usr.sbin/ipmon/ipmon.c @@ -41,7 +41,7 @@ #include <ctype.h> #if !defined(lint) && defined(LIBC_SCCS) -static char rcsid[] = "$Id: ipmon.c,v 1.7 1997/02/11 22:24:10 kstailey Exp $"; +static char rcsid[] = "$Id: ipmon.c,v 1.8 1997/06/09 09:52:33 niklas Exp $"; #endif #include "ip_fil_compat.h" @@ -267,7 +267,7 @@ int len; if (j && !(j & 0xf)) { *t++ = '\n'; *t = '\0'; - fputs(line, stdout); + fputs(line, log); t = (u_char *)line; *t = '\0'; } @@ -300,8 +300,8 @@ int len; *t++ = '\n'; *t = '\0'; } - fputs(line, stdout); - fflush(stdout); + fputs(line, log); + fflush(log); } |