vendor: bump github.com/mdlayher/wifi and dependencies (#1045)
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
60c827231a
commit
d84873727f
10 changed files with 608 additions and 182 deletions
16
vendor/github.com/mdlayher/netlink/nlenc/endian.go
generated
vendored
Normal file
16
vendor/github.com/mdlayher/netlink/nlenc/endian.go
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package nlenc
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
)
|
||||
|
||||
// NativeEndian returns the native byte order of this system.
|
||||
func NativeEndian() binary.ByteOrder {
|
||||
// Determine endianness by storing a uint16 in a byte slice.
|
||||
b := Uint16Bytes(1)
|
||||
if b[0] == 1 {
|
||||
return binary.LittleEndian
|
||||
}
|
||||
|
||||
return binary.BigEndian
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue