diff options
author | insomniac <insomniacslk@users.noreply.github.com> | 2018-05-06 14:01:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-06 14:01:59 +0200 |
commit | 10ecb5882ae87357b7e5495d63726c5ad11f53cf (patch) | |
tree | 7cae40164c72ae4e45d72bdca7528f55f50d4d3c /dhcpv6/duid.go | |
parent | f39ab2956da14cd15d0f64391758bcd273c78175 (diff) |
Added tests for OptClientId and using net.HardwareAddr for DUID (#58)
Diffstat (limited to 'dhcpv6/duid.go')
-rw-r--r-- | dhcpv6/duid.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpv6/duid.go b/dhcpv6/duid.go index 8572349..22529c2 100644 --- a/dhcpv6/duid.go +++ b/dhcpv6/duid.go @@ -3,6 +3,7 @@ package dhcpv6 import ( "encoding/binary" "fmt" + "net" "github.com/insomniacslk/dhcp/iana" ) @@ -28,7 +29,7 @@ type Duid struct { Type DuidType HwType iana.HwTypeType // for DUID-LLT and DUID-LL. Ignored otherwise. RFC 826 Time uint32 // for DUID-LLT. Ignored otherwise - LinkLayerAddr []byte + LinkLayerAddr net.HardwareAddr EnterpriseNumber uint32 // for DUID-EN. Ignored otherwise EnterpriseIdentifier []byte // for DUID-EN. Ignored otherwise Uuid []byte // for DUID-UUID. Ignored otherwise |