From: Susant Sahani Date: Tue, 7 May 2019 09:15:30 +0000 (+0530) Subject: networkd: VXLAN use correct type for VNI X-Git-Tag: v243-rc1~471^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c32c5884d0f1afc6cd8774e21c2841003334706;p=thirdparty%2Fsystemd.git networkd: VXLAN use correct type for VNI --- 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;