summaryrefslogtreecommitdiff
path: root/src/VBox/Devices/Network/slirp/bootp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Devices/Network/slirp/bootp.c')
-rw-r--r--src/VBox/Devices/Network/slirp/bootp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/VBox/Devices/Network/slirp/bootp.c b/src/VBox/Devices/Network/slirp/bootp.c
index 31d434c2..6cf126bd 100644
--- a/src/VBox/Devices/Network/slirp/bootp.c
+++ b/src/VBox/Devices/Network/slirp/bootp.c
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (C) 2006-2010 Oracle Corporation
+ * Copyright (C) 2006-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -697,9 +697,10 @@ static void dhcp_decode(PNATState pData, struct bootp_t *bp, const uint8_t *buf,
* We're going update dns list at least once per DHCP transaction (!not on every operation
* within transaction), assuming that transaction can't be longer than 1 min.
*/
- if ( !pData->fUseHostResolver
+ if ( !pData->fUseHostResolverPermanent
&& ( pData->dnsLastUpdate == 0
- || curtime - pData->dnsLastUpdate > 60 * 1000)) /* one minute*/
+ || curtime - pData->dnsLastUpdate > 60 * 1000
+ || pData->fUseHostResolver)) /* one minute*/
{
uint8_t i = 2; /* i = 0 - tag, i == 1 - length */
parameter_list = dhcp_find_option(&bp->bp_vend[0], RFC2132_PARAM_LIST);