ppp_deflate.c 18 KB

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