Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _NET_IPCOMP_H
 3#define _NET_IPCOMP_H
 4
 5#include <linux/skbuff.h>
 6#include <linux/types.h>
 7
 8#define IPCOMP_SCRATCH_SIZE     65400
 9
10struct crypto_comp;
11struct ip_comp_hdr;
12
13struct ipcomp_data {
14	u16 threshold;
15	struct crypto_comp * __percpu *tfms;
16};
17
18struct ip_comp_hdr;
19struct sk_buff;
20struct xfrm_state;
21
22int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
23int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
24void ipcomp_destroy(struct xfrm_state *x);
25int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack);
26
27static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
28{
29	return (struct ip_comp_hdr *)skb_transport_header(skb);
30}
31
32#endif
v5.9
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _NET_IPCOMP_H
 3#define _NET_IPCOMP_H
 4
 
 5#include <linux/types.h>
 6
 7#define IPCOMP_SCRATCH_SIZE     65400
 8
 9struct crypto_comp;
 
10
11struct ipcomp_data {
12	u16 threshold;
13	struct crypto_comp * __percpu *tfms;
14};
15
16struct ip_comp_hdr;
17struct sk_buff;
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);
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
30#endif