diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-22 11:12:54 +0200 |
---|---|---|
committer | Pablo Mazzini <pmazzini@gmail.com> | 2019-07-22 10:12:54 +0100 |
commit | f672bc204f35cdafd26aeefa5faf44ab4de7c4dc (patch) | |
tree | 12191ce4a1b7308a7f7b45c1dedeafc8581ec690 /dhcpv6/option_vendor_opts.go | |
parent | 5ab53f483aedb77083fd0622da8f80e462319f8b (diff) |
Fixed unnecessary conversions in dhcpv6 (#305)
No need to convert here.
Diffstat (limited to 'dhcpv6/option_vendor_opts.go')
-rw-r--r-- | dhcpv6/option_vendor_opts.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/option_vendor_opts.go b/dhcpv6/option_vendor_opts.go index a1ae400..e1aebd4 100644 --- a/dhcpv6/option_vendor_opts.go +++ b/dhcpv6/option_vendor_opts.go @@ -23,7 +23,7 @@ func (op *OptVendorOpts) Code() OptionCode { // ToBytes serializes the option and returns it as a sequence of bytes func (op *OptVendorOpts) ToBytes() []byte { buf := uio.NewBigEndianBuffer(nil) - buf.Write32(uint32(op.EnterpriseNumber)) + buf.Write32(op.EnterpriseNumber) buf.WriteData(op.VendorOpts.ToBytes()) return buf.Data() } |