2005-04-17 05:20:36 +07:00
|
|
|
#ifndef _NET_AH_H
|
|
|
|
#define _NET_AH_H
|
|
|
|
|
2009-10-08 05:49:57 +07:00
|
|
|
#include <linux/skbuff.h>
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2009-10-08 05:49:57 +07:00
|
|
|
struct crypto_ahash;
|
|
|
|
|
2009-11-03 10:26:03 +07:00
|
|
|
struct ah_data {
|
2005-04-17 05:20:36 +07:00
|
|
|
int icv_full_len;
|
|
|
|
int icv_trunc_len;
|
|
|
|
|
2009-10-08 05:47:16 +07:00
|
|
|
struct crypto_ahash *ahash;
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
|
|
|
|
2007-10-11 05:45:25 +07:00
|
|
|
struct ip_auth_hdr;
|
|
|
|
|
|
|
|
static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
|
|
|
|
{
|
|
|
|
return (struct ip_auth_hdr *)skb_transport_header(skb);
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
#endif
|