Skip to content

Commit

Permalink
Fix LinkSetVfGUID to not reverse the GUID
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmduh-483 authored and vishvananda committed Jan 17, 2020
1 parent ec20eb4 commit f049be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion link_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f049be6

Please sign in to comment.