diff options
author | joerg <joerg@FreeBSD.org> | 1995-09-09 13:23:53 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-09-09 13:23:53 +0000 |
commit | d0e134be28cd7384f23dd5f3531a191b12571b21 (patch) | |
tree | 4537b67b9a6645b3a5fe2441f6c2443438535721 /usr.sbin/ppp/fsm.c | |
parent | 07c20bb253580b2025a0ce7e3d6748f01d1b1f0e (diff) | |
download | FreeBSD-src-d0e134be28cd7384f23dd5f3531a191b12571b21.zip FreeBSD-src-d0e134be28cd7384f23dd5f3531a191b12571b21.tar.gz |
Be gentle and allow both magic's (the own one and the other side's
one) as a valid answer to an echo request. This makes the log less
noisy when connecting to Trumpet Winsock or FreeBSD 2.0.5's pppd. :)
Submitted by: melvin@zytek.com (Stephen Melvin)
Diffstat (limited to 'usr.sbin/ppp/fsm.c')
-rw-r--r-- | usr.sbin/ppp/fsm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c index 3df063a..8252b23 100644 --- a/usr.sbin/ppp/fsm.c +++ b/usr.sbin/ppp/fsm.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: fsm.c,v 1.2 1995/02/26 12:17:27 amurai Exp $ + * $Id: fsm.c,v 1.3 1995/05/30 03:50:32 rgrimes Exp $ * * TODO: * o Refer loglevel for log output @@ -689,7 +689,10 @@ struct mbuf *bp; lp = (u_long *)MBUF_CTOP(bp); magic = ntohl(*lp); - if (magic != 0 && magic != LcpInfo.his_magic) { +/* + * Tolerate echo replies with either magic number + */ + if (magic != 0 && magic != LcpInfo.his_magic && magic != LcpInfo.want_magic) { logprintf("RecvEchoRep: his magic is wrong! expect: %x got: %x\n", LcpInfo.his_magic, magic); /* |