remove dependence on DNS and ROUTER packets in the DHCP offer

This commit is contained in:
minexew
2020-03-02 17:16:08 +01:00
parent e45d1535db
commit c6bba35c89
+2 -1
View File
@@ -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;
}