tcpiputils/dnd/src/llmnrresponder.cpp
branchRCL_3
changeset 75 c1029e558ef5
parent 0 af10295192d8
equal deleted inserted replaced
67:bb2423252ea3 75:c1029e558ef5
   522 	else
   522 	else
   523 		upd.iDstAddr.SetAddress(iControl.GetConfig().iLlmnrIpv6);
   523 		upd.iDstAddr.SetAddress(iControl.GetConfig().iLlmnrIpv6);
   524 	upd.iDstAddr.SetScope(aEntry.iZone[upd.iDstAddr.Ip6Address().Scope()-1]);
   524 	upd.iDstAddr.SetScope(aEntry.iZone[upd.iDstAddr.Ip6Address().Scope()-1]);
   525 	upd.iDstAddr.SetPort(iControl.GetConfig().iLlmnrPort);
   525 	upd.iDstAddr.SetPort(iControl.GetConfig().iLlmnrPort);
   526 	upd.iRepeat = 1 + iControl.GetConfig().iLlmnrRetries;
   526 	upd.iRepeat = 1 + iControl.GetConfig().iLlmnrRetries;
   527 	Queue(upd);
   527 	Queue(upd, NULL);
   528 	return KErrNone;
   528 	return KErrNone;
   529 	}
   529 	}
   530 
   530 
   531 void CDndLlmnrResponder::Query(const TMsgBuf &aBuf, const TInetAddr &aServer, const RSocket &aSocket)
   531 void CDndLlmnrResponder::Query(const TMsgBuf &aBuf, const TInetAddr &aServer, const RSocket &aSocket)
   532 	{
   532 	{
   626 	resp.iQR = 1;
   626 	resp.iQR = 1;
   627 	resp.iAA = 1;
   627 	resp.iAA = 1;
   628 	resp.iRCode = EDnsRcode_NOERROR;
   628 	resp.iRCode = EDnsRcode_NOERROR;
   629 	resp.iDstAddr = aServer;
   629 	resp.iDstAddr = aServer;
   630 	resp.iRepeat = 0;
   630 	resp.iRepeat = 0;
   631 	Queue(resp, aSocket, hdr.ID());
   631 	Queue(resp, aSocket, NULL, hdr.ID());
   632 	}
   632 	}
   633 
   633 
   634 
   634 
   635 TUint32 CDndLlmnrResponder::IsMyAddress(const TDndQuestion &aQuestion)
   635 TUint32 CDndLlmnrResponder::IsMyAddress(const TDndQuestion &aQuestion)
   636 	{
   636 	{
   774 	if (iLlmnrEntry)
   774 	if (iLlmnrEntry)
   775 		{
   775 		{
   776 		if (iRepeat > 0)
   776 		if (iRepeat > 0)
   777 			{
   777 			{
   778 			LOG(iParent->LogPrint(_L("\tLLMNR Resend query: "), *iLlmnrEntry));
   778 			LOG(iParent->LogPrint(_L("\tLLMNR Resend query: "), *iLlmnrEntry));
   779 			iParent->ReSend(*this);
   779 			iParent->ReSend(*this, NULL);
   780 			}
   780 			}
   781 		else
   781 		else
   782 			{
   782 			{
   783 			Cancel();
   783 			Cancel();
   784 			// The timeout is only activated with Unique testing, thus
   784 			// The timeout is only activated with Unique testing, thus