From 1a4e8e7b499f133f107fa0d34cc1da4a5d229053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 13 Dec 2006 10:22:34 +0000 Subject: [PATCH] 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 --- src/servers/net/DHCPClient.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/servers/net/DHCPClient.cpp b/src/servers/net/DHCPClient.cpp index 936092afa2..da8f5bb8a4 100644 --- a/src/servers/net/DHCPClient.cpp +++ b/src/servers/net/DHCPClient.cpp @@ -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);