diff options
Diffstat (limited to 'dhcpv4/option_domain_name.go')
-rw-r--r-- | dhcpv4/option_domain_name.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/dhcpv4/option_domain_name.go b/dhcpv4/option_domain_name.go index 456614d..932a1a4 100644 --- a/dhcpv4/option_domain_name.go +++ b/dhcpv4/option_domain_name.go @@ -2,16 +2,14 @@ package dhcpv4 import "fmt" -// This option implements the domain name option -// https://tools.ietf.org/html/rfc2132 - -// OptDomainName represents an option encapsulating the domain name. +// OptDomainName implements the domain name option described in RFC 2132, +// Section 3.17. type OptDomainName struct { DomainName string } -// ParseOptDomainName returns a new OptDomainName from a byte -// stream, or error if any. +// ParseOptDomainName returns a new OptDomainName from a byte stream, or error +// if any. func ParseOptDomainName(data []byte) (*OptDomainName, error) { return &OptDomainName{DomainName: string(data)}, nil } |