| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _NET_AH_H |
| 2 | #define _NET_AH_H | ||||
| 3 | |||||
| Steffen Klassert | 2ad9afb | 2009-10-07 22:49:57 +0000 | [diff] [blame] | 4 | #include <linux/skbuff.h> |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
| Steffen Klassert | 2ad9afb | 2009-10-07 22:49:57 +0000 | [diff] [blame] | 6 | struct crypto_ahash; |
| 7 | |||||
| Eric Dumazet | fd2c3ef | 2009-11-03 03:26:03 +0000 | [diff] [blame] | 8 | struct ah_data { |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | int icv_full_len; |
| 10 | int icv_trunc_len; | ||||
| 11 | |||||
| Steffen Klassert | 49cbf95 | 2009-10-07 22:47:16 +0000 | [diff] [blame] | 12 | struct crypto_ahash *ahash; |
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | }; |
| 14 | |||||
| Herbert Xu | 87bdc48 | 2007-10-10 15:45:25 -0700 | [diff] [blame] | 15 | struct ip_auth_hdr; |
| 16 | |||||
| 17 | static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb) | ||||
| 18 | { | ||||
| 19 | return (struct ip_auth_hdr *)skb_transport_header(skb); | ||||
| 20 | } | ||||
| 21 | |||||
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #endif |