Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2003-06-12 03:52:06 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-06-12 03:52:06 -0700
commit068990ad6dfdd3b46a8372675d92ccd9089ee27d (patch)
treefb319012ebbdd875d2f0ce27f1b80f76a37535f1
parentf1f080f892527bed86f794e037ed4874aa950737 (diff)
[PPP]: Fix PPP Deflate sequence number checking
-rw-r--r--drivers/net/ppp_deflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ppp_deflate.c b/drivers/net/ppp_deflate.c
index 14657acad571..7b029939be24 100644
--- a/drivers/net/ppp_deflate.c
+++ b/drivers/net/ppp_deflate.c
@@ -456,10 +456,10 @@ int z_decompress(void *arg, unsigned char *ibuf, int isize,
/* Check the sequence number. */
seq = (ibuf[PPP_HDRLEN] << 8) + ibuf[PPP_HDRLEN+1];
- if (seq != state->seqno) {
+ if (seq != (state->seqno & 0xffff)) {
if (state->debug)
printk(KERN_DEBUG "z_decompress%d: bad seq # %d, expected %d\n",
- state->unit, seq, state->seqno);
+ state->unit, seq, state->seqno & 0xffff);
return DECOMP_ERROR;
}
++state->seqno;