summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/options.go
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-07-31 17:02:36 +0200
committerPablo Mazzini <pmazzini@gmail.com>2018-07-31 17:02:36 +0200
commit727a17d07bc2c8042bd882dd6fcc3001a47933c9 (patch)
tree52aa782772e2fe25e9d225e847d5a320ee359427 /dhcpv4/options.go
parentc6894ea160d82b4a326ebab94faaebd090192a7b (diff)
add OptHostName
Diffstat (limited to 'dhcpv4/options.go')
-rw-r--r--dhcpv4/options.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcpv4/options.go b/dhcpv4/options.go
index 760bc98..4903ab3 100644
--- a/dhcpv4/options.go
+++ b/dhcpv4/options.go
@@ -44,6 +44,8 @@ func ParseOption(data []byte) (Option, error) {
opt, err = ParseOptSubnetMask(data)
case OptionRouter:
opt, err = ParseOptRouter(data)
+ case OptionHostName:
+ opt, err = ParseOptDomainName(data)
case OptionRequestedIPAddress:
opt, err = ParseOptRequestedIPAddress(data)
case OptionIPAddressLeaseTime: