mirror of https://github.com/vishvananda/netlink
Fix LinkSetVfGUID to not reverse the GUID
This commit is contained in:
parent
ec20eb4fc3
commit
f049be6f39
|
@ -681,7 +681,7 @@ func (h *Handle) LinkSetVfGUID(link Link, vf int, vfGuid net.HardwareAddr, guidT
|
|||
var guid uint64
|
||||
|
||||
buf := bytes.NewBuffer(vfGuid)
|
||||
err = binary.Read(buf, binary.LittleEndian, &guid)
|
||||
err = binary.Read(buf, binary.BigEndian, &guid)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue