esp.h 434 B

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