• Paul Mackerras's avatar
    [PPP]: Fix two bugs wrt. compression/decompression. · 5dbaaa44
    Paul Mackerras authored
    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.
    5dbaaa44
ppp-comp.h 6.33 KB