fou.h 549 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NET_FOU_H
  3. #define __NET_FOU_H
  4. #include <linux/skbuff.h>
  5. #include <net/flow.h>
  6. #include <net/gue.h>
  7. #include <net/ip_tunnels.h>
  8. #include <net/udp.h>
  9. size_t fou_encap_hlen(struct ip_tunnel_encap *e);
  10. size_t gue_encap_hlen(struct ip_tunnel_encap *e);
  11. int __fou_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
  12. u8 *protocol, __be16 *sport, int type);
  13. int __gue_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
  14. u8 *protocol, __be16 *sport, int type);
  15. #endif