Browse Source

remove dependence on DNS and ROUTER packets in the DHCP offer

v6
minexew 2 years ago
parent
commit
c6bba35c89
  1. 3
      Adam/Net/Dhcp.HC

3
Adam/Net/Dhcp.HC

@ -242,7 +242,8 @@ I64 DhcpParseOffer(U32 xid, U8* data, I64 length, U32* yiaddr_out,
//"DhcpParseOffer: end %d %d %d %d\n", have_type, have_dns, have_subnet, have_router;
if (have_type && have_dns && have_subnet && have_router) {
// VirtualBox host network doesn't provide DNS or ROUTER, so this has to do
if (have_type && have_subnet) {
*yiaddr_out = ntohl(hdr->yiaddr);
return 0;
}

Loading…
Cancel
Save