diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ip.h | 6 | ||||
| -rw-r--r-- | include/linux/ipv6.h | 6 | ||||
| -rw-r--r-- | include/net/ipcomp.h | 12 | ||||
| -rw-r--r-- | include/net/ipv6.h | 1 |
4 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/ip.h b/include/linux/ip.h index 1d6cb15c94a2..ac117b884331 100644 --- a/include/linux/ip.h +++ b/include/linux/ip.h @@ -198,4 +198,10 @@ struct ip_esp_hdr { __u8 enc_data[0]; /* Variable len but >=8. Mind the 64 bit alignment! */ }; +struct ip_comp_hdr { + __u8 nexthdr; + __u8 flags; + __u16 cpi; +}; + #endif /* _LINUX_IP_H */ diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index f70e91028c96..50fdde2d8a9f 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -89,6 +89,12 @@ struct ipv6_esp_hdr { __u8 enc_data[0]; /* Length variable but >=8. Mind the 64 bit alignment! */ }; +struct ipv6_comp_hdr { + __u8 nexthdr; + __u8 flags; + __u16 cpi; +}; + /* * IPv6 fixed header * diff --git a/include/net/ipcomp.h b/include/net/ipcomp.h new file mode 100644 index 000000000000..e94a6488a7ee --- /dev/null +++ b/include/net/ipcomp.h @@ -0,0 +1,12 @@ +#ifndef _NET_IPCOMP_H +#define _NET_IPCOMP_H + +#define IPCOMP_SCRATCH_SIZE 65400 + +struct ipcomp_data { + u16 threshold; + u8 *scratch; + struct crypto_tfm *tfm; +}; + +#endif diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 754c7f36afda..bf0e5052f824 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -315,6 +315,7 @@ extern int ip6_build_xmit(struct sock *sk, unsigned length, struct ipv6_txoptions *opt, int hlimit, int flags); +extern int ip6_found_nexthdr(struct sk_buff *skb, u8 **nexthdr); extern int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), |
