blob: ca1b5fdb8d31387d6400e4188c486b8100059314 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * IP Payload Compression Protocol (IPComp) - RFC3173.
3 *
4 * Copyright (c) 2003 James Morris <jmorris@intercode.com.au>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +09008 * Software Foundation; either version 2 of the License, or (at your option)
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 * any later version.
10 *
11 * Todo:
12 * - Tunable compression parameters.
13 * - Compression stats.
14 * - Adaptive compression.
15 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#include <linux/module.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#include <asm/semaphore.h>
18#include <linux/crypto.h>
19#include <linux/pfkeyv2.h>
20#include <linux/percpu.h>
21#include <linux/smp.h>
22#include <linux/list.h>
23#include <linux/vmalloc.h>
24#include <linux/rtnetlink.h>
Arjan van de Ven4a3e2f72006-03-20 22:33:17 -080025#include <linux/mutex.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#include <net/ip.h>
27#include <net/xfrm.h>
28#include <net/icmp.h>
29#include <net/ipcomp.h>
Arnaldo Carvalho de Melo14c85022005-12-27 02:43:12 -020030#include <net/protocol.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
32struct ipcomp_tfms {
33 struct list_head list;
Herbert Xue4d5b792006-08-26 18:12:40 +100034 struct crypto_comp **tfms;
Linus Torvalds1da177e2005-04-16 15:20:36 -070035 int users;
36};
37
Arjan van de Ven4a3e2f72006-03-20 22:33:17 -080038static DEFINE_MUTEX(ipcomp_resource_mutex);
Linus Torvalds1da177e2005-04-16 15:20:36 -070039static void **ipcomp_scratches;
40static int ipcomp_scratch_users;
41static LIST_HEAD(ipcomp_tfms_list);
42
43static int ipcomp_decompress(struct xfrm_state *x, struct sk_buff *skb)
44{
Linus Torvalds1da177e2005-04-16 15:20:36 -070045 struct ipcomp_data *ipcd = x->data;
Arnaldo Carvalho de Meloeddc9ec2007-04-20 22:47:35 -070046 const int plen = skb->len;
47 int dlen = IPCOMP_SCRATCH_SIZE;
48 const u8 *start = skb->data;
49 const int cpu = get_cpu();
50 u8 *scratch = *per_cpu_ptr(ipcomp_scratches, cpu);
51 struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu);
52 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen);
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +090053
Linus Torvalds1da177e2005-04-16 15:20:36 -070054 if (err)
55 goto out;
56
57 if (dlen < (plen + sizeof(struct ip_comp_hdr))) {
58 err = -EINVAL;
59 goto out;
60 }
61
62 err = pskb_expand_head(skb, 0, dlen - plen, GFP_ATOMIC);
63 if (err)
64 goto out;
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +090065
Herbert Xuda952312006-07-11 13:50:09 -070066 skb->truesize += dlen - plen;
67 __skb_put(skb, dlen - plen);
Arnaldo Carvalho de Melo27d7ff42007-03-31 11:55:19 -030068 skb_copy_to_linear_data(skb, scratch, dlen);
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +090069out:
Linus Torvalds1da177e2005-04-16 15:20:36 -070070 put_cpu();
71 return err;
72}
73
Herbert Xue6956332006-04-01 00:52:46 -080074static int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb)
Linus Torvalds1da177e2005-04-16 15:20:36 -070075{
Herbert Xu364c6ba2006-06-09 16:10:40 -070076 int err = -ENOMEM;
Herbert Xu31a4ab92006-05-27 23:06:13 -070077 struct ip_comp_hdr *ipch;
Linus Torvalds1da177e2005-04-16 15:20:36 -070078
Herbert Xu364c6ba2006-06-09 16:10:40 -070079 if (skb_linearize_cow(skb))
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +090080 goto out;
Linus Torvalds1da177e2005-04-16 15:20:36 -070081
82 skb->ip_summed = CHECKSUM_NONE;
83
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +090084 /* Remove ipcomp header and decompress original payload */
Herbert Xu31a4ab92006-05-27 23:06:13 -070085 ipch = (void *)skb->data;
Arnaldo Carvalho de Melob0e380b2007-04-10 21:21:55 -070086 skb->transport_header = skb->network_header + sizeof(*ipch);
Herbert Xu31a4ab92006-05-27 23:06:13 -070087 __skb_pull(skb, sizeof(*ipch));
Linus Torvalds1da177e2005-04-16 15:20:36 -070088 err = ipcomp_decompress(x, skb);
Herbert Xu631a6692007-10-10 15:46:21 -070089 if (err)
90 goto out;
91
92 err = ipch->nexthdr;
Linus Torvalds1da177e2005-04-16 15:20:36 -070093
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +090094out:
Linus Torvalds1da177e2005-04-16 15:20:36 -070095 return err;
96}
97
98static int ipcomp_compress(struct xfrm_state *x, struct sk_buff *skb)
99{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700100 struct ipcomp_data *ipcd = x->data;
Herbert Xuceb1eec2007-10-10 15:45:52 -0700101 const int plen = skb->len;
Arnaldo Carvalho de Meloeddc9ec2007-04-20 22:47:35 -0700102 int dlen = IPCOMP_SCRATCH_SIZE;
Herbert Xuceb1eec2007-10-10 15:45:52 -0700103 u8 *start = skb->data;
Arnaldo Carvalho de Meloeddc9ec2007-04-20 22:47:35 -0700104 const int cpu = get_cpu();
105 u8 *scratch = *per_cpu_ptr(ipcomp_scratches, cpu);
106 struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu);
107 int err = crypto_comp_compress(tfm, start, plen, scratch, &dlen);
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +0900108
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109 if (err)
110 goto out;
111
112 if ((dlen + sizeof(struct ip_comp_hdr)) >= plen) {
113 err = -EMSGSIZE;
114 goto out;
115 }
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +0900116
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117 memcpy(start + sizeof(struct ip_comp_hdr), scratch, dlen);
118 put_cpu();
119
Herbert Xuceb1eec2007-10-10 15:45:52 -0700120 pskb_trim(skb, dlen + sizeof(struct ip_comp_hdr));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121 return 0;
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +0900122
123out:
Linus Torvalds1da177e2005-04-16 15:20:36 -0700124 put_cpu();
125 return err;
126}
127
128static int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb)
129{
130 int err;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131 struct ip_comp_hdr *ipch;
132 struct ipcomp_data *ipcd = x->data;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700133
Herbert Xuceb1eec2007-10-10 15:45:52 -0700134 if (skb->len < ipcd->threshold) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135 /* Don't bother compressing */
136 goto out_ok;
137 }
138
Herbert Xu364c6ba2006-06-09 16:10:40 -0700139 if (skb_linearize_cow(skb))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700140 goto out_ok;
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +0900141
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142 err = ipcomp_compress(x, skb);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143
144 if (err) {
145 goto out_ok;
146 }
147
148 /* Install ipcomp header, convert into ipcomp datagram. */
Herbert Xu87bdc482007-10-10 15:45:25 -0700149 ipch = ip_comp_hdr(skb);
Herbert Xu37fedd32007-10-10 15:44:44 -0700150 ipch->nexthdr = *skb_mac_header(skb);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700151 ipch->flags = 0;
152 ipch->cpi = htons((u16 )ntohl(x->id.spi));
Herbert Xu37fedd32007-10-10 15:44:44 -0700153 *skb_mac_header(skb) = IPPROTO_COMP;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154out_ok:
Herbert Xuceb1eec2007-10-10 15:45:52 -0700155 skb_push(skb, -skb_network_offset(skb));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700156 return 0;
157}
158
159static void ipcomp4_err(struct sk_buff *skb, u32 info)
160{
Al Viroa94cfd12006-09-27 18:47:24 -0700161 __be32 spi;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162 struct iphdr *iph = (struct iphdr *)skb->data;
163 struct ip_comp_hdr *ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2));
164 struct xfrm_state *x;
165
Arnaldo Carvalho de Melo88c76642007-03-13 14:43:18 -0300166 if (icmp_hdr(skb)->type != ICMP_DEST_UNREACH ||
167 icmp_hdr(skb)->code != ICMP_FRAG_NEEDED)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168 return;
169
Alexey Dobriyan4195f812006-05-22 16:53:22 -0700170 spi = htonl(ntohs(ipch->cpi));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171 x = xfrm_state_lookup((xfrm_address_t *)&iph->daddr,
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +0900172 spi, IPPROTO_COMP, AF_INET);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173 if (!x)
174 return;
Patrick McHardy64ce2072005-08-09 20:50:53 -0700175 NETDEBUG(KERN_DEBUG "pmtu discovery on SA IPCOMP/%08x/%u.%u.%u.%u\n",
176 spi, NIPQUAD(iph->daddr));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700177 xfrm_state_put(x);
178}
179
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +0900180/* We always hold one tunnel user reference to indicate a tunnel */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700181static struct xfrm_state *ipcomp_tunnel_create(struct xfrm_state *x)
182{
183 struct xfrm_state *t;
Diego Beltrami0a694522006-10-03 23:47:05 -0700184 u8 mode = XFRM_MODE_TUNNEL;
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +0900185
Linus Torvalds1da177e2005-04-16 15:20:36 -0700186 t = xfrm_state_alloc();
187 if (t == NULL)
188 goto out;
189
190 t->id.proto = IPPROTO_IPIP;
191 t->id.spi = x->props.saddr.a4;
192 t->id.daddr.a4 = x->id.daddr.a4;
193 memcpy(&t->sel, &x->sel, sizeof(t->sel));
194 t->props.family = AF_INET;
Diego Beltrami0a694522006-10-03 23:47:05 -0700195 if (x->props.mode == XFRM_MODE_BEET)
196 mode = x->props.mode;
197 t->props.mode = mode;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700198 t->props.saddr.a4 = x->props.saddr.a4;
199 t->props.flags = x->props.flags;
Herbert Xu72cb6962005-06-20 13:18:08 -0700200
201 if (xfrm_init_state(t))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700202 goto error;
203
Linus Torvalds1da177e2005-04-16 15:20:36 -0700204 atomic_set(&t->tunnel_users, 1);
205out:
206 return t;
207
208error:
209 t->km.state = XFRM_STATE_DEAD;
210 xfrm_state_put(t);
211 t = NULL;
212 goto out;
213}
214
215/*
Arjan van de Ven4a3e2f72006-03-20 22:33:17 -0800216 * Must be protected by xfrm_cfg_mutex. State and tunnel user references are
Linus Torvalds1da177e2005-04-16 15:20:36 -0700217 * always incremented on success.
218 */
219static int ipcomp_tunnel_attach(struct xfrm_state *x)
220{
221 int err = 0;
222 struct xfrm_state *t;
223
224 t = xfrm_state_lookup((xfrm_address_t *)&x->id.daddr.a4,
YOSHIFUJI Hideakie905a9e2007-02-09 23:24:47 +0900225 x->props.saddr.a4, IPPROTO_IPIP, AF_INET);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700226 if (!t) {
227 t = ipcomp_tunnel_create(x);
228 if (!t) {
229 err = -EINVAL;
230 goto out;
231 }
232 xfrm_state_insert(t);
233 xfrm_state_hold(t);
234 }
235 x->tunnel = t;
236 atomic_inc(&t->tunnel_users);
237out:
238 return err;
239}
240
241static void ipcomp_free_scratches(void)
242{
243 int i;
244 void **scratches;
245
246 if (--ipcomp_scratch_users)
247 return;
248
249 scratches = ipcomp_scratches;
250 if (!scratches)
251 return;
252
Jesper Juhl63903ca2006-04-18 14:51:44 -0700253 for_each_possible_cpu(i)
254 vfree(*per_cpu_ptr(scratches, i));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255
256 free_percpu(scratches);
257}
258
259static void **ipcomp_alloc_scratches(void)
260{
261 int i;
262 void **scratches;
263
264 if (ipcomp_scratch_users++)
265 return ipcomp_scratches;
266
267 scratches = alloc_percpu(void *);
268 if (!scratches)
269 return NULL;
270
271 ipcomp_scratches = scratches;
272
KAMEZAWA Hiroyuki6f912042006-04-10 22:52:50 -0700273 for_each_possible_cpu(i) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700274 void *scratch = vmalloc(IPCOMP_SCRATCH_SIZE);
275 if (!scratch)
276 return NULL;
277 *per_cpu_ptr(scratches, i) = scratch;
278 }
279
280 return scratches;
281}
282
Herbert Xue4d5b792006-08-26 18:12:40 +1000283static void ipcomp_free_tfms(struct crypto_comp **tfms)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700284{
285 struct ipcomp_tfms *pos;
286 int cpu;
287
288 list_for_each_entry(pos, &ipcomp_tfms_list, list) {
289 if (pos->tfms == tfms)
290 break;
291 }
292
293 BUG_TRAP(pos);
294
295 if (--pos->users)
296 return;
297
298 list_del(&pos->list);
299 kfree(pos);
300
301 if (!tfms)
302 return;
303
KAMEZAWA Hiroyuki6f912042006-04-10 22:52:50 -0700304 for_each_possible_cpu(cpu) {
Herbert Xue4d5b792006-08-26 18:12:40 +1000305 struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu);
306 crypto_free_comp(tfm);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700307 }
308 free_percpu(tfms);
309}
310
Herbert Xue4d5b792006-08-26 18:12:40 +1000311static struct crypto_comp **ipcomp_alloc_tfms(const char *alg_name)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700312{
313 struct ipcomp_tfms *pos;
Herbert Xue4d5b792006-08-26 18:12:40 +1000314 struct crypto_comp **tfms;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700315 int cpu;
316
317 /* This can be any valid CPU ID so we don't need locking. */
Herbert Xu6fc8b9e2005-08-18 14:36:59 -0700318 cpu = raw_smp_processor_id();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700319
320 list_for_each_entry(pos, &ipcomp_tfms_list, list) {
Herbert Xue4d5b792006-08-26 18:12:40 +1000321 struct crypto_comp *tfm;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700322
323 tfms = pos->tfms;
324 tfm = *per_cpu_ptr(tfms, cpu);
325
Herbert Xue4d5b792006-08-26 18:12:40 +1000326 if (!strcmp(crypto_comp_name(tfm), alg_name)) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700327 pos->users++;
328 return tfms;
329 }
330 }
331
332 pos = kmalloc(sizeof(*pos), GFP_KERNEL);
333 if (!pos)
334 return NULL;
335
336 pos->users = 1;
337 INIT_LIST_HEAD(&pos->list);
338 list_add(&pos->list, &ipcomp_tfms_list);
339
Herbert Xue4d5b792006-08-26 18:12:40 +1000340 pos->tfms = tfms = alloc_percpu(struct crypto_comp *);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700341 if (!tfms)
342 goto error;
343
KAMEZAWA Hiroyuki6f912042006-04-10 22:52:50 -0700344 for_each_possible_cpu(cpu) {
Herbert Xue4d5b792006-08-26 18:12:40 +1000345 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0,
346 CRYPTO_ALG_ASYNC);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700347 if (!tfm)
348 goto error;
349 *per_cpu_ptr(tfms, cpu) = tfm;
350 }
351
352 return tfms;
353
354error:
355 ipcomp_free_tfms(tfms);
356 return NULL;
357}
358
359static void ipcomp_free_data(struct ipcomp_data *ipcd)
360{
361 if (ipcd->tfms)
362 ipcomp_free_tfms(ipcd->tfms);
363 ipcomp_free_scratches();
364}
365
366static void ipcomp_destroy(struct xfrm_state *x)
367{
368 struct ipcomp_data *ipcd = x->data;
369 if (!ipcd)
370 return;
371 xfrm_state_delete_tunnel(x);
Arjan van de Ven4a3e2f72006-03-20 22:33:17 -0800372 mutex_lock(&ipcomp_resource_mutex);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700373 ipcomp_free_data(ipcd);
Arjan van de Ven4a3e2f72006-03-20 22:33:17 -0800374 mutex_unlock(&ipcomp_resource_mutex);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700375 kfree(ipcd);
376}
377
Herbert Xu72cb6962005-06-20 13:18:08 -0700378static int ipcomp_init_state(struct xfrm_state *x)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700379{
380 int err;
381 struct ipcomp_data *ipcd;
382 struct xfrm_algo_desc *calg_desc;
383
384 err = -EINVAL;
385 if (!x->calg)
386 goto out;
387
388 if (x->encap)
389 goto out;
390
391 err = -ENOMEM;
Panagiotis Issaris0da974f2006-07-21 14:51:30 -0700392 ipcd = kzalloc(sizeof(*ipcd), GFP_KERNEL);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700393 if (!ipcd)
394 goto out;
395
Linus Torvalds1da177e2005-04-16 15:20:36 -0700396 x->props.header_len = 0;
Masahide NAKAMURA7e49e6d2006-09-22 15:05:15 -0700397 if (x->props.mode == XFRM_MODE_TUNNEL)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700398 x->props.header_len += sizeof(struct iphdr);
399
Arjan van de Ven4a3e2f72006-03-20 22:33:17 -0800400 mutex_lock(&ipcomp_resource_mutex);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401 if (!ipcomp_alloc_scratches())
402 goto error;
403
404 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name);
405 if (!ipcd->tfms)
406 goto error;
Arjan van de Ven4a3e2f72006-03-20 22:33:17 -0800407 mutex_unlock(&ipcomp_resource_mutex);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700408
Masahide NAKAMURA7e49e6d2006-09-22 15:05:15 -0700409 if (x->props.mode == XFRM_MODE_TUNNEL) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700410 err = ipcomp_tunnel_attach(x);
411 if (err)
412 goto error_tunnel;
413 }
414
415 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0);
416 BUG_ON(!calg_desc);
417 ipcd->threshold = calg_desc->uinfo.comp.threshold;
418 x->data = ipcd;
419 err = 0;
420out:
421 return err;
422
423error_tunnel:
Arjan van de Ven4a3e2f72006-03-20 22:33:17 -0800424 mutex_lock(&ipcomp_resource_mutex);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700425error:
426 ipcomp_free_data(ipcd);
Arjan van de Ven4a3e2f72006-03-20 22:33:17 -0800427 mutex_unlock(&ipcomp_resource_mutex);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700428 kfree(ipcd);
429 goto out;
430}
431
432static struct xfrm_type ipcomp_type = {
433 .description = "IPCOMP4",
434 .owner = THIS_MODULE,
435 .proto = IPPROTO_COMP,
436 .init_state = ipcomp_init_state,
437 .destructor = ipcomp_destroy,
438 .input = ipcomp_input,
439 .output = ipcomp_output
440};
441
442static struct net_protocol ipcomp4_protocol = {
443 .handler = xfrm4_rcv,
444 .err_handler = ipcomp4_err,
445 .no_policy = 1,
446};
447
448static int __init ipcomp4_init(void)
449{
450 if (xfrm_register_type(&ipcomp_type, AF_INET) < 0) {
451 printk(KERN_INFO "ipcomp init: can't add xfrm type\n");
452 return -EAGAIN;
453 }
454 if (inet_add_protocol(&ipcomp4_protocol, IPPROTO_COMP) < 0) {
455 printk(KERN_INFO "ipcomp init: can't add protocol\n");
456 xfrm_unregister_type(&ipcomp_type, AF_INET);
457 return -EAGAIN;
458 }
459 return 0;
460}
461
462static void __exit ipcomp4_fini(void)
463{
464 if (inet_del_protocol(&ipcomp4_protocol, IPPROTO_COMP) < 0)
465 printk(KERN_INFO "ip ipcomp close: can't remove protocol\n");
466 if (xfrm_unregister_type(&ipcomp_type, AF_INET) < 0)
467 printk(KERN_INFO "ip ipcomp close: can't remove xfrm type\n");
468}
469
470module_init(ipcomp4_init);
471module_exit(ipcomp4_fini);
472
473MODULE_LICENSE("GPL");
474MODULE_DESCRIPTION("IP Payload Compression Protocol (IPComp) - RFC3173");
475MODULE_AUTHOR("James Morris <jmorris@intercode.com.au>");
476
Masahide NAKAMURAd3d6dd32007-06-26 23:57:49 -0700477MODULE_ALIAS_XFRM_TYPE(AF_INET, XFRM_PROTO_COMP);