ipcomp.h 620 B

123456789101112131415161718192021222324252627282930
  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 * __percpu *tfms;
  9. };
  10. struct ip_comp_hdr;
  11. struct sk_buff;
  12. struct xfrm_state;
  13. int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
  14. int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
  15. void ipcomp_destroy(struct xfrm_state *x);
  16. int ipcomp_init_state(struct xfrm_state *x);
  17. static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb)
  18. {
  19. return (struct ip_comp_hdr *)skb_transport_header(skb);
  20. }
  21. #endif