1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/skbuff.h>
7 #define ESP_SKB_FRAG_MAXSIZE (PAGE_SIZE << SKB_FRAG_PAGE_ORDER)
11 static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb)
13 return (struct ip_esp_hdr *)skb_transport_header(skb);
17 struct ip_esp_hdr *esph;
29 int esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
30 int esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
31 int esp_input_done2(struct sk_buff *skb, int err);
32 int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
33 int esp6_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
34 int esp6_input_done2(struct sk_buff *skb, int err);