summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_vendor_opts.go
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-22 11:12:54 +0200
committerPablo Mazzini <pmazzini@gmail.com>2019-07-22 10:12:54 +0100
commitf672bc204f35cdafd26aeefa5faf44ab4de7c4dc (patch)
tree12191ce4a1b7308a7f7b45c1dedeafc8581ec690 /dhcpv6/option_vendor_opts.go
parent5ab53f483aedb77083fd0622da8f80e462319f8b (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.go2
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()
}