summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/duid.go
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2018-03-06 10:26:13 +0000
committerAndrea Barberio <insomniac@slackware.it>2018-03-06 10:26:13 +0000
commitf197e911b8078698f150d8f31086df64ac900881 (patch)
tree05e8c9c93d5691fc91f1cfebacec96d652d6f6ae /dhcpv6/duid.go
parentac949192ce781902de712ea495b04fc84709ac2e (diff)
Fixed types in dhcpv4 and dhcpv6
Diffstat (limited to 'dhcpv6/duid.go')
-rw-r--r--dhcpv6/duid.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dhcpv6/duid.go b/dhcpv6/duid.go
index e3da8ff..112412d 100644
--- a/dhcpv6/duid.go
+++ b/dhcpv6/duid.go
@@ -3,16 +3,16 @@ package dhcpv6
import (
"encoding/binary"
"fmt"
+
"github.com/insomniacslk/dhcp/iana"
)
type DuidType uint16
const (
- _ DuidType = iota
- DUID_LLT
- DUID_EN
- DUID_LL
+ DUID_LLT DuidType = 1
+ DUID_EN DuidType = 2
+ DUID_LL DuidType = 3
)
var DuidTypeToString = map[DuidType]string{