]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/net/esp.h
8139cp: fix checksum broken
[net-next-2.6.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
38320c70 6struct crypto_aead;
1da177e4 7
38320c70
HX
8struct esp_data {
9 /* 0..255 */
10 int padlen;
11
12 /* Confidentiality & Integrity */
13 struct crypto_aead *aead;
1da177e4
LT
14};
15
1da177e4
LT
16extern void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len);
17
87bdc48d
HX
18struct ip_esp_hdr;
19
20static 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
1da177e4 25#endif