blob: 2a1092abaa078c790a5203887e503b3278b02245 [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;
Herbert Xu6fccab62008-07-25 02:54:40 -070017struct xfrm_state;
18
19int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
20int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
21void ipcomp_destroy(struct xfrm_state *x);
22int ipcomp_init_state(struct xfrm_state *x);
Herbert Xu87bdc482007-10-10 15:45:25 -070023
24static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
25{
26 return (struct ip_comp_hdr *)skb_transport_header(skb);
27}
28
Linus Torvalds1da177e2005-04-16 15:20:36 -070029#endif