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
- Lines: 13
- Date:
2003-08-25 04:44:42.000000000 -0700
- Orig file:
linux-2.4.21/drivers/net/ppp_deflate.c
- Orig date:
2002-11-28 15:53:14.000000000 -0800
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)