You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.5 KiB
47 lines
1.5 KiB
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// CPendingProxyConnection
|
|
//
|
|
// PendingProxyConnection.cpp : Implementation of CPendingProxyConnection
|
|
|
|
#include "PreComp.h"
|
|
#include "AlgController.h"
|
|
#include "PendingProxyConnection.h"
|
|
|
|
|
|
|
|
STDMETHODIMP
|
|
CPendingProxyConnection::Cancel()
|
|
{
|
|
MYTRACE_ENTER("CPendingProxyConnection::Cancel()");
|
|
MYTRACE("Protocol %s", m_eProtocol==1? "TCP" : "UDP");
|
|
MYTRACE("Destination %s:%d", MYTRACE_IP(m_ulDestinationAddress), ntohs(m_usDestinationPort));
|
|
MYTRACE("Source %s:%d", MYTRACE_IP(m_ulSourceAddress), ntohs(m_usSourcePort));
|
|
MYTRACE("Destination %s:%d", MYTRACE_IP(m_ulDestinationAddress), ntohs(m_usDestinationPort));
|
|
MYTRACE("NewSource %s:%d", MYTRACE_IP(m_ulNewSourceAddress), ntohs(m_usNewSourcePort));
|
|
|
|
|
|
HRESULT hr = g_pAlgController->GetNat()->CancelRedirect(
|
|
(UCHAR)m_eProtocol,
|
|
|
|
m_ulDestinationAddress,
|
|
m_usDestinationPort,
|
|
|
|
m_ulSourceAddress,
|
|
m_usSourcePort,
|
|
|
|
m_ulDestinationAddress,
|
|
m_usDestinationPort,
|
|
|
|
m_ulNewSourceAddress,
|
|
m_usNewSourcePort
|
|
|
|
);
|
|
|
|
if ( FAILED(hr) )
|
|
{
|
|
MYTRACE_ERROR("CancelRedirect", hr);
|
|
}
|
|
|
|
return hr;
|
|
}
|