1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
7 #define IPCOMP_SCRATCH_SIZE 65400
13 struct crypto_comp
* __percpu
*tfms
;
20 int ipcomp_input(struct xfrm_state
*x
, struct sk_buff
*skb
);
21 int ipcomp_output(struct xfrm_state
*x
, struct sk_buff
*skb
);
22 void ipcomp_destroy(struct xfrm_state
*x
);
23 int ipcomp_init_state(struct xfrm_state
*x
);
25 static inline struct ip_comp_hdr
*ip_comp_hdr(const struct sk_buff
*skb
)
27 return (struct ip_comp_hdr
*)skb_transport_header(skb
);