diff options
Diffstat (limited to 'dhcpv4/dhcpv4.go')
-rw-r--r-- | dhcpv4/dhcpv4.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dhcpv4/dhcpv4.go b/dhcpv4/dhcpv4.go index 182d4a4..31bdd47 100644 --- a/dhcpv4/dhcpv4.go +++ b/dhcpv4/dhcpv4.go @@ -139,7 +139,12 @@ func NewDiscoveryForInterface(ifname string) (*DHCPv4, error) { }) d.AddOption(Option{ Code: OptionParameterRequestList, - Data: []byte{OptionSubnetMask, OptionRouter, OptionDomainName, OptionDomainNameServer}, + Data: []byte{ + byte(OptionSubnetMask), + byte(OptionRouter), + byte(OptionDomainName), + byte(OptionDomainNameServer), + }, }) // the End option has to be added explicitly d.AddOption(Option{Code: OptionEnd}) |