Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _NET_IPCOMP_H
3#define _NET_IPCOMP_H
4
5#include <linux/skbuff.h>
6
7struct ip_comp_hdr;
8struct netlink_ext_ack;
9struct xfrm_state;
10
11int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
12int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
13void ipcomp_destroy(struct xfrm_state *x);
14int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack);
15
16static 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