Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f049be6

Browse files
Mmduh-483vishvananda
authored andcommitted
Fix LinkSetVfGUID to not reverse the GUID
1 parent ec20eb4 commit f049be6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

link_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ func (h *Handle) LinkSetVfGUID(link Link, vf int, vfGuid net.HardwareAddr, guidT
681681
var guid uint64
682682

683683
buf := bytes.NewBuffer(vfGuid)
684-
err = binary.Read(buf, binary.LittleEndian, &guid)
684+
err = binary.Read(buf, binary.BigEndian, &guid)
685685
if err != nil {
686686
return err
687687
}

0 commit comments

Comments
 (0)