I can’t see any packets when i filter tcp.srcport==500 & 4500 . The RAS api i am using ::
*****************************************
// Load functions
m_fRasDial = GetProcAddress(m_hRasApiModule, “RasDialW”);
m_fRasDeleteEntry = GetProcAddress(m_hRasApiModule, “RasDeleteEntryW”);
m_fRasGetErrorString = GetProcAddress(m_hRasApiModule, “RasGetErrorStringW”);
m_fRasGetConnectStatus = GetProcAddress(m_hRasApiModule, “RasGetConnectStatusW”);
m_fRasGetEntryDialParams = GetProcAddress(m_hRasApiModule, “RasGetEntryDialParamsW”);
m_fRasGetProjectionInfo = GetProcAddress(m_hRasApiModule, “RasGetProjectionInfoW”);
m_fRasGetEntryProperties = GetProcAddress(m_hRasApiModule, “RasGetEntryPropertiesW”);
m_fRasEnumConnections = GetProcAddress(m_hRasApiModule, “RasEnumConnectionsW”);
m_fRasEnumEntries = GetProcAddress(m_hRasApiModule, “RasEnumEntriesW”);
m_fRasEnumDevices = GetProcAddress(m_hRasApiModule, “RasEnumDevicesW”);
m_fRasHangUp = GetProcAddress(m_hRasApiModule, “RasHangUpW”);
m_fRasSetEntryProperties = GetProcAddress(m_hRasApiModule, “RasSetEntryPropertiesW”);
// Check functions
bResult = m_fRasDial &&
m_fRasDeleteEntry &&
m_fRasGetErrorString &&
m_fRasEnumDevices &&
m_fRasGetProjectionInfo &&
m_fRasGetConnectStatus &&
m_fRasGetEntryDialParams &&
m_fRasGetEntryProperties &&
m_fRasEnumConnections &&
m_fRasEnumEntries &&
m_fRasHangUp &&
m_fRasSetEntryProperties ;
*******************************
DWORD RasApi::RasDial(LPRASDIALEXTENSIONS lpRasDialExtensions, LPCTSTR lpszPhonebook, LPRASDIALPARAMS lpRasDialParams, DWORD dwNotifierType, LPVOID lpvNotifier, LPHRASCONN lphRasConn)
{
RASAPI_DWORD_CALL( m_fRasDial,
((DWORD (APIENTRY*) (LPRASDIALEXTENSIONS, LPCTSTR, LPRASDIALPARAMS, DWORD, LPVOID, LPHRASCONN)) m_fRasDial)
(lpRasDialExtensions, lpszPhonebook, lpRasDialParams, dwNotifierType, lpvNotifier, lphRasConn)
)
}
****************************************
DWORD RasApi::RasDeleteEntry(LPCTSTR lpszPhonebook, LPCTSTR lpszEntry)
{
NS_RASAPI_DWORD_CALL( m_fRasDeleteEntry,
((DWORD (APIENTRY*) (LPCTSTR, LPCTSTR)) m_fRasDeleteEntry) (lpszPhonebook, lpszEntry)
)
}
**********************************************
DWORD RasApi::RasGetErrorString(UINT uErrorValue, LPTSTR lpszErrorString, DWORD cBufSize)
{
if(m_fRasGetErrorString)
{
return ((DWORD (APIENTRY*) (UINT, LPTSTR, DWORD)) m_fRasGetErrorString)(uErrorValue, lpszErrorString, cBufSize);
}
else
{
if(lpszErrorString && cBufSize)
{
lpszErrorString[0] = 0;
return ERROR_SUCCESS;
}
}
return ERROR_SUCCESS;
}
*********************************************************
DWORD RasApi::RasGetConnectStatus(HRASCONN hrasconn, LPRASCONNSTATUS lprasconnstatus)
{
RASAPI_DWORD_CALL(m_fRasGetConnectStatus,
((DWORD (APIENTRY*) (HRASCONN, LPRASCONNSTATUS)) m_fRasGetConnectStatus) (hrasconn, lprasconnstatus)
)
}
*********************************************
DWORD RasApi::RasGetEntryDialParams(LPCTSTR lpszPhonebook, LPRASDIALPARAMS lprasdialparams, LPBOOL lpfPassword)
{
RASAPI_DWORD_CALL(m_fRasGetEntryDialParams,
((DWORD (APIENTRY*) (LPCTSTR, LPRASDIALPARAMS, LPBOOL)) m_fRasGetEntryDialParams) (lpszPhonebook, lprasdialparams, lpfPassword)
)
}
**************************************************
DWORD RasApi::RasGetProjectionInfo(HRASCONN hrasconn, RASPROJECTION rasprojection, LPVOID lpprojection, LPDWORD lpcb)
{
RASAPI_DWORD_CALL(m_fRasGetProjectionInfo,
((DWORD (APIENTRY*) (HRASCONN, RASPROJECTION, LPVOID, LPDWORD)) m_fRasGetProjectionInfo) (hrasconn, rasprojection, lpprojection, lpcb)
)
}
*******************************************
etc …
after searching error 633 i got something like :
Error Code 633:
The port is already in use or is not configured for Remote Access dialout. If Rasdial.exe
terminates prematurely, it can leave the port in an indeterminate state. The port disappears
from Remote Access Server Manager if it is configured for dial-in. When a cu attempts to dial
out using RAS, cu receives the error message. NOTE: This problem is not specific to Rasdial.exe.
Any program that terminates prematurely without clearing the port state may cause this problem.
Stopping and restarting the Remote Access Service temporarily resolves the problem.
**************
is it correct ? How can i solve this ?