ReactOS 0.4.15-dev-6047-gb29e82d
netstat.h
Go to the documentation of this file.
1
2/* Maximum string lengths for ASCII ip address and port names */
3#define HOSTNAMELEN 256
4#define PORTNAMELEN 256
5#define ADDRESSLEN HOSTNAMELEN+PORTNAMELEN
6
7/* command line options */
8BOOL bNoOptions = FALSE; // print default
18BOOL bLoopOutput = FALSE; // interval
19
20/* Undocumented extended information structures available only on XP and higher */
21typedef struct {
22 DWORD dwState; // state of the connection
23 DWORD dwLocalAddr; // address on local computer
24 DWORD dwLocalPort; // port number on local computer
25 DWORD dwRemoteAddr; // address on remote computer
26 DWORD dwRemotePort; // port number on remote computer
29
30typedef struct {
34
35typedef struct {
36 DWORD dwLocalAddr; // address on local computer
37 DWORD dwLocalPort; // port number on local computer
40
41typedef struct {
45
46/* function declarations */
54PCHAR GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen);
55PCHAR GetIpHostName(BOOL Local, UINT IpAddr, CHAR Name[], INT NameLen);
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
CPPORT Port[4]
Definition: headless.c:35
unsigned int UINT
Definition: ndis.h:50
BOOL ShowTcpTable(VOID)
Definition: netstat.c:409
BOOL bNoOptions
Definition: netstat.h:8
struct MIB_TCPEXTABLE * PMIB_TCPEXTABLE
BOOL bDoShowNumbers
Definition: netstat.h:12
VOID ShowTcpStatistics(VOID)
Definition: netstat.c:329
BOOL bDoShowProtoCons
Definition: netstat.h:13
BOOL bDoShowEthStats
Definition: netstat.h:11
BOOL bDoShowAllCons
Definition: netstat.h:9
BOOL ShowUdpTable(VOID)
Definition: netstat.c:483
BOOL bLoopOutput
Definition: netstat.h:18
VOID ShowEthernetStatistics(VOID)
Definition: netstat.c:371
BOOL bDoShowProcName
Definition: netstat.h:10
BOOL bDoShowProcessId
Definition: netstat.h:16
PCHAR GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen)
Definition: netstat.c:541
BOOL bDoShowProtoStats
Definition: netstat.h:15
VOID ShowIcmpStatistics(VOID)
Definition: netstat.c:282
VOID ShowIpStatistics(VOID)
Definition: netstat.c:246
BOOL bDoShowRouteTable
Definition: netstat.h:14
PCHAR GetIpHostName(BOOL Local, UINT IpAddr, CHAR Name[], INT NameLen)
Definition: netstat.c:562
struct MIB_TCPEXROW * PMIB_TCPEXROW
VOID ShowUdpStatistics(VOID)
Definition: netstat.c:352
struct MIB_UDPEXROW * PMIB_UDPEXROW
BOOL bDoDispSeqComp
Definition: netstat.h:17
struct MIB_UDPEXTABLE * PMIB_UDPEXTABLE
DWORD dwRemoteAddr
Definition: netstat.h:25
DWORD dwState
Definition: netstat.h:22
DWORD dwRemotePort
Definition: netstat.h:26
DWORD dwLocalPort
Definition: netstat.h:24
DWORD dwLocalAddr
Definition: netstat.h:23
DWORD dwProcessId
Definition: netstat.h:27
MIB_TCPEXROW table
Definition: netstat.h:32
DWORD dwNumEntries
Definition: netstat.h:31
DWORD dwProcessId
Definition: netstat.h:38
DWORD dwLocalAddr
Definition: netstat.h:36
DWORD dwLocalPort
Definition: netstat.h:37
MIB_UDPEXROW table
Definition: netstat.h:43
DWORD dwNumEntries
Definition: netstat.h:42
int32_t INT
Definition: typedefs.h:58
const char * PCSTR
Definition: typedefs.h:52
char * PCHAR
Definition: typedefs.h:51
char CHAR
Definition: xmlstorage.h:175