summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_dnsrecursivenameserver.go
diff options
context:
space:
mode:
authorSean Karlage <skarlage@fb.com>2018-08-11 14:30:48 -0700
committerSean Karlage <skarlage@fb.com>2018-08-11 14:32:26 -0700
commit8ea2525c898436a2a935580de67727bbe7035c85 (patch)
tree69d35d17c238feabb07ef07a907aae5520104911 /dhcpv6/option_dnsrecursivenameserver.go
parent2b05c7d03724d31529886d98f738499ac06ead7e (diff)
parenta6212f1f72e94821a29894fb66656a981bd035d0 (diff)
Merge branch 'master' into dhcpv4-moar-tests
Diffstat (limited to 'dhcpv6/option_dnsrecursivenameserver.go')
-rw-r--r--dhcpv6/option_dnsrecursivenameserver.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcpv6/option_dnsrecursivenameserver.go b/dhcpv6/option_dnsrecursivenameserver.go
index 737a2d3..72b0767 100644
--- a/dhcpv6/option_dnsrecursivenameserver.go
+++ b/dhcpv6/option_dnsrecursivenameserver.go
@@ -9,21 +9,21 @@ import (
"net"
)
-// OptDNSRecursiveNameServer represents a DNS_RECURSIVE_NAME_SERVER option
+// OptDNSRecursiveNameServer represents a OptionDNSRecursiveNameServer option
type OptDNSRecursiveNameServer struct {
NameServers []net.IP
}
// Code returns the option code
func (op *OptDNSRecursiveNameServer) Code() OptionCode {
- return DNS_RECURSIVE_NAME_SERVER
+ return OptionDNSRecursiveNameServer
}
// ToBytes returns the option serialized to bytes, including option code and
// length
func (op *OptDNSRecursiveNameServer) ToBytes() []byte {
buf := make([]byte, 4)
- binary.BigEndian.PutUint16(buf[0:2], uint16(DNS_RECURSIVE_NAME_SERVER))
+ binary.BigEndian.PutUint16(buf[0:2], uint16(OptionDNSRecursiveNameServer))
binary.BigEndian.PutUint16(buf[2:4], uint16(op.Length()))
for _, ns := range op.NameServers {
buf = append(buf, ns...)