blob: 330b74e813a9b834d2cb8b7e155fac7e02e8685b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _NET_IPCOMP_H
2#define _NET_IPCOMP_H
3
Herbert Xu9409f382006-08-06 19:49:12 +10004#include <linux/types.h>
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#define IPCOMP_SCRATCH_SIZE 65400
7
Herbert Xu87bdc482007-10-10 15:45:25 -07008struct crypto_comp;
9
Linus Torvalds1da177e2005-04-16 15:20:36 -070010struct ipcomp_data {
11 u16 threshold;
Herbert Xue4d5b792006-08-26 18:12:40 +100012 struct crypto_comp **tfms;
Linus Torvalds1da177e2005-04-16 15:20:36 -070013};
14
Herbert Xu87bdc482007-10-10 15:45:25 -070015struct ip_comp_hdr;
16struct sk_buff;
17
18static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
19{
20 return (struct ip_comp_hdr *)skb_transport_header(skb);
21}
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#endif