summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_nii.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_nii.go')
-rw-r--r--dhcpv6/option_nii.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/option_nii.go b/dhcpv6/option_nii.go
index 3a838ee..68e315e 100644
--- a/dhcpv6/option_nii.go
+++ b/dhcpv6/option_nii.go
@@ -33,12 +33,12 @@ type OptNetworkInterfaceId struct {
}
func (op *OptNetworkInterfaceId) Code() OptionCode {
- return OPTION_NII
+ return OptionNII
}
func (op *OptNetworkInterfaceId) ToBytes() []byte {
buf := make([]byte, 7)
- binary.BigEndian.PutUint16(buf[0:2], uint16(OPTION_NII))
+ binary.BigEndian.PutUint16(buf[0:2], uint16(OptionNII))
binary.BigEndian.PutUint16(buf[2:4], uint16(op.Length()))
buf[4] = op.type_
buf[5] = op.major