]> Git Repo - linux.git/blame - include/net/esp.h
Merge tag 'xfs-4.12-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux.git] / include / net / esp.h
CommitLineData
1da177e4
LT
1#ifndef _NET_ESP_H
2#define _NET_ESP_H
3
38320c70 4#include <linux/skbuff.h>
1da177e4 5
87bdc48d
HX
6struct ip_esp_hdr;
7
8static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb)
9{
10 return (struct ip_esp_hdr *)skb_transport_header(skb);
11}
12
fca11ebd
SK
13struct esp_info {
14 struct ip_esp_hdr *esph;
15 __be64 seqno;
16 int tfclen;
17 int tailen;
18 int plen;
19 int clen;
20 int len;
21 int nfrags;
22 __u8 proto;
23 bool inplace;
24};
25
26int esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
27int esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
28int esp_input_done2(struct sk_buff *skb, int err);
383d0350
SK
29int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
30int esp6_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
31int esp6_input_done2(struct sk_buff *skb, int err);
1da177e4 32#endif
This page took 0.834636 seconds and 4 git commands to generate.