tcpiputils/dnd/src/dns_sock.cpp
branchRCL_3
changeset 58 8d540f55e491
parent 57 abbed5a4b42a
child 75 c1029e558ef5
--- a/tcpiputils/dnd/src/dns_sock.cpp	Tue Aug 31 16:45:15 2010 +0300
+++ b/tcpiputils/dnd/src/dns_sock.cpp	Wed Sep 01 12:33:58 2010 +0100
@@ -1248,11 +1248,17 @@
 // If a request is not currently queued, this does an implicit
 // Queue. (a new id is generated).
 //
+// Exceptionally, the request assigns new ID when an incomplete query name
+// is iterated to apply multiple domain suffices on
+// the interface being used for sending requests
+//
 // @param aRequest	the request to be resent.
+// @param aRetryWithSuffix	flag set to identify retry requests 
+//							on incomplete query names. Defaulted to FALSE
 */
-void CDnsSocket::ReSend(TDnsRequest &aRequest)
+void CDnsSocket::ReSend(TDnsRequest &aRequest, TBool aRetryWithSuffix)
 	{
-	Queue(aRequest, aRequest.IsQueued() ? aRequest.Id() : -1);
+	Queue(aRequest, (!aRetryWithSuffix && aRequest.IsQueued()) ? aRequest.Id() : -1);
 	}
 
 /**