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