networkd: VXLAN use correct type for VNI
authorSusant Sahani <ssahani@redhat.com>
Tue, 7 May 2019 09:15:30 +0000 (14:45 +0530)
committerSusant Sahani <ssahani@redhat.com>
Wed, 8 May 2019 01:22:54 +0000 (06:52 +0530)
src/network/netdev/netdev-gperf.gperf
src/network/netdev/vxlan.h

index 10bd334..fe5e53f 100644 (file)
@@ -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)
index c2dbfaf..ad72a10 100644 (file)
@@ -12,7 +12,7 @@ typedef struct VxLan VxLan;
 struct VxLan {
         NetDev meta;
 
-        uint64_t vni;
+        uint32_t vni;
 
         int remote_family;
         int local_family;