networkd: VXLAN use correct type for VNI

This commit is contained in:
Susant Sahani 2019-05-07 14:45:30 +05:30
parent 4cc0fd7531
commit 8c32c5884d
2 changed files with 3 additions and 3 deletions

View 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)

View 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;