diff --git a/programs/network/autodhcp/trunk/ETH.INC b/programs/network/autodhcp/trunk/ETH.INC index ce8f905226..5480add458 100644 --- a/programs/network/autodhcp/trunk/ETH.INC +++ b/programs/network/autodhcp/trunk/ETH.INC @@ -286,7 +286,7 @@ local .getdata,.loop,.end cmp endptr, bufferl jg .end - eth.read_packet socket, endptr, bufferl + eth.read_packet socket, endptr, 0 add endptr,eax test eax, eax diff --git a/programs/network/autodhcp/trunk/autodhcp.asm b/programs/network/autodhcp/trunk/autodhcp.asm index d50cbd6669..780ea1ade0 100644 --- a/programs/network/autodhcp/trunk/autodhcp.asm +++ b/programs/network/autodhcp/trunk/autodhcp.asm @@ -358,10 +358,6 @@ pr_exit: ; DEBUGF 1,"DHCP: Sending ARP probe\n" ; eth.ARP_ANNOUNCE [dhcpClientIP] ; send an ARP announc packet - eth.get_GATEWAY eax ; if gateway was not set, set it to the DHCP SERVER IP - test eax,eax - jnz close - eth.set_GATEWAY [dhcpServerIP] jmp close apipa: