summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_interfaceid.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_interfaceid.go')
-rw-r--r--dhcpv6/option_interfaceid.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/option_interfaceid.go b/dhcpv6/option_interfaceid.go
index 2634d9f..2bee744 100644
--- a/dhcpv6/option_interfaceid.go
+++ b/dhcpv6/option_interfaceid.go
@@ -13,12 +13,12 @@ type OptInterfaceId struct {
}
func (op *OptInterfaceId) Code() OptionCode {
- return OPTION_INTERFACE_ID
+ return OptionInterfaceID
}
func (op *OptInterfaceId) ToBytes() []byte {
buf := make([]byte, 4)
- binary.BigEndian.PutUint16(buf[0:2], uint16(OPTION_INTERFACE_ID))
+ binary.BigEndian.PutUint16(buf[0:2], uint16(OptionInterfaceID))
binary.BigEndian.PutUint16(buf[2:4], uint16(len(op.interfaceId)))
buf = append(buf, op.interfaceId...)
return buf