xref: /linux/include/net/ipcomp.h (revision 4f9786035f9e519db41375818e1d0b5f20da2f10)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NET_IPCOMP_H
3 #define _NET_IPCOMP_H
4 
5 #include <linux/skbuff.h>
6 
7 struct ip_comp_hdr;
8 struct netlink_ext_ack;
9 struct xfrm_state;
10 
11 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
12 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
13 void ipcomp_destroy(struct xfrm_state *x);
14 int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack);
15 
16 static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
17 {
18 	return (struct ip_comp_hdr *)skb_transport_header(skb);
19 }
20 
21 #endif
22