ppp_deflate.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. /*
  2. * ppp_deflate.c - interface the zlib procedures for Deflate compression
  3. * and decompression (as used by gzip) to the PPP code.
  4. *
  5. * Copyright 1994-1998 Paul Mackerras.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * version 2 as published by the Free Software Foundation.
  10. */
  11. #include <linux/module.h>
  12. #include <linux/slab.h>
  13. #include <linux/vmalloc.h>
  14. #include <linux/init.h>
  15. #include <linux/string.h>
  16. #include <linux/ppp_defs.h>
  17. #include <linux/ppp-comp.h>
  18. #include <linux/zlib.h>
  19. #include <asm/unaligned.h>
  20. /*
  21. * State for a Deflate (de)compressor.
  22. */
  23. struct ppp_deflate_state {
  24. int seqno;
  25. int w_size;
  26. int unit;
  27. int mru;
  28. int debug;
  29. z_stream strm;
  30. struct compstat stats;
  31. };
  32. #define DEFLATE_OVHD 2 /* Deflate overhead/packet */
  33. static void *z_comp_alloc(unsigned char *options, int opt_len);
  34. static void *z_decomp_alloc(unsigned char *options, int opt_len);
  35. static void z_comp_free(void *state);
  36. static void z_decomp_free(void *state);
  37. static int z_comp_init(void *state, unsigned char *options,
  38. int opt_len,
  39. int unit, int hdrlen, int debug);
  40. static int z_decomp_init(void *state, unsigned char *options,
  41. int opt_len,
  42. int unit, int hdrlen, int mru, int debug);
  43. static int z_compress(void *state, unsigned char *rptr,
  44. unsigned char *obuf,
  45. int isize, int osize);
  46. static void z_incomp(void *state, unsigned char *ibuf, int icnt);
  47. static int z_decompress(void *state, unsigned char *ibuf,
  48. int isize, unsigned char *obuf, int osize);
  49. static void z_comp_reset(void *state);
  50. static void z_decomp_reset(void *state);
  51. static void z_comp_stats(void *state, struct compstat *stats);
  52. /**
  53. * z_comp_free - free the memory used by a compressor
  54. * @arg: pointer to the private state for the compressor.
  55. */
  56. static void z_comp_free(void *arg)
  57. {
  58. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  59. if (state) {
  60. zlib_deflateEnd(&state->strm);
  61. vfree(state->strm.workspace);
  62. kfree(state);
  63. }
  64. }
  65. /**
  66. * z_comp_alloc - allocate space for a compressor.
  67. * @options: pointer to CCP option data
  68. * @opt_len: length of the CCP option at @options.
  69. *
  70. * The @options pointer points to the a buffer containing the
  71. * CCP option data for the compression being negotiated. It is
  72. * formatted according to RFC1979, and describes the window
  73. * size that the peer is requesting that we use in compressing
  74. * data to be sent to it.
  75. *
  76. * Returns the pointer to the private state for the compressor,
  77. * or NULL if we could not allocate enough memory.
  78. */
  79. static void *z_comp_alloc(unsigned char *options, int opt_len)
  80. {
  81. struct ppp_deflate_state *state;
  82. int w_size;
  83. if (opt_len != CILEN_DEFLATE ||
  84. (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT) ||
  85. options[1] != CILEN_DEFLATE ||
  86. DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL ||
  87. options[3] != DEFLATE_CHK_SEQUENCE)
  88. return NULL;
  89. w_size = DEFLATE_SIZE(options[2]);
  90. if (w_size < DEFLATE_MIN_SIZE || w_size > DEFLATE_MAX_SIZE)
  91. return NULL;
  92. state = kzalloc(sizeof(*state),
  93. GFP_KERNEL);
  94. if (state == NULL)
  95. return NULL;
  96. state->strm.next_in = NULL;
  97. state->w_size = w_size;
  98. state->strm.workspace = vmalloc(zlib_deflate_workspacesize(-w_size, 8));
  99. if (state->strm.workspace == NULL)
  100. goto out_free;
  101. if (zlib_deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION,
  102. DEFLATE_METHOD_VAL, -w_size, 8, Z_DEFAULT_STRATEGY)
  103. != Z_OK)
  104. goto out_free;
  105. return (void *) state;
  106. out_free:
  107. z_comp_free(state);
  108. return NULL;
  109. }
  110. /**
  111. * z_comp_init - initialize a previously-allocated compressor.
  112. * @arg: pointer to the private state for the compressor
  113. * @options: pointer to the CCP option data describing the
  114. * compression that was negotiated with the peer
  115. * @opt_len: length of the CCP option data at @options
  116. * @unit: PPP unit number for diagnostic messages
  117. * @hdrlen: ignored (present for backwards compatibility)
  118. * @debug: debug flag; if non-zero, debug messages are printed.
  119. *
  120. * The CCP options described by @options must match the options
  121. * specified when the compressor was allocated. The compressor
  122. * history is reset. Returns 0 for failure (CCP options don't
  123. * match) or 1 for success.
  124. */
  125. static int z_comp_init(void *arg, unsigned char *options, int opt_len,
  126. int unit, int hdrlen, int debug)
  127. {
  128. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  129. if (opt_len < CILEN_DEFLATE ||
  130. (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT) ||
  131. options[1] != CILEN_DEFLATE ||
  132. DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL ||
  133. DEFLATE_SIZE(options[2]) != state->w_size ||
  134. options[3] != DEFLATE_CHK_SEQUENCE)
  135. return 0;
  136. state->seqno = 0;
  137. state->unit = unit;
  138. state->debug = debug;
  139. zlib_deflateReset(&state->strm);
  140. return 1;
  141. }
  142. /**
  143. * z_comp_reset - reset a previously-allocated compressor.
  144. * @arg: pointer to private state for the compressor.
  145. *
  146. * This clears the history for the compressor and makes it
  147. * ready to start emitting a new compressed stream.
  148. */
  149. static void z_comp_reset(void *arg)
  150. {
  151. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  152. state->seqno = 0;
  153. zlib_deflateReset(&state->strm);
  154. }
  155. /**
  156. * z_compress - compress a PPP packet with Deflate compression.
  157. * @arg: pointer to private state for the compressor
  158. * @rptr: uncompressed packet (input)
  159. * @obuf: compressed packet (output)
  160. * @isize: size of uncompressed packet
  161. * @osize: space available at @obuf
  162. *
  163. * Returns the length of the compressed packet, or 0 if the
  164. * packet is incompressible.
  165. */
  166. static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf,
  167. int isize, int osize)
  168. {
  169. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  170. int r, proto, off, olen, oavail;
  171. unsigned char *wptr;
  172. /*
  173. * Check that the protocol is in the range we handle.
  174. */
  175. proto = PPP_PROTOCOL(rptr);
  176. if (proto > 0x3fff || proto == 0xfd || proto == 0xfb)
  177. return 0;
  178. /* Don't generate compressed packets which are larger than
  179. the uncompressed packet. */
  180. if (osize > isize)
  181. osize = isize;
  182. wptr = obuf;
  183. /*
  184. * Copy over the PPP header and store the 2-byte sequence number.
  185. */
  186. wptr[0] = PPP_ADDRESS(rptr);
  187. wptr[1] = PPP_CONTROL(rptr);
  188. put_unaligned_be16(PPP_COMP, wptr + 2);
  189. wptr += PPP_HDRLEN;
  190. put_unaligned_be16(state->seqno, wptr);
  191. wptr += DEFLATE_OVHD;
  192. olen = PPP_HDRLEN + DEFLATE_OVHD;
  193. state->strm.next_out = wptr;
  194. state->strm.avail_out = oavail = osize - olen;
  195. ++state->seqno;
  196. off = (proto > 0xff) ? 2 : 3; /* skip 1st proto byte if 0 */
  197. rptr += off;
  198. state->strm.next_in = rptr;
  199. state->strm.avail_in = (isize - off);
  200. for (;;) {
  201. r = zlib_deflate(&state->strm, Z_PACKET_FLUSH);
  202. if (r != Z_OK) {
  203. if (state->debug)
  204. printk(KERN_ERR
  205. "z_compress: deflate returned %d\n", r);
  206. break;
  207. }
  208. if (state->strm.avail_out == 0) {
  209. olen += oavail;
  210. state->strm.next_out = NULL;
  211. state->strm.avail_out = oavail = 1000000;
  212. } else {
  213. break; /* all done */
  214. }
  215. }
  216. olen += oavail - state->strm.avail_out;
  217. /*
  218. * See if we managed to reduce the size of the packet.
  219. */
  220. if (olen < isize && olen <= osize) {
  221. state->stats.comp_bytes += olen;
  222. state->stats.comp_packets++;
  223. } else {
  224. state->stats.inc_bytes += isize;
  225. state->stats.inc_packets++;
  226. olen = 0;
  227. }
  228. state->stats.unc_bytes += isize;
  229. state->stats.unc_packets++;
  230. return olen;
  231. }
  232. /**
  233. * z_comp_stats - return compression statistics for a compressor
  234. * or decompressor.
  235. * @arg: pointer to private space for the (de)compressor
  236. * @stats: pointer to a struct compstat to receive the result.
  237. */
  238. static void z_comp_stats(void *arg, struct compstat *stats)
  239. {
  240. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  241. *stats = state->stats;
  242. }
  243. /**
  244. * z_decomp_free - Free the memory used by a decompressor.
  245. * @arg: pointer to private space for the decompressor.
  246. */
  247. static void z_decomp_free(void *arg)
  248. {
  249. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  250. if (state) {
  251. zlib_inflateEnd(&state->strm);
  252. vfree(state->strm.workspace);
  253. kfree(state);
  254. }
  255. }
  256. /**
  257. * z_decomp_alloc - allocate space for a decompressor.
  258. * @options: pointer to CCP option data
  259. * @opt_len: length of the CCP option at @options.
  260. *
  261. * The @options pointer points to the a buffer containing the
  262. * CCP option data for the compression being negotiated. It is
  263. * formatted according to RFC1979, and describes the window
  264. * size that we are requesting the peer to use in compressing
  265. * data to be sent to us.
  266. *
  267. * Returns the pointer to the private state for the decompressor,
  268. * or NULL if we could not allocate enough memory.
  269. */
  270. static void *z_decomp_alloc(unsigned char *options, int opt_len)
  271. {
  272. struct ppp_deflate_state *state;
  273. int w_size;
  274. if (opt_len != CILEN_DEFLATE ||
  275. (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT) ||
  276. options[1] != CILEN_DEFLATE ||
  277. DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL ||
  278. options[3] != DEFLATE_CHK_SEQUENCE)
  279. return NULL;
  280. w_size = DEFLATE_SIZE(options[2]);
  281. if (w_size < DEFLATE_MIN_SIZE || w_size > DEFLATE_MAX_SIZE)
  282. return NULL;
  283. state = kzalloc(sizeof(*state), GFP_KERNEL);
  284. if (state == NULL)
  285. return NULL;
  286. state->w_size = w_size;
  287. state->strm.next_out = NULL;
  288. state->strm.workspace = vmalloc(zlib_inflate_workspacesize());
  289. if (state->strm.workspace == NULL)
  290. goto out_free;
  291. if (zlib_inflateInit2(&state->strm, -w_size) != Z_OK)
  292. goto out_free;
  293. return (void *) state;
  294. out_free:
  295. z_decomp_free(state);
  296. return NULL;
  297. }
  298. /**
  299. * z_decomp_init - initialize a previously-allocated decompressor.
  300. * @arg: pointer to the private state for the decompressor
  301. * @options: pointer to the CCP option data describing the
  302. * compression that was negotiated with the peer
  303. * @opt_len: length of the CCP option data at @options
  304. * @unit: PPP unit number for diagnostic messages
  305. * @hdrlen: ignored (present for backwards compatibility)
  306. * @mru: maximum length of decompressed packets
  307. * @debug: debug flag; if non-zero, debug messages are printed.
  308. *
  309. * The CCP options described by @options must match the options
  310. * specified when the decompressor was allocated. The decompressor
  311. * history is reset. Returns 0 for failure (CCP options don't
  312. * match) or 1 for success.
  313. */
  314. static int z_decomp_init(void *arg, unsigned char *options, int opt_len,
  315. int unit, int hdrlen, int mru, int debug)
  316. {
  317. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  318. if (opt_len < CILEN_DEFLATE ||
  319. (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT) ||
  320. options[1] != CILEN_DEFLATE ||
  321. DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL ||
  322. DEFLATE_SIZE(options[2]) != state->w_size ||
  323. options[3] != DEFLATE_CHK_SEQUENCE)
  324. return 0;
  325. state->seqno = 0;
  326. state->unit = unit;
  327. state->debug = debug;
  328. state->mru = mru;
  329. zlib_inflateReset(&state->strm);
  330. return 1;
  331. }
  332. /**
  333. * z_decomp_reset - reset a previously-allocated decompressor.
  334. * @arg: pointer to private state for the decompressor.
  335. *
  336. * This clears the history for the decompressor and makes it
  337. * ready to receive a new compressed stream.
  338. */
  339. static void z_decomp_reset(void *arg)
  340. {
  341. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  342. state->seqno = 0;
  343. zlib_inflateReset(&state->strm);
  344. }
  345. /**
  346. * z_decompress - decompress a Deflate-compressed packet.
  347. * @arg: pointer to private state for the decompressor
  348. * @ibuf: pointer to input (compressed) packet data
  349. * @isize: length of input packet
  350. * @obuf: pointer to space for output (decompressed) packet
  351. * @osize: amount of space available at @obuf
  352. *
  353. * Because of patent problems, we return DECOMP_ERROR for errors
  354. * found by inspecting the input data and for system problems, but
  355. * DECOMP_FATALERROR for any errors which could possibly be said to
  356. * be being detected "after" decompression. For DECOMP_ERROR,
  357. * we can issue a CCP reset-request; for DECOMP_FATALERROR, we may be
  358. * infringing a patent of Motorola's if we do, so we take CCP down
  359. * instead.
  360. *
  361. * Given that the frame has the correct sequence number and a good FCS,
  362. * errors such as invalid codes in the input most likely indicate a
  363. * bug, so we return DECOMP_FATALERROR for them in order to turn off
  364. * compression, even though they are detected by inspecting the input.
  365. */
  366. static int z_decompress(void *arg, unsigned char *ibuf, int isize,
  367. unsigned char *obuf, int osize)
  368. {
  369. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  370. int olen, seq, r;
  371. int decode_proto, overflow;
  372. unsigned char overflow_buf[1];
  373. if (isize <= PPP_HDRLEN + DEFLATE_OVHD) {
  374. if (state->debug)
  375. printk(KERN_DEBUG "z_decompress%d: short pkt (%d)\n",
  376. state->unit, isize);
  377. return DECOMP_ERROR;
  378. }
  379. /* Check the sequence number. */
  380. seq = get_unaligned_be16(ibuf + PPP_HDRLEN);
  381. if (seq != (state->seqno & 0xffff)) {
  382. if (state->debug)
  383. printk(KERN_DEBUG "z_decompress%d: bad seq # %d, expected %d\n",
  384. state->unit, seq, state->seqno & 0xffff);
  385. return DECOMP_ERROR;
  386. }
  387. ++state->seqno;
  388. /*
  389. * Fill in the first part of the PPP header. The protocol field
  390. * comes from the decompressed data.
  391. */
  392. obuf[0] = PPP_ADDRESS(ibuf);
  393. obuf[1] = PPP_CONTROL(ibuf);
  394. obuf[2] = 0;
  395. /*
  396. * Set up to call inflate. We set avail_out to 1 initially so we can
  397. * look at the first byte of the output and decide whether we have
  398. * a 1-byte or 2-byte protocol field.
  399. */
  400. state->strm.next_in = ibuf + PPP_HDRLEN + DEFLATE_OVHD;
  401. state->strm.avail_in = isize - (PPP_HDRLEN + DEFLATE_OVHD);
  402. state->strm.next_out = obuf + 3;
  403. state->strm.avail_out = 1;
  404. decode_proto = 1;
  405. overflow = 0;
  406. /*
  407. * Call inflate, supplying more input or output as needed.
  408. */
  409. for (;;) {
  410. r = zlib_inflate(&state->strm, Z_PACKET_FLUSH);
  411. if (r != Z_OK) {
  412. if (state->debug)
  413. printk(KERN_DEBUG "z_decompress%d: inflate returned %d (%s)\n",
  414. state->unit, r, (state->strm.msg? state->strm.msg: ""));
  415. return DECOMP_FATALERROR;
  416. }
  417. if (state->strm.avail_out != 0)
  418. break; /* all done */
  419. if (decode_proto) {
  420. state->strm.avail_out = osize - PPP_HDRLEN;
  421. if ((obuf[3] & 1) == 0) {
  422. /* 2-byte protocol field */
  423. obuf[2] = obuf[3];
  424. --state->strm.next_out;
  425. ++state->strm.avail_out;
  426. }
  427. decode_proto = 0;
  428. } else if (!overflow) {
  429. /*
  430. * We've filled up the output buffer; the only way to
  431. * find out whether inflate has any more characters
  432. * left is to give it another byte of output space.
  433. */
  434. state->strm.next_out = overflow_buf;
  435. state->strm.avail_out = 1;
  436. overflow = 1;
  437. } else {
  438. if (state->debug)
  439. printk(KERN_DEBUG "z_decompress%d: ran out of mru\n",
  440. state->unit);
  441. return DECOMP_FATALERROR;
  442. }
  443. }
  444. if (decode_proto) {
  445. if (state->debug)
  446. printk(KERN_DEBUG "z_decompress%d: didn't get proto\n",
  447. state->unit);
  448. return DECOMP_ERROR;
  449. }
  450. olen = osize + overflow - state->strm.avail_out;
  451. state->stats.unc_bytes += olen;
  452. state->stats.unc_packets++;
  453. state->stats.comp_bytes += isize;
  454. state->stats.comp_packets++;
  455. return olen;
  456. }
  457. /**
  458. * z_incomp - add incompressible input data to the history.
  459. * @arg: pointer to private state for the decompressor
  460. * @ibuf: pointer to input packet data
  461. * @icnt: length of input data.
  462. */
  463. static void z_incomp(void *arg, unsigned char *ibuf, int icnt)
  464. {
  465. struct ppp_deflate_state *state = (struct ppp_deflate_state *) arg;
  466. int proto, r;
  467. /*
  468. * Check that the protocol is one we handle.
  469. */
  470. proto = PPP_PROTOCOL(ibuf);
  471. if (proto > 0x3fff || proto == 0xfd || proto == 0xfb)
  472. return;
  473. ++state->seqno;
  474. /*
  475. * We start at the either the 1st or 2nd byte of the protocol field,
  476. * depending on whether the protocol value is compressible.
  477. */
  478. state->strm.next_in = ibuf + 3;
  479. state->strm.avail_in = icnt - 3;
  480. if (proto > 0xff) {
  481. --state->strm.next_in;
  482. ++state->strm.avail_in;
  483. }
  484. r = zlib_inflateIncomp(&state->strm);
  485. if (r != Z_OK) {
  486. /* gak! */
  487. if (state->debug) {
  488. printk(KERN_DEBUG "z_incomp%d: inflateIncomp returned %d (%s)\n",
  489. state->unit, r, (state->strm.msg? state->strm.msg: ""));
  490. }
  491. return;
  492. }
  493. /*
  494. * Update stats.
  495. */
  496. state->stats.inc_bytes += icnt;
  497. state->stats.inc_packets++;
  498. state->stats.unc_bytes += icnt;
  499. state->stats.unc_packets++;
  500. }
  501. /*************************************************************
  502. * Module interface table
  503. *************************************************************/
  504. /* These are in ppp_generic.c */
  505. extern int ppp_register_compressor (struct compressor *cp);
  506. extern void ppp_unregister_compressor (struct compressor *cp);
  507. /*
  508. * Procedures exported to if_ppp.c.
  509. */
  510. static struct compressor ppp_deflate = {
  511. .compress_proto = CI_DEFLATE,
  512. .comp_alloc = z_comp_alloc,
  513. .comp_free = z_comp_free,
  514. .comp_init = z_comp_init,
  515. .comp_reset = z_comp_reset,
  516. .compress = z_compress,
  517. .comp_stat = z_comp_stats,
  518. .decomp_alloc = z_decomp_alloc,
  519. .decomp_free = z_decomp_free,
  520. .decomp_init = z_decomp_init,
  521. .decomp_reset = z_decomp_reset,
  522. .decompress = z_decompress,
  523. .incomp = z_incomp,
  524. .decomp_stat = z_comp_stats,
  525. .owner = THIS_MODULE
  526. };
  527. static struct compressor ppp_deflate_draft = {
  528. .compress_proto = CI_DEFLATE_DRAFT,
  529. .comp_alloc = z_comp_alloc,
  530. .comp_free = z_comp_free,
  531. .comp_init = z_comp_init,
  532. .comp_reset = z_comp_reset,
  533. .compress = z_compress,
  534. .comp_stat = z_comp_stats,
  535. .decomp_alloc = z_decomp_alloc,
  536. .decomp_free = z_decomp_free,
  537. .decomp_init = z_decomp_init,
  538. .decomp_reset = z_decomp_reset,
  539. .decompress = z_decompress,
  540. .incomp = z_incomp,
  541. .decomp_stat = z_comp_stats,
  542. .owner = THIS_MODULE
  543. };
  544. static int __init deflate_init(void)
  545. {
  546. int answer = ppp_register_compressor(&ppp_deflate);
  547. if (answer == 0)
  548. printk(KERN_INFO
  549. "PPP Deflate Compression module registered\n");
  550. ppp_register_compressor(&ppp_deflate_draft);
  551. return answer;
  552. }
  553. static void __exit deflate_cleanup(void)
  554. {
  555. ppp_unregister_compressor(&ppp_deflate);
  556. ppp_unregister_compressor(&ppp_deflate_draft);
  557. }
  558. module_init(deflate_init);
  559. module_exit(deflate_cleanup);
  560. MODULE_LICENSE("Dual BSD/GPL");
  561. MODULE_ALIAS("ppp-compress-" __stringify(CI_DEFLATE));
  562. MODULE_ALIAS("ppp-compress-" __stringify(CI_DEFLATE_DRAFT));