From 8c32c5884d0f1afc6cd8774e21c2841003334706 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Tue, 7 May 2019 14:45:30 +0530 Subject: [PATCH] networkd: VXLAN use correct type for VNI --- src/network/netdev/netdev-gperf.gperf | 4 ++-- src/network/netdev/vxlan.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/network/netdev/netdev-gperf.gperf b/src/network/netdev/netdev-gperf.gperf index 10bd334d4bf..fe5e53f2a83 100644 --- a/src/network/netdev/netdev-gperf.gperf +++ b/src/network/netdev/netdev-gperf.gperf @@ -96,8 +96,8 @@ L2TPSession.Name, config_parse_l2tp_session_name, Peer.Name, config_parse_ifname, 0, offsetof(Veth, ifname_peer) Peer.MACAddress, config_parse_hwaddr, 0, offsetof(Veth, mac_peer) VXCAN.Peer, config_parse_ifname, 0, offsetof(VxCan, ifname_peer) -VXLAN.VNI, config_parse_uint64, 0, offsetof(VxLan, vni) -VXLAN.Id, config_parse_uint64, 0, offsetof(VxLan, vni) /* deprecated */ +VXLAN.VNI, config_parse_uint32, 0, offsetof(VxLan, vni) +VXLAN.Id, config_parse_uint32, 0, offsetof(VxLan, vni) /* deprecated */ VXLAN.Group, config_parse_vxlan_address, 0, offsetof(VxLan, group) VXLAN.Local, config_parse_vxlan_address, 0, offsetof(VxLan, local) VXLAN.Remote, config_parse_vxlan_address, 0, offsetof(VxLan, remote) diff --git a/src/network/netdev/vxlan.h b/src/network/netdev/vxlan.h index c2dbfaf2029..ad72a10b2fd 100644 --- a/src/network/netdev/vxlan.h +++ b/src/network/netdev/vxlan.h @@ -12,7 +12,7 @@ typedef struct VxLan VxLan; struct VxLan { NetDev meta; - uint64_t vni; + uint32_t vni; int remote_family; int local_family; -- 2.47.3