706b740d70573f4b283a56c8f71c5333352a714f
[platform/adaptation/renesas_rcar/renesas_kernel.git] / include / net / esp.h
1 #ifndef _NET_ESP_H
2 #define _NET_ESP_H
3
4 #include <linux/skbuff.h>
5
6 struct crypto_aead;
7
8 struct esp_data {
9         /* Confidentiality & Integrity */
10         struct crypto_aead *aead;
11 };
12
13 void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len);
14
15 struct ip_esp_hdr;
16
17 static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb)
18 {
19         return (struct ip_esp_hdr *)skb_transport_header(skb);
20 }
21
22 #endif