Lines Matching refs:traversal
554 mDNSexport mStatus mDNS_StartNATOperation_internal(mDNS *const m, NATTraversalInfo *traversal) in mDNS_StartNATOperation_internal() argument
558 …mDNS_StartNATOperation_internal %p Protocol %d IntPort %d RequestedPort %d NATLease %d", traversal, in mDNS_StartNATOperation_internal()
559 …traversal->Protocol, mDNSVal16(traversal->IntPort), mDNSVal16(traversal->RequestedPort), traversal… in mDNS_StartNATOperation_internal()
564 if (traversal == *n) in mDNS_StartNATOperation_internal()
567 traversal, traversal->Protocol, mDNSVal16(traversal->IntPort), traversal->NATLease); in mDNS_StartNATOperation_internal()
573 …if (traversal->Protocol && traversal->Protocol == (*n)->Protocol && mDNSSameIPPort(traversal->IntP… in mDNS_StartNATOperation_internal()
574 !mDNSSameIPPort(traversal->IntPort, SSHPort)) in mDNS_StartNATOperation_internal()
577 traversal, traversal->Protocol, mDNSVal16(traversal->IntPort), traversal->NATLease, in mDNS_StartNATOperation_internal()
582 traversal->next = mDNSNULL; in mDNS_StartNATOperation_internal()
583 traversal->ExpiryTime = 0; in mDNS_StartNATOperation_internal()
584 traversal->retryInterval = NATMAP_INIT_RETRY; in mDNS_StartNATOperation_internal()
585 traversal->retryPortMap = m->timenow; in mDNS_StartNATOperation_internal()
586 traversal->NewResult = mStatus_NoError; in mDNS_StartNATOperation_internal()
587 traversal->ExternalAddress = onesIPv4Addr; in mDNS_StartNATOperation_internal()
588 traversal->ExternalPort = zeroIPPort; in mDNS_StartNATOperation_internal()
589 traversal->Lifetime = 0; in mDNS_StartNATOperation_internal()
590 traversal->Result = mStatus_NoError; in mDNS_StartNATOperation_internal()
593 if (!traversal->NATLease) traversal->NATLease = NATMAP_DEFAULT_LEASE; in mDNS_StartNATOperation_internal()
596 mDNSPlatformMemZero(&traversal->tcpInfo, sizeof(traversal->tcpInfo)); in mDNS_StartNATOperation_internal()
607 *n = traversal; // Append new NATTraversalInfo to the end of our list in mDNS_StartNATOperation_internal()
613 mDNSexport mStatus mDNS_StopNATOperation_internal(mDNS *m, NATTraversalInfo *traversal) in mDNS_StopNATOperation_internal() argument
619 while (*ptr && *ptr != traversal) ptr=&(*ptr)->next; in mDNS_StopNATOperation_internal()
623 LogMsg("mDNS_StopNATOperation_internal: NATTraversalInfo %p not found in list", traversal); in mDNS_StopNATOperation_internal()
627 LogInfo("mDNS_StopNATOperation_internal %p %d %d %d %d", traversal, in mDNS_StopNATOperation_internal()
628 …traversal->Protocol, mDNSVal16(traversal->IntPort), mDNSVal16(traversal->RequestedPort), traversal… in mDNS_StopNATOperation_internal()
630 if (m->CurrentNATTraversal == traversal) in mDNS_StopNATOperation_internal()
633 if (traversal->Protocol) in mDNS_StopNATOperation_internal()
635 if (traversal->Protocol == p->Protocol && mDNSSameIPPort(traversal->IntPort, p->IntPort)) in mDNS_StopNATOperation_internal()
637 if (!mDNSSameIPPort(traversal->IntPort, SSHPort)) in mDNS_StopNATOperation_internal()
640 traversal, traversal->Protocol, mDNSVal16(traversal->IntPort), traversal->NATLease, in mDNS_StopNATOperation_internal()
645 if (traversal->ExpiryTime && unmap) in mDNS_StopNATOperation_internal()
647 traversal->NATLease = 0; in mDNS_StopNATOperation_internal()
648 traversal->retryInterval = 0; in mDNS_StopNATOperation_internal()
649 uDNS_SendNATMsg(m, traversal); in mDNS_StopNATOperation_internal()
655 mStatus err = LNT_UnmapPort(m, traversal); in mDNS_StopNATOperation_internal()
663 mDNSexport mStatus mDNS_StartNATOperation(mDNS *const m, NATTraversalInfo *traversal) in mDNS_StartNATOperation() argument
667 status = mDNS_StartNATOperation_internal(m, traversal); in mDNS_StartNATOperation()
672 mDNSexport mStatus mDNS_StopNATOperation(mDNS *const m, NATTraversalInfo *traversal) in mDNS_StopNATOperation() argument
676 status = mDNS_StopNATOperation_internal(m, traversal); in mDNS_StopNATOperation()