diff --git a/endian.go b/endian.go index 14193d5..6f2763c 100644 --- a/endian.go +++ b/endian.go @@ -1,13 +1,7 @@ package rtnetlink -import ( - "encoding/binary" +import "encoding/binary" - "github.com/mdlayher/netlink/nlenc" -) - -var nativeEndian binary.ByteOrder - -func init() { - nativeEndian = nlenc.NativeEndian() -} +// nativeEndian is the byte order of the host, which netlink uses for most +// attribute and header fields. +var nativeEndian binary.ByteOrder = binary.NativeEndian diff --git a/go.mod b/go.mod index 4940f3c..27363b3 100644 --- a/go.mod +++ b/go.mod @@ -5,12 +5,12 @@ go 1.26.0 require ( github.com/cilium/ebpf v0.22.0 github.com/google/go-cmp v0.7.0 - github.com/mdlayher/netlink v1.9.0 + github.com/mdlayher/netlink v1.11.2 golang.org/x/sync v0.24.0 golang.org/x/sys v0.49.0 ) require ( - github.com/mdlayher/socket v0.5.1 // indirect + github.com/mdlayher/socket v0.6.0 // indirect golang.org/x/net v0.55.0 // indirect ) diff --git a/go.sum b/go.sum index a97e514..0840c81 100644 --- a/go.sum +++ b/go.sum @@ -8,10 +8,10 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mdlayher/netlink v1.9.0 h1:G8+GLq2x3v4D4MVIqDdNUhTUC7TKiCy/6MDkmItfKco= -github.com/mdlayher/netlink v1.9.0/go.mod h1:YBnl5BXsCoRuwBjKKlZ+aYmEoq0r12FDA/3JC+94KDg= -github.com/mdlayher/socket v0.5.1 h1:VZaqt6RkGkt2OE9l3GcC6nZkqD3xKeQLyfleW/uBcos= -github.com/mdlayher/socket v0.5.1/go.mod h1:TjPLHI1UgwEv5J1B5q0zTZq12A/6H7nKmtTanQE37IQ= +github.com/mdlayher/netlink v1.11.2 h1:HKh2jqe+omdSWcQ88nrT7INE61B0NXfiSPFdgL4YbNI= +github.com/mdlayher/netlink v1.11.2/go.mod h1:uT2Yc/QLaZubzDpZIBi9d4GoeLwtp3x1AMeqSRrK2sA= +github.com/mdlayher/socket v0.6.0 h1:ScZPaAGyO1icQnbFrhPM8mnXyMu9qukC1K4ZoM2IQKU= +github.com/mdlayher/socket v0.6.0/go.mod h1:q7vozUAnxSqnjHc12Fik5yUKIzfZ8ITCfMkhOtE9z18= github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8=