From 94d661ac8cb907e0a869759f76cd7134c9105e6c Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 9 Jun 1997 03:27:43 +0000 Subject: Overhaul ppp: o Use syslog o Remove references to stdout/stderr (incl perror()) o Introduce VarTerm - the interactive terminal or zero o Allow "set timeout" to affect current session o Change "set debug" to "set log" o Allow "set log [+|-]flag" o Make MSEXT and PASSWDAUTH stuff the default o Move all #ifdef DEBUG stuff into the code - this shouldn't be too much overhead. It's now controlled with "set log +debug" o Add "set log command, debug, tun, warn, error, alert" o Remove cdefs.h, and assume an ansi compiler. o Improve all diagnostic output o Don't trap SIGSEGV o SIGHUP now terminates again (log files are controlled by syslog) o Call CloseModem() when changing devices o Fix parsing of third arg of "delete" I think this fixes the "magic is same" problems that some people have been experiencing. The man page is being rewritten. It'll follow soon. --- usr.sbin/ppp/async.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp/async.c') diff --git a/usr.sbin/ppp/async.c b/usr.sbin/ppp/async.c index f122c40..c4a101b 100644 --- a/usr.sbin/ppp/async.c +++ b/usr.sbin/ppp/async.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: async.c,v 1.7 1997/02/22 16:09:59 peter Exp $ + * $Id: async.c,v 1.8 1997/05/26 00:43:55 brian Exp $ * */ #include "fsm.h" @@ -121,7 +121,7 @@ int proto; *cp ++ = HDLC_SYN; cnt = cp - hs->xbuff; - LogDumpBuff(LOG_ASYNC, "WriteModem", hs->xbuff, cnt); + LogDumpBuff(LogASYNC, "WriteModem", hs->xbuff, cnt); WriteModem(pri, (char *)hs->xbuff, cnt); OsAddOutOctets(cnt); pfree(bp); @@ -156,7 +156,7 @@ u_char c; default: if (hs->length >= HDLCSIZE) { /* packet is too large, discard it */ - logprintf("too large, diacarding.\n"); + LogPrintf(LogERROR, "Packet too large (%d), diacarding.\n", hs->length); hs->length = 0; hs->mode = MODE_HUNT; break; -- cgit v1.1