From da69dad309583925ff4f8d0454bd0fb5bb6a1402 Mon Sep 17 00:00:00 2001 From: Christopher Koch Date: Sun, 20 Jan 2019 20:13:51 +0000 Subject: dhcpv6: move option code and length marshaling to Options.ToBytes. --- dhcpv6/option_prefixdelegation.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'dhcpv6/option_prefixdelegation.go') diff --git a/dhcpv6/option_prefixdelegation.go b/dhcpv6/option_prefixdelegation.go index ee46876..eb5deb7 100644 --- a/dhcpv6/option_prefixdelegation.go +++ b/dhcpv6/option_prefixdelegation.go @@ -23,8 +23,6 @@ func (op *OptIAForPrefixDelegation) Code() OptionCode { // ToBytes serializes the option and returns it as a sequence of bytes func (op *OptIAForPrefixDelegation) ToBytes() []byte { buf := uio.NewBigEndianBuffer(nil) - buf.Write16(uint16(OptionIAPD)) - buf.Write16(uint16(op.Length())) buf.WriteBytes(op.IaId[:]) buf.Write32(op.T1) buf.Write32(op.T2) -- cgit v1.2.3