Since VMware seems to have some ridiculuous low lease times, I added some code

that prints out the renewal/rebinding times as well - maybe those should be
preferred when they are there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19484 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-12-13 10:22:34 +00:00
parent d1585e48df
commit 1a4e8e7b49

View File

@ -564,6 +564,12 @@ DHCPClient::_ParseOptions(dhcp_message& message, BMessage& address)
fLeaseTime = htonl(*(uint32*)data) * 1000000LL;
break;
case OPTION_RENEWAL_TIME:
case OPTION_REBINDING_TIME:
printf("renewal/rebinding (%lu) time of %lu seconds\n",
(uint32)option, htonl(*(uint32*)data));
break;
case OPTION_HOST_NAME:
char name[256];
memcpy(name, data, size);