* dhcp_message::seconds_since_start was set to a negative value, causing

corrupt values. Maybe this changes something with bug #2531.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28749 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-11-28 21:34:48 +00:00
parent aa0c1702d5
commit bcc8dada2c
+1 -1
View File
@@ -686,7 +686,7 @@ DHCPClient::_PrepareMessage(dhcp_message& message, dhcp_state state)
message.hardware_type = ARP_HARDWARE_TYPE_ETHER; message.hardware_type = ARP_HARDWARE_TYPE_ETHER;
message.hardware_address_length = 6; message.hardware_address_length = 6;
message.transaction_id = htonl(fTransactionID); message.transaction_id = htonl(fTransactionID);
message.seconds_since_start = htons(min_c((fStartTime - system_time()) message.seconds_since_start = htons(min_c((system_time() - fStartTime)
/ 1000000LL, 65535)); / 1000000LL, 65535));
memcpy(message.mac_address, fMAC, 6); memcpy(message.mac_address, fMAC, 6);