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_vendorclass.go | |
parent | 5ab53f483aedb77083fd0622da8f80e462319f8b (diff) |
Fixed unnecessary conversions in dhcpv6 (#305)
No need to convert here.
Diffstat (limited to 'dhcpv6/option_vendorclass.go')
-rw-r--r-- | dhcpv6/option_vendorclass.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/option_vendorclass.go b/dhcpv6/option_vendorclass.go index ef85087..94152a1 100644 --- a/dhcpv6/option_vendorclass.go +++ b/dhcpv6/option_vendorclass.go @@ -22,7 +22,7 @@ func (op *OptVendorClass) Code() OptionCode { // ToBytes serializes the option and returns it as a sequence of bytes func (op *OptVendorClass) ToBytes() []byte { buf := uio.NewBigEndianBuffer(nil) - buf.Write32(uint32(op.EnterpriseNumber)) + buf.Write32(op.EnterpriseNumber) for _, data := range op.Data { buf.Write16(uint16(len(data))) buf.WriteBytes(data) |