diff options
author | phk <phk@FreeBSD.org> | 1996-05-11 20:48:42 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-05-11 20:48:42 +0000 |
commit | 324cb686d3d54b8549afe3d7b81a3727b677b86f (patch) | |
tree | 2eb51c7c6b624bca2272b302022a11fdd68760c6 /usr.sbin/ppp/chap.c | |
parent | 3683fd396bd99a9421c45c0f109d8430e49a7e4c (diff) | |
download | FreeBSD-src-324cb686d3d54b8549afe3d7b81a3727b677b86f.zip FreeBSD-src-324cb686d3d54b8549afe3d7b81a3727b677b86f.tar.gz |
Here is a diff of /usr/src/usr.sbin/ppp against current. The diffs
add some logging functionality which I find very useful.
'set debug link' will record just link up/down and address assignments.
'set debug connect' will record the entire chat dialog
'set debug carrier' will record just chat lines including 'CARRIER'
(so that I can be sure I'm getting a 28.8 line).
There was a global change required to permit LogPrintf to take a bit
mask instead of a bit position value (to permit logging some events
on either of two flags, so that no change in 'set debug lcp' would
result from the code supporting 'link'. Thus the diffs are rather
long for such a small change. The man page is also touched.
Oh, and there was a slight syntax problem in route.c
Reviewed by: phk
Submitted by: Tony Kimball <alk@Think.COM>
Diffstat (limited to 'usr.sbin/ppp/chap.c')
-rw-r--r-- | usr.sbin/ppp/chap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c index 2d03ee9..9b1937c 100644 --- a/usr.sbin/ppp/chap.c +++ b/usr.sbin/ppp/chap.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: chap.c,v 1.4 1996/01/10 21:27:37 phk Exp $ + * $Id: chap.c,v 1.5 1996/01/30 11:08:25 dfr Exp $ * * TODO: */ @@ -63,7 +63,7 @@ int count; #ifdef DEBUG DumpBp(bp); #endif - LogPrintf(LOG_LCP, "ChapOutput: %s\n", chapcodes[code]); + LogPrintf(LOG_LCP_BIT, "ChapOutput: %s\n", chapcodes[code]); HdlcOutput(PRI_LINK, PROTO_CHAP, bp); } @@ -130,7 +130,7 @@ struct mbuf *bp; name = cp + valsize; namelen = arglen - valsize - 1; name[namelen] = 0; - LogPrintf(LOG_PHASE, " Valsize = %d, Name = %s\n", valsize, name); + LogPrintf(LOG_PHASE_BIT, " Valsize = %d, Name = %s\n", valsize, name); /* * Get a secret key corresponds to the peer @@ -243,7 +243,7 @@ ChapInput(struct mbuf *bp) if (len >= ntohs(chp->length)) { if (chp->code < 1 || chp->code > 4) chp->code = 0; - LogPrintf(LOG_LCP, "ChapInput: %s\n", chapcodes[chp->code]); + LogPrintf(LOG_LCP_BIT, "ChapInput: %s\n", chapcodes[chp->code]); bp->offset += sizeof(struct fsmheader); bp->cnt -= sizeof(struct fsmheader); |