[Midnightbsd-cvs] src [8279] trunk/usr.sbin/ppp/lqr.c: some 3g modems return the wrong sig in ech packets
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Sep 17 17:58:26 EDT 2016
Revision: 8279
http://svnweb.midnightbsd.org/src/?rev=8279
Author: laffer1
Date: 2016-09-17 17:58:26 -0400 (Sat, 17 Sep 2016)
Log Message:
-----------
some 3g modems return the wrong sig in ech packets
Modified Paths:
--------------
trunk/usr.sbin/ppp/lqr.c
Modified: trunk/usr.sbin/ppp/lqr.c
===================================================================
--- trunk/usr.sbin/ppp/lqr.c 2016-09-17 21:57:45 UTC (rev 8278)
+++ trunk/usr.sbin/ppp/lqr.c 2016-09-17 21:58:26 UTC (rev 8279)
@@ -108,7 +108,8 @@
* die as a result.
*/
}
- if (lqr.signature == SIGNATURE) {
+ if (lqr.signature == SIGNATURE
+ || lqr.signature == lcp->want_magic) { /* some implementations return the wrong magic */
/* careful not to update lqm.echo.seq_recv with older values */
if ((hdlc->lqm.echo.seq_recv > (u_int32_t)0 - 5 && lqr.sequence < 5) ||
(hdlc->lqm.echo.seq_recv <= (u_int32_t)0 - 5 &&
More information about the Midnightbsd-cvs
mailing list