patch-2.4.22 linux-2.4.22/drivers/net/ppp_deflate.c

Next file: linux-2.4.22/drivers/net/ppp_generic.c
Previous file: linux-2.4.22/drivers/net/plip.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/net/ppp_deflate.c linux-2.4.22/drivers/net/ppp_deflate.c
@@ -394,10 +394,10 @@
 
 	/* 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;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)