ipcomp.h 379 B

1234567891011121314151617181920212223
  1. #ifndef _NET_IPCOMP_H
  2. #define _NET_IPCOMP_H
  3. #include <linux/types.h>
  4. #define IPCOMP_SCRATCH_SIZE 65400
  5. struct crypto_comp;
  6. struct ipcomp_data {
  7. u16 threshold;
  8. struct crypto_comp **tfms;
  9. };
  10. struct ip_comp_hdr;
  11. struct sk_buff;
  12. static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
  13. {
  14. return (struct ip_comp_hdr *)skb_transport_header(skb);
  15. }
  16. #endif