diff options
Diffstat (limited to 'dhcpv6/option_dnsrecursivenameserver.go')
-rw-r--r-- | dhcpv6/option_dnsrecursivenameserver.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/dhcpv6/option_dnsrecursivenameserver.go b/dhcpv6/option_dnsrecursivenameserver.go index 9018c4d..cd78c8c 100644 --- a/dhcpv6/option_dnsrecursivenameserver.go +++ b/dhcpv6/option_dnsrecursivenameserver.go @@ -23,8 +23,6 @@ func (op *OptDNSRecursiveNameServer) Code() OptionCode { // ToBytes returns the option serialized to bytes. func (op *OptDNSRecursiveNameServer) ToBytes() []byte { buf := uio.NewBigEndianBuffer(nil) - buf.Write16(uint16(OptionDNSRecursiveNameServer)) - buf.Write16(uint16(op.Length())) for _, ns := range op.NameServers { buf.WriteBytes(ns.To16()) } |