]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/net/ipcomp.h
netfilter: uapi: Avoid undefined left-shift in xt_sctp.h
[mirror_ubuntu-bionic-kernel.git] / include / net / ipcomp.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _NET_IPCOMP_H
3#define _NET_IPCOMP_H
4
9409f38a
HX
5#include <linux/types.h>
6
1da177e4
LT
7#define IPCOMP_SCRATCH_SIZE 65400
8
87bdc48d
HX
9struct crypto_comp;
10
1da177e4
LT
11struct ipcomp_data {
12 u16 threshold;
7d720c3e 13 struct crypto_comp * __percpu *tfms;
1da177e4
LT
14};
15
87bdc48d
HX
16struct ip_comp_hdr;
17struct sk_buff;
6fccab67
HX
18struct xfrm_state;
19
20int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
21int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
22void ipcomp_destroy(struct xfrm_state *x);
23int ipcomp_init_state(struct xfrm_state *x);
87bdc48d
HX
24
25static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
26{
27 return (struct ip_comp_hdr *)skb_transport_header(skb);
28}
29
1da177e4 30#endif