Blame view

include/net/esp.h 877 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
  #ifndef _NET_ESP_H
  #define _NET_ESP_H
38320c70d   Herbert Xu   [IPSEC]: Use cryp...
4
  #include <linux/skbuff.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
5

87bdc48d3   Herbert Xu   [IPSEC]: Get rid ...
6
7
8
9
10
11
  struct ip_esp_hdr;
  
  static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb)
  {
  	return (struct ip_esp_hdr *)skb_transport_header(skb);
  }
fca11ebde   Steffen Klassert   esp4: Reorganize ...
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  struct esp_info {
  	struct	ip_esp_hdr *esph;
  	__be64	seqno;
  	int	tfclen;
  	int	tailen;
  	int	plen;
  	int	clen;
  	int 	len;
  	int 	nfrags;
  	__u8	proto;
  	bool	inplace;
  };
  
  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);
383d0350f   Steffen Klassert   esp6: Reorganize ...
28
29
30
  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);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
31
  #endif