Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _NET_AH_H
0003 #define _NET_AH_H
0004 
0005 #include <linux/skbuff.h>
0006 
0007 struct crypto_ahash;
0008 
0009 struct ah_data {
0010     int         icv_full_len;
0011     int         icv_trunc_len;
0012 
0013     struct crypto_ahash *ahash;
0014 };
0015 
0016 struct ip_auth_hdr;
0017 
0018 static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
0019 {
0020     return (struct ip_auth_hdr *)skb_transport_header(skb);
0021 }
0022 
0023 #endif