From e62fff96ccf1b5ac8ca17170bc22fd91d5c863c3 Mon Sep 17 00:00:00 2001 From: andig Date: Fri, 14 Jun 2019 18:45:48 +0200 Subject: [PATCH] Correct Eui48 length to 4 bytes --- sunspec.go | 2 +- typelen/lengths.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sunspec.go b/sunspec.go index 8853303..ffe6357 100644 --- a/sunspec.go +++ b/sunspec.go @@ -66,7 +66,7 @@ type Enum16 uint16 type Enum32 uint32 // An hardware address (like a MAC address) - see https://standards.ieee.org/develop/regauth/tut/eui48.pdf -type Eui48 [6]byte +type Eui48 [8]byte // A 32bit IPv4 address (binary) type Ipaddr [4]byte diff --git a/typelen/lengths.go b/typelen/lengths.go index accb198..dbab107 100644 --- a/typelen/lengths.go +++ b/typelen/lengths.go @@ -13,7 +13,7 @@ const ( Count = 1 Enum16 = 1 Enum32 = 2 - Eui48 = 3 + Eui48 = 4 Float32 = 2 Int16 = 1 Int32 = 2