mirror of
https://github.com/jsimonetti/rtnetlink.git
synced 2026-03-28 07:21:07 +01:00
Use netlink attribute en-/decoder infrastructure This should pave the way for endian aware code. Ref #56 Signed-off-by: Jeroen Simonetti <jeroen@simonetti.nl>
14 lines
176 B
Go
14 lines
176 B
Go
package rtnetlink
|
|
|
|
import (
|
|
"encoding/binary"
|
|
|
|
"github.com/mdlayher/netlink/nlenc"
|
|
)
|
|
|
|
var nativeEndian binary.ByteOrder
|
|
|
|
func init() {
|
|
nativeEndian = nlenc.NativeEndian()
|
|
}
|