• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/net/
1#ifndef _NET_IPCOMP_H
2#define _NET_IPCOMP_H
3
4#include <linux/types.h>
5
6#define IPCOMP_SCRATCH_SIZE     65400
7
8struct crypto_comp;
9
10struct ipcomp_data {
11	u16 threshold;
12	struct crypto_comp * __percpu *tfms;
13};
14
15struct ip_comp_hdr;
16struct sk_buff;
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);
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
29#endif
30