summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2015-07-16 20:14:05 +0530
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:07:01 +0100
commitc0434076fbe643d3830b00de233900b8f828dbde (patch)
tree6e7b3bb5aa4e70ab8cab89c88f5d42054fd769a1 /src
parent0a763769282e494dc3c4ef192f3e763931179817 (diff)
networkd: move config_parse_vxlan_group_address
move config_parse_vxlan_group_address from networkd.h to networkd-netdev-vxlan.h
Diffstat (limited to 'src')
-rw-r--r--src/shared/virt.h46
1 files changed, 36 insertions, 10 deletions
diff --git a/src/shared/virt.h b/src/shared/virt.h
index 29f8bb0ea..e7d1306f1 100644
--- a/src/shared/virt.h
+++ b/src/shared/virt.h
@@ -21,20 +21,46 @@
#pragma once
-typedef struct TunTap TunTap;
+typedef struct VxLan VxLan;
#include "networkd-netdev.h"
-struct TunTap {
+#include "in-addr-util.h"
+
+#define VXLAN_VID_MAX (1u << 24) - 1
+
+struct VxLan {
NetDev meta;
- char *user_name;
- char *group_name;
- bool one_queue;
- bool multi_queue;
- bool packet_info;
- bool vnet_hdr;
+ uint64_t id;
+
+ int family;
+ union in_addr_union group;
+
+ unsigned tos;
+ unsigned ttl;
+
+ usec_t fdb_ageing;
+
+ bool learning;
+ bool arp_proxy;
+ bool route_short_circuit;
+ bool l2miss;
+ bool l3miss;
+ bool udpcsum;
+ bool udp6zerocsumtx;
+ bool udp6zerocsumrx;
};
-extern const NetDevVTable tun_vtable;
-extern const NetDevVTable tap_vtable;
+extern const NetDevVTable vxlan_vtable;
+
+int config_parse_vxlan_group_address(const char *unit,
+ const char *filename,
+ unsigned line,
+ const char *section,
+ unsigned section_line,
+ const char *lvalue,
+ int ltype,
+ const char *rvalue,
+ void *data,
+ void *userdata);