summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_vendorclass.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_vendorclass.go')
-rw-r--r--dhcpv6/option_vendorclass.go2
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)