tcpiputils/dnd/src/dns_sock.cpp
branchRCL_3
changeset 20 7e41d162e158
parent 0 af10295192d8
child 21 abbed5a4b42a
--- a/tcpiputils/dnd/src/dns_sock.cpp	Thu Jul 15 20:25:02 2010 +0300
+++ b/tcpiputils/dnd/src/dns_sock.cpp	Thu Aug 19 11:25:30 2010 +0300
@@ -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);
 	}
 
 /**