Merge pull request #284 from francares/fmc_dhcp_subnetmask

IPAM/DHCP: include Subnet Mask option parameter in DHCPREQUEST
This commit is contained in:
Dan Williams
2019-04-01 14:56:13 -05:00
committed by GitHub

View File

@ -130,7 +130,7 @@ func (l *DHCPLease) acquire() error {
opts := make(dhcp4.Options)
opts[dhcp4.OptionClientIdentifier] = []byte(l.clientID)
opts[dhcp4.OptionParameterRequestList] = []byte{byte(dhcp4.OptionRouter)}
opts[dhcp4.OptionParameterRequestList] = []byte{byte(dhcp4.OptionRouter), byte(dhcp4.OptionSubnetMask)}
pkt, err := backoffRetry(func() (*dhcp4.Packet, error) {
ok, ack, err := DhcpRequest(c, opts)