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)
This commit is contained in:
parent
9cb8de8984
commit
303a291a13
@ -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);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user