diff options
-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); /* |