Update dependencies

This commit is contained in:
bluepython508
2025-04-09 01:00:12 +01:00
parent f0641ffd6e
commit 5a9cfc022c
882 changed files with 68930 additions and 24201 deletions

View File

@@ -165,11 +165,19 @@ flowchart LR
click go-onewire "https://github.com/SpComb/go-onewire"
end
subgraph "NETLINK_SOCK_DIAG"
direction LR
go-diag["github.com/florianl/go-diag"]
click go-diag "https://github.com/florianl/go-diag"
end
NETLINK_CONNECTOR --> netlink
NETLINK_CRYPTO --> netlink
NETLINK_GENERIC --> netlink
NETLINK_KOBJECT_UEVENT --> netlink
NETLINK_NETFILTER --> netlink
NETLINK_ROUTE --> netlink
NETLINK_SOCK_DIAG --> netlink
NETLINK_W1 --> netlink
```

View File

@@ -6,7 +6,6 @@ import (
"fmt"
"math"
"github.com/josharian/native"
"github.com/mdlayher/netlink/nlenc"
)
@@ -168,7 +167,7 @@ type AttributeDecoder struct {
func NewAttributeDecoder(b []byte) (*AttributeDecoder, error) {
ad := &AttributeDecoder{
// By default, use native byte order.
ByteOrder: native.Endian,
ByteOrder: binary.NativeEndian,
b: b,
}
@@ -485,7 +484,7 @@ type AttributeEncoder struct {
// NewAttributeEncoder creates an AttributeEncoder that encodes Attributes.
func NewAttributeEncoder() *AttributeEncoder {
return &AttributeEncoder{ByteOrder: native.Endian}
return &AttributeEncoder{ByteOrder: binary.NativeEndian}
}
// Uint8 encodes uint8 data into an Attribute specified by typ.

View File

@@ -4,12 +4,10 @@ package nlenc
import (
"encoding/binary"
"github.com/josharian/native"
)
// NativeEndian returns the native byte order of this system.
func NativeEndian() binary.ByteOrder {
// TODO(mdlayher): consider deprecating and removing this function for v2.
return native.Endian
return binary.NativeEndian
}