~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to include/net/ipcomp.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _NET_IPCOMP_H
 
2
#define _NET_IPCOMP_H
 
3
 
 
4
#include <linux/types.h>
 
5
 
 
6
#define IPCOMP_SCRATCH_SIZE     65400
 
7
 
 
8
struct crypto_comp;
 
9
 
 
10
struct ipcomp_data {
 
11
        u16 threshold;
 
12
        struct crypto_comp * __percpu *tfms;
 
13
};
 
14
 
 
15
struct ip_comp_hdr;
 
16
struct sk_buff;
 
17
struct xfrm_state;
 
18
 
 
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);
 
23
 
 
24
static 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