mirror of https://github.com/vishvananda/netlink
fixing issue with setting big endian
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
parent
20397a1388
commit
9cff812148
|
@ -39,8 +39,9 @@ func NativeEndian() binary.ByteOrder {
|
|||
var x uint32 = 0x01020304
|
||||
if *(*byte)(unsafe.Pointer(&x)) == 0x01 {
|
||||
nativeEndian = binary.BigEndian
|
||||
} else {
|
||||
nativeEndian = binary.LittleEndian
|
||||
}
|
||||
nativeEndian = binary.LittleEndian
|
||||
}
|
||||
return nativeEndian
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue