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