summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_elapsedtime.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_elapsedtime.go')
-rw-r--r--dhcpv6/option_elapsedtime.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/option_elapsedtime.go b/dhcpv6/option_elapsedtime.go
index 2d65843..194122e 100644
--- a/dhcpv6/option_elapsedtime.go
+++ b/dhcpv6/option_elapsedtime.go
@@ -21,7 +21,7 @@ func (op *OptElapsedTime) Code() OptionCode {
// ToBytes marshals this option to bytes.
func (op *OptElapsedTime) ToBytes() []byte {
buf := uio.NewBigEndianBuffer(nil)
- buf.Write16(uint16(op.ElapsedTime))
+ buf.Write16(op.ElapsedTime)
return buf.Data()
}