17#define WIN32_NO_STATUS
88 while ((
c = *++
argv[
i]) !=
L'\0')
97 ConPuts(
StdErr,
L"'b' option is FIXME (Accepted option though unimplemented feature).\n");
99#if (_WIN32_WINNT < _WIN32_WINNT_VISTA)
130 goto StopParsingAndShowUsageHelp;
140 ConPuts(
StdErr,
L"'t' option is FIXME (Accepted option though unimplemented feature).\n");
144 ConPuts(
StdErr,
L"'v' option is FIXME (Accepted option though unimplemented feature).\n");
148StopParsingAndShowUsageHelp:
431 sprintf(Host,
"%s:%s", HostIp, HostPort);
435 sprintf(Remote,
"%s:0", HostIp);
441 sprintf(Remote,
"%s:%s", RemoteIp, RemotePort);
497 sprintf(Host,
"%s:%s", HostIp, HostPort);
546 nIpAddr =
htonl(IpAddr);
549 (nIpAddr >> 24) & 0xFF,
550 (nIpAddr >> 16) & 0xFF,
551 (nIpAddr >> 8) & 0xFF,
562 (nIpAddr >> 24) & 0xFF,
563 (nIpAddr >> 16) & 0xFF,
564 (nIpAddr >> 8) & 0xFF,
570 }
else if (IpAddr == 0x0100007f) {
581 ((nIpAddr >> 24) & 0x000000FF),
582 ((nIpAddr >> 16) & 0x000000FF),
583 ((nIpAddr >> 8) & 0x000000FF),
584 ((nIpAddr) & 0x000000FF));
char * strcpy(char *DstString, const char *SrcString)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
void ConPuts(FILE *fp, LPCWSTR psz)
#define ConInitStdStreams()
void ConPrintf(FILE *fp, LPCWSTR psz,...)
void ConResPrintf(FILE *fp, UINT nID,...)
void ConResPuts(FILE *fp, UINT nID)
#define IDS_UDP_IP4_HEADER
#define IDS_TCP_RESET_CONNECT
#define IDS_ETHERNET_NON_UNICAST_PACKET
#define IDS_IP_DATAG_FRAG_CREATE
#define IDS_DISPLAY_THEADER
#define IDS_IP_OUT_REQUEST
#define IDS_ETHERNET_BYTES
#define IDS_ETHERNET_DISCARD
#define IDS_ICMP_DEST_UNREACH
#define IDS_UDP_RECEIVE_ERROR
#define IDS_ICMP_ECHO_REPLY
#define IDS_ICMP_ADDRESSS_MASK
#define IDS_ERROR_UDP_ENDPOINT
#define IDS_IP_DATAG_FRAG_SUCCESS
#define IDS_ERROR_WSA_START
#define IDS_TCP_CURRENT_CONNECT
#define IDS_IP_REC_PACK_DISCARD
#define IDS_ICMP_SRC_QUENCHES
#define IDS_IP_DISCARD_OUT_PACK
#define IDS_DISPLAY_PROCESS
#define IDS_ETHERNET_INTERFACE_STAT
#define IDS_IP_UNKNOWN_PRO_REC
#define IDS_TCP_SEG_RETRANSMIT
#define IDS_ERROR_TCP_SNAPSHOT
#define IDS_ETHERNET_UNKNOWN
#define IDS_IP_REASSEMBLE_FAILURE
#define IDS_IP_ADDR_REC_ERROR
#define IDS_ICMP_ADDRESSS_MASK_REPLY
#define IDS_IP_REASSEMBLE_REQUIRED
#define IDS_ACTIVE_CONNECT
#define IDS_TCP_ACTIVE_OPEN
#define IDS_TCP_PASS_OPEN
#define IDS_ICMP_TIMESTAMP
#define IDS_IP_HEAD_REC_ERROR
#define IDS_UDP_DATAG_RECEIVE
#define IDS_IP_REASSEMBLE_SUCCESS
#define IDS_ICMP_TIMESTAMP_REPLY
#define IDS_IP_ROUTE_DISCARD
#define IDS_IP_OUT_PACKET_NO_ROUTE
#define IDS_IP_REC_PACK_DELIVER
#define IDS_ETHERNET_THEADER
#define IDS_ICMP4_STAT_HEADER
#define IDS_TCP_FAIL_CONNECT
#define IDS_UDP_DATAG_SEND
#define IDS_TCP_SEG_RECEIVE
#define IDS_IP4_STAT_HEADER
#define IDS_ERROR_UDP_ENDPOINT_TABLE
#define IDS_ICMP_PARAM_PROBLEM
#define IDS_ICMP_TIME_EXCEED
#define IDS_ETHERNET_UNICAST_PACKET
#define IDS_ETHERNET_ERROR
#define IDS_IP_DATAG_FRAG_FAILURE
#define IDS_ICMP_REDIRECT
#define ERROR_INSUFFICIENT_BUFFER
#define HeapFree(x, y, z)
static MIB_UDPSTATS udpStats
static PMIB_UDPTABLE udpTable
static MIB_TCPSTATS tcpStats
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
PSERVENT WSAAPI getservbyport(IN int port, IN const char FAR *proto)
INT WSAAPI gethostname(OUT char FAR *name, IN INT namelen)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct _MIB_IFTABLE MIB_IFTABLE
_Check_return_ _CRTIMP int __cdecl swscanf(_In_z_ const wchar_t *_Src, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
DWORD WINAPI GetExtendedUdpTable(PVOID pUdpTable, PDWORD pdwSize, BOOL bOrder, ULONG ulAf, UDP_TABLE_CLASS TableClass, ULONG Reserved)
DWORD WINAPI GetIfTable(PMIB_IFTABLE pIfTable, PULONG pdwSize, BOOL bOrder)
DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder, ULONG ulAf, TCP_TABLE_CLASS TableClass, ULONG Reserved)
DWORD WINAPI GetIpStatistics(PMIB_IPSTATS pStats)
DWORD WINAPI GetIcmpStatistics(PMIB_ICMP pStats)
DWORD WINAPI GetUdpStatistics(PMIB_UDPSTATS pStats)
DWORD WINAPI GetTcpStatistics(PMIB_TCPSTATS pStats)
@ TCP_TABLE_OWNER_PID_ALL
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define sprintf(buf, format,...)
_In_ NDIS_ERROR_CODE ErrorCode
VOID ShowTcpStatistics(VOID)
BOOL ParseCmdline(int argc, wchar_t *argv[])
VOID DoFormatMessage(DWORD ErrorCode)
VOID DisplayTableHeader(VOID)
VOID ShowEthernetStatistics(VOID)
PCHAR GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen)
VOID ShowIcmpStatistics(VOID)
VOID ShowIpStatistics(VOID)
PCHAR GetIpHostName(BOOL Local, UINT IpAddr, CHAR Name[], INT NameLen)
VOID ShowUdpStatistics(VOID)
INT ConMsgPuts(IN PCON_STREAM Stream, IN DWORD dwFlags, IN LPCVOID lpSource OPTIONAL, IN DWORD dwMessageId, IN DWORD dwLanguageId)
_CRTIMP int __cdecl _wsystem(_In_opt_z_ const wchar_t *_Command)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
MIBICMPSTATS icmpOutStats
MIB_TCPROW_OWNER_PID table[1]
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
struct _MIB_TCPTABLE_OWNER_PID * PMIB_TCPTABLE_OWNER_PID
@ MIB_TCP_STATE_TIME_WAIT
@ MIB_TCP_STATE_CLOSE_WAIT
struct _MIB_TCPTABLE_OWNER_PID MIB_TCPTABLE_OWNER_PID
#define LANG_USER_DEFAULT
struct _MIB_UDPTABLE_OWNER_PID * PMIB_UDPTABLE_OWNER_PID
#define FORMAT_MESSAGE_FROM_SYSTEM
int PASCAL FAR WSAGetLastError(void)
int PASCAL FAR WSACleanup(void)