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

@@ -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.