summaryrefslogtreecommitdiff
path: root/include/linux/ppp-comp.h
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-08-13 19:36:17 -0700
committerPatrick Mochel <mochel@osdl.org>2003-08-13 19:36:17 -0700
commit9bf76164abf0705fc03ffff552613f6da3b7af35 (patch)
tree87333531c8e5265201e1710f6923caaf8d8a94ab /include/linux/ppp-comp.h
parentf2df1a5f499f8d559f66900b0e3b3fbf52f88d49 (diff)
parent3b822c88f30d825810b4134bd6d5a156628c6c03 (diff)
Merge osdl.org:/home/mochel/src/kernel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/linux-2.5-power
Diffstat (limited to 'include/linux/ppp-comp.h')
-rw-r--r--include/linux/ppp-comp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/ppp-comp.h b/include/linux/ppp-comp.h
index 82dd01c38920..7227e653b3be 100644
--- a/include/linux/ppp-comp.h
+++ b/include/linux/ppp-comp.h
@@ -185,10 +185,9 @@ struct compressor {
#define DEFLATE_MIN_SIZE 9
#define DEFLATE_MAX_SIZE 15
#define DEFLATE_METHOD_VAL 8
-#define DEFLATE_SIZE(x) (((x) >> 4) + DEFLATE_MIN_SIZE)
+#define DEFLATE_SIZE(x) (((x) >> 4) + 8)
#define DEFLATE_METHOD(x) ((x) & 0x0F)
-#define DEFLATE_MAKE_OPT(w) ((((w) - DEFLATE_MIN_SIZE) << 4) \
- + DEFLATE_METHOD_VAL)
+#define DEFLATE_MAKE_OPT(w) ((((w) - 8) << 4) + DEFLATE_METHOD_VAL)
#define DEFLATE_CHK_SEQUENCE 0
/*