Blame view

include/net/ipcomp.h 620 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
  #ifndef _NET_IPCOMP_H
  #define _NET_IPCOMP_H
9409f38a0   Herbert Xu   [IPSEC]: Move lin...
3
  #include <linux/types.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4
  #define IPCOMP_SCRATCH_SIZE     65400
87bdc48d3   Herbert Xu   [IPSEC]: Get rid ...
5
  struct crypto_comp;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
6
7
  struct ipcomp_data {
  	u16 threshold;
7d720c3e4   Tejun Heo   percpu: add __per...
8
  	struct crypto_comp * __percpu *tfms;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
9
  };
87bdc48d3   Herbert Xu   [IPSEC]: Get rid ...
10
11
  struct ip_comp_hdr;
  struct sk_buff;
6fccab671   Herbert Xu   ipsec: ipcomp - M...
12
13
14
15
16
17
  struct xfrm_state;
  
  int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
  int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
  void ipcomp_destroy(struct xfrm_state *x);
  int ipcomp_init_state(struct xfrm_state *x);
87bdc48d3   Herbert Xu   [IPSEC]: Get rid ...
18
19
20
21
22
  
  static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
  {
  	return (struct ip_comp_hdr *)skb_transport_header(skb);
  }
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
23
  #endif