Skip to content

Commit

Permalink
Fix DHCP server options to allow Windows accept offered IP
Browse files Browse the repository at this point in the history
Server-ID Option 54 and Domain-Name-Server Option 6
should have length 4 instead of 16

Signed-off-by: Vladik Romanovsky <[email protected]>
  • Loading branch information
vladikr committed Mar 8, 2018
1 parent f98e73b commit f135f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/virt-launcher/virtwrap/network/dhcp/dhcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ func SingleClientDHCPServer(
handler := &DHCPHandler{
clientIP: clientIP,
clientMAC: clientMAC,
serverIP: serverIP,
serverIP: serverIP.To4(),
leaseDuration: infiniteLease,
options: dhcp.Options{
dhcp.OptionSubnetMask: []byte(clientMask),
dhcp.OptionRouter: []byte(routerIP),
dhcp.OptionDomainNameServer: []byte(dnsIP),
dhcp.OptionDomainNameServer: []byte(dnsIP.To4()),
},
}

Expand Down

0 comments on commit f135f19

Please sign in to comment.