]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/net/ipcomp.h
8139cp: fix checksum broken
[net-next-2.6.git] / include / net / ipcomp.h
CommitLineData
1da177e4
LT
1#ifndef _NET_IPCOMP_H
2#define _NET_IPCOMP_H
3
9409f38a
HX
4#include <linux/types.h>
5
1da177e4
LT
6#define IPCOMP_SCRATCH_SIZE 65400
7
87bdc48d
HX
8struct crypto_comp;
9
1da177e4
LT
10struct ipcomp_data {
11 u16 threshold;
7d720c3e 12 struct crypto_comp * __percpu *tfms;
1da177e4
LT
13};
14
87bdc48d
HX
15struct ip_comp_hdr;
16struct sk_buff;
6fccab67
HX
17struct 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);
87bdc48d
HX
23
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
1da177e4 29#endif