summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/chap.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-07 23:55:29 +0000
committerbrian <brian@FreeBSD.org>1997-12-07 23:55:29 +0000
commit7f92055123c4be565e54b2e37be01cfdcdc56b97 (patch)
tree27dcd67f873556bbcd0ecb1716a06964c949a31d /usr.sbin/ppp/chap.c
parentdf69c965c11136365acfe29358924b3657349be3 (diff)
downloadFreeBSD-src-7f92055123c4be565e54b2e37be01cfdcdc56b97.zip
FreeBSD-src-7f92055123c4be565e54b2e37be01cfdcdc56b97.tar.gz
Fix PAP, CHAP & LQR req (I broke the byte ordering when
I did the deflate re-org). Make PAP & CHAP negotiation prettier in the log file. If both PAP & CHAP are `enabled' and the peer NAKs CHAP suggesting PAP, be friendly and REQ PAP the next time. This is in line with the rfc.
Diffstat (limited to 'usr.sbin/ppp/chap.c')
-rw-r--r--usr.sbin/ppp/chap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c
index 1fb6d25..2668e46 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.25 1997/11/09 03:55:27 brian Exp $
+ * $Id: chap.c,v 1.26 1997/11/22 03:37:25 brian Exp $
*
* TODO:
*/
@@ -129,7 +129,7 @@ RecvChapTalk(struct fsmheader *chp, struct mbuf *bp)
name = cp + valsize;
namelen = arglen - valsize - 1;
name[namelen] = 0;
- LogPrintf(LogPHASE, " Valsize = %d, Name = %s\n", valsize, name);
+ LogPrintf(LogLCP, " Valsize = %d, Name = \"%s\"\n", valsize, name);
switch (chp->code) {
case CHAP_CHALLENGE:
OpenPOWER on IntegriCloud