net: introduce sk_gfp_atomic() to allow addition of GFP flags depending on the indivi...
[linux/fpc-iii.git] / include / net / ipcomp.h
blobcc4f30cd7315e9778e49102823c03874a67c0ad1
1 #ifndef _NET_IPCOMP_H
2 #define _NET_IPCOMP_H
4 #include <linux/types.h>
6 #define IPCOMP_SCRATCH_SIZE 65400
8 struct crypto_comp;
10 struct ipcomp_data {
11 u16 threshold;
12 struct crypto_comp * __percpu *tfms;
15 struct ip_comp_hdr;
16 struct sk_buff;
17 struct xfrm_state;
19 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
20 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
21 void ipcomp_destroy(struct xfrm_state *x);
22 int ipcomp_init_state(struct xfrm_state *x);
24 static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
26 return (struct ip_comp_hdr *)skb_transport_header(skb);
29 #endif