ipcomp.h 561 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _NET_IPCOMP_H
  3. #define _NET_IPCOMP_H
  4. #include <linux/skbuff.h>
  5. struct ip_comp_hdr;
  6. struct netlink_ext_ack;
  7. struct xfrm_state;
  8. int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
  9. int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
  10. void ipcomp_destroy(struct xfrm_state *x);
  11. int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack);
  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