|
@@ -36,5 +36,16 @@ int vxlan_xmit_skb(struct vxlan_sock *vs,
|
|
|
|
|
|
__be16 vxlan_src_port(__u16 port_min, __u16 port_max, struct sk_buff *skb);
|
|
|
|
|
|
+/* IP header + UDP + VXLAN + Ethernet header */
|
|
|
+#define VXLAN_HEADROOM (20 + 8 + 8 + 14)
|
|
|
+/* IPv6 header + UDP + VXLAN + Ethernet header */
|
|
|
+#define VXLAN6_HEADROOM (40 + 8 + 8 + 14)
|
|
|
+
|
|
|
+#if IS_ENABLED(CONFIG_VXLAN)
|
|
|
void vxlan_get_rx_port(struct net_device *netdev);
|
|
|
+#else
|
|
|
+static inline void vxlan_get_rx_port(struct net_device *netdev)
|
|
|
+{
|
|
|
+}
|
|
|
+#endif
|
|
|
#endif
|