1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2017 Susant Sahani
9 systemd is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
12 (at your option) any later version.
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
19 You should have received a copy of the GNU Lesser General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 typedef struct Geneve Geneve
;
25 #include "in-addr-util.h"
27 #include "networkd-link.h"
28 #include "networkd-network.h"
30 #define GENEVE_VID_MAX (1u << 24) - 1
49 union in_addr_union remote
;
52 DEFINE_NETDEV_CAST(GENEVE
, Geneve
);
53 extern const NetDevVTable geneve_vtable
;
55 int config_parse_geneve_vni(const char *unit
,
59 unsigned section_line
,
66 int config_parse_geneve_address(const char *unit
,
70 unsigned section_line
,
77 int config_parse_geneve_flow_label(const char *unit
,
81 unsigned section_line
,