summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/duid.go
diff options
context:
space:
mode:
authorinsomniac <insomniacslk@users.noreply.github.com>2018-03-06 18:28:56 +0000
committerGitHub <noreply@github.com>2018-03-06 18:28:56 +0000
commite9ebad02f2f8c0bc7b4feb67bdbeeb10f9e8174e (patch)
tree0e7e67adebf7285be223a998daef706a94b3cd67 /dhcpv6/duid.go
parenteed1649adf6d25016f0551cac65a06102085cc8c (diff)
parentfe4f99d21bfe3872e356e7999f3cd1654ea9d92e (diff)
Merge pull request #5 from insomniacslk/fix_types
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{