ah.h 343 B

12345678910111213141516171819202122
  1. #ifndef _NET_AH_H
  2. #define _NET_AH_H
  3. #include <linux/skbuff.h>
  4. struct crypto_ahash;
  5. struct ah_data {
  6. int icv_full_len;
  7. int icv_trunc_len;
  8. struct crypto_ahash *ahash;
  9. };
  10. struct ip_auth_hdr;
  11. static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
  12. {
  13. return (struct ip_auth_hdr *)skb_transport_header(skb);
  14. }
  15. #endif