1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 Copyright 2014 Tom Gundersen <teg@jklm.no>
8 typedef struct VxLan VxLan
;
10 #include "in-addr-util.h"
11 #include "netdev/netdev.h"
13 #define VXLAN_VID_MAX (1u << 24) - 1
14 #define VXLAN_FLOW_LABEL_MAX_MASK 0xFFFFFU
24 union in_addr_union remote
;
25 union in_addr_union local
;
38 bool route_short_circuit
;
48 struct ifla_vxlan_port_range port_range
;
51 DEFINE_NETDEV_CAST(VXLAN
, VxLan
);
52 extern const NetDevVTable vxlan_vtable
;
54 int config_parse_vxlan_address(const char *unit
,
58 unsigned section_line
,
64 int config_parse_port_range(const char *unit
,
68 unsigned section_line
,
75 int config_parse_flow_label(const char *unit
,
79 unsigned section_line
,