summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_requestedoption.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_requestedoption.go')
-rw-r--r--dhcpv6/option_requestedoption.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/option_requestedoption.go b/dhcpv6/option_requestedoption.go
index f6327f9..a55c533 100644
--- a/dhcpv6/option_requestedoption.go
+++ b/dhcpv6/option_requestedoption.go
@@ -13,13 +13,13 @@ type OptRequestedOption struct {
}
func (op *OptRequestedOption) Code() OptionCode {
- return OPTION_ORO
+ return OptionORO
}
func (op *OptRequestedOption) ToBytes() []byte {
buf := make([]byte, 4)
roBytes := make([]byte, 2)
- binary.BigEndian.PutUint16(buf[0:2], uint16(OPTION_ORO))
+ binary.BigEndian.PutUint16(buf[0:2], uint16(OptionORO))
binary.BigEndian.PutUint16(buf[2:4], uint16(op.Length()))
for _, ro := range op.requestedOptions {
binary.BigEndian.PutUint16(roBytes, uint16(ro))