esp.h 399 B

12345678910111213141516171819202122
  1. #ifndef _NET_ESP_H
  2. #define _NET_ESP_H
  3. #include <linux/skbuff.h>
  4. struct crypto_aead;
  5. struct esp_data {
  6. /* Confidentiality & Integrity */
  7. struct crypto_aead *aead;
  8. };
  9. void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len);
  10. struct ip_esp_hdr;
  11. static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb)
  12. {
  13. return (struct ip_esp_hdr *)skb_transport_header(skb);
  14. }
  15. #endif