| /* SPDX-License-Identifier: GPL-2.0 */ |
| #include <linux/skbuff.h> |
| static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb) |
| return (struct ip_esp_hdr *)skb_transport_header(skb); |
| static inline void esp_output_fill_trailer(u8 *tail, int tfclen, int plen, __u8 proto) |
| for (i = 0; i < plen - 2; i++) |
| tail[plen - 2] = plen - 2; |
| int esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp); |
| int esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp); |
| int esp_input_done2(struct sk_buff *skb, int err); |
| int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp); |
| int esp6_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp); |
| int esp6_input_done2(struct sk_buff *skb, int err); |