diff options
Diffstat (limited to 'dhcpv6/option_statuscode.go')
-rw-r--r-- | dhcpv6/option_statuscode.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/dhcpv6/option_statuscode.go b/dhcpv6/option_statuscode.go index a368a09..dad4ff6 100644 --- a/dhcpv6/option_statuscode.go +++ b/dhcpv6/option_statuscode.go @@ -24,8 +24,6 @@ func (op *OptStatusCode) Code() OptionCode { // ToBytes serializes the option and returns it as a sequence of bytes func (op *OptStatusCode) ToBytes() []byte { buf := uio.NewBigEndianBuffer(nil) - buf.Write16(uint16(OptionStatusCode)) - buf.Write16(uint16(op.Length())) buf.Write16(uint16(op.StatusCode)) buf.WriteBytes(op.StatusMessage) return buf.Data() |