summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_vendor_opts.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_vendor_opts.go')
-rw-r--r--dhcpv6/option_vendor_opts.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/dhcpv6/option_vendor_opts.go b/dhcpv6/option_vendor_opts.go
index 027e7c3..3deeab9 100644
--- a/dhcpv6/option_vendor_opts.go
+++ b/dhcpv6/option_vendor_opts.go
@@ -23,8 +23,6 @@ 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.Write16(uint16(OptionVendorOpts))
- buf.Write16(uint16(op.Length()))
buf.Write32(uint32(op.EnterpriseNumber))
buf.WriteData(op.VendorOpts.ToBytes())
return buf.Data()