vpnengine/ikev2lib/src/ikev2messagesendqueue.cpp
changeset 3 2df28d7a2299
parent 0 33413c0669b9
equal deleted inserted replaced
2:ef893827b4d1 3:2df28d7a2299
   162 void CIkev2MessageSendQueue::NewSaBehindNatL(TUint aSaId)
   162 void CIkev2MessageSendQueue::NewSaBehindNatL(TUint aSaId)
   163     {
   163     {
   164     DEBUG_LOG1(_L("CIkev2MessageSendQueue::NewSaBehindNatL: SaId=%d"), aSaId);
   164     DEBUG_LOG1(_L("CIkev2MessageSendQueue::NewSaBehindNatL: SaId=%d"), aSaId);
   165     __ASSERT_DEBUG(iSasBehindNat.Find(aSaId) == KErrNotFound, User::Invariant());
   165     __ASSERT_DEBUG(iSasBehindNat.Find(aSaId) == KErrNotFound, User::Invariant());
   166     User::LeaveIfError(iSasBehindNat.Append(aSaId));    
   166     User::LeaveIfError(iSasBehindNat.Append(aSaId));    
   167     if (!iSender->IsActive() && iNatKeepAliveInterval > 0)
   167     if (!IsActive() && !iSender->IsActive() && iNatKeepAliveInterval > 0)
   168         {
   168         {
   169         //No sending acticve arm the nat keepalive timer.
   169         //No sending acticve arm the nat keepalive timer.
   170         ArmKeepaliveTimer();
   170         ArmKeepaliveTimer();
   171         }
   171         }
   172     }
   172     }
   219     }
   219     }
   220 
   220 
   221 void CIkev2MessageSendQueue::ArmKeepaliveTimer()
   221 void CIkev2MessageSendQueue::ArmKeepaliveTimer()
   222     {
   222     {
   223     DEBUG_LOG(_L("CIkev2MessageSendQueue::ArmKeepaliveTimer"));    
   223     DEBUG_LOG(_L("CIkev2MessageSendQueue::ArmKeepaliveTimer"));    
       
   224     __ASSERT_DEBUG(!IsActive(), User::Invariant());
   224     //Arm NAT keepalive timer.
   225     //Arm NAT keepalive timer.
   225     if (iNatKeepAliveInterval > KMaxTInt/1000000 ) 
   226     if (iNatKeepAliveInterval > KMaxTInt/1000000 ) 
   226         {
   227         {
   227         iRemainingTime = iNatKeepAliveInterval - KMaxTInt/1000000;
   228         iRemainingTime = iNatKeepAliveInterval - KMaxTInt/1000000;
   228         iNatKeepaliveTimer.After(iStatus, KMaxTInt);
   229         iNatKeepaliveTimer.After(iStatus, KMaxTInt);