diff options
author | brian <brian@FreeBSD.org> | 2000-05-22 08:23:13 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-05-22 08:23:13 +0000 |
commit | 4e4578620b262ec1cb43f46726217b256ec5bf8b (patch) | |
tree | c2d7cbb645096f721a0040d2df4dd887c25d5873 /usr.sbin/ppp/mp.c | |
parent | c2ff59c91600056a533c867eead61cde58e8818d (diff) | |
download | FreeBSD-src-4e4578620b262ec1cb43f46726217b256ec5bf8b.zip FreeBSD-src-4e4578620b262ec1cb43f46726217b256ec5bf8b.tar.gz |
Be more verbose when a second link doesn't match the first because the
peer enddisc/authname is different.
Diffstat (limited to 'usr.sbin/ppp/mp.c')
-rw-r--r-- | usr.sbin/ppp/mp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/ppp/mp.c b/usr.sbin/ppp/mp.c index 8f9173a..579e1d2 100644 --- a/usr.sbin/ppp/mp.c +++ b/usr.sbin/ppp/mp.c @@ -292,6 +292,12 @@ mp_Up(struct mp *mp, struct datalink *dl) /* We're adding a link - do a last validation on our parameters */ if (!peerid_Equal(&dl->peer, &mp->peer)) { log_Printf(LogPHASE, "%s: Inappropriate peer !\n", dl->name); + log_Printf(LogPHASE, " Attached to peer %s/%s\n", mp->peer.authname, + mp_Enddisc(mp->peer.enddisc.class, mp->peer.enddisc.address, + mp->peer.enddisc.len)); + log_Printf(LogPHASE, " New link is peer %s/%s\n", dl->peer.authname, + mp_Enddisc(dl->peer.enddisc.class, dl->peer.enddisc.address, + dl->peer.enddisc.len)); return MP_FAILED; } if (mp->local_mrru != lcp->want_mrru || |