]> git.hungrycats.org Git - linux/commit
[PPP]: Fix two bugs wrt. compression/decompression.
authorPaul Mackerras <paulus@samba.org>
Thu, 7 Aug 2003 09:58:15 +0000 (02:58 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Thu, 7 Aug 2003 09:58:15 +0000 (02:58 -0700)
commit5dbaaa44cd6bd132a7faf3b14a3e4267fdba9408
tree22692d2cf36882e4fdc4748c526deaf93431e5c7
parent524c95c1036732ba3554d2f49df029fba57c1429
[PPP]: Fix two bugs wrt. compression/decompression.

This patch fixes two bugs that were stopping PPP compression (and in
particular, Deflate compression) from working.

The first bug was pointed out by Richard Moats.  In the conversion to
use pskb_may_pull, we ended up with a bogus test which basically meant
that the kernel driver never saw the CCP conf-ack packets and thus
never enabled compression.

The second bug crept in with the change of DEFLATE_MIN_SIZE from 8 to
9.  Changing that definition had the unfortunate side-effect of
changing the way that the code interpreted the encoded Deflate
parameter bytes.  This meant that we were using the wrong window size,
twice what we had actually negotiated with the peer.
drivers/net/ppp_generic.c
include/linux/ppp-comp.h