mirror of
https://github.com/minexew/Shrine.git
synced 2026-05-26 15:22:22 +00:00
remove dependence on DNS and ROUTER packets in the DHCP offer
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user