Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _NET_ESP_H |
2 | #define _NET_ESP_H | ||||
3 | |||||
Herbert Xu | 38320c7 | 2008-01-28 19:35:05 -0800 | [diff] [blame] | 4 | #include <linux/skbuff.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
Herbert Xu | 38320c7 | 2008-01-28 19:35:05 -0800 | [diff] [blame] | 6 | struct crypto_aead; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
Herbert Xu | 38320c7 | 2008-01-28 19:35:05 -0800 | [diff] [blame] | 8 | struct esp_data { |
9 | /* 0..255 */ | ||||
10 | int padlen; | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
Herbert Xu | 38320c7 | 2008-01-28 19:35:05 -0800 | [diff] [blame] | 12 | /* Confidentiality & Integrity */ |
13 | struct crypto_aead *aead; | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | }; |
15 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | extern void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len); |
17 | |||||
Herbert Xu | 87bdc48 | 2007-10-10 15:45:25 -0700 | [diff] [blame] | 18 | struct ip_esp_hdr; |
19 | |||||
20 | static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb) | ||||
21 | { | ||||
22 | return (struct ip_esp_hdr *)skb_transport_header(skb); | ||||
23 | } | ||||
24 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | #endif |