ReactOS  0.4.12-dev-43-g63b00d8
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 */
8 BOOL bNoOptions = FALSE; // print default
18 BOOL bLoopOutput = FALSE; // interval
19 
20 /* Undocumented extended information structures available only on XP and higher */
21 typedef 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 
30 typedef struct {
34 
35 typedef struct {
36  DWORD dwLocalAddr; // address on local computer
37  DWORD dwLocalPort; // port number on local computer
40 
41 typedef struct {
45 
46 /* function declarations */
47 BOOL ParseCmdline(int argc, char* argv[]);
59 VOID Usage(VOID);
signed char * PCHAR
Definition: retypes.h:7
BOOL bDoShowProtoCons
Definition: netstat.h:13
MIB_UDPEXROW table
Definition: netstat.h:43
CPPORT Port[4]
Definition: headless.c:34
static int argc
Definition: ServiceArgs.c:12
VOID ShowIcmpStatistics(VOID)
BOOL bDoShowProcessId
Definition: netstat.h:16
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4418
DWORD dwRemoteAddr
Definition: netstat.h:25
const char * PCSTR
Definition: typedefs.h:51
char CHAR
Definition: xmlstorage.h:175
DWORD dwNumEntries
Definition: netstat.h:42
DWORD dwLocalPort
Definition: netstat.h:37
struct MIB_UDPEXROW * PMIB_UDPEXROW
VOID Usage(VOID)
Definition: arp.c:509
BOOL bDoShowNumbers
Definition: netstat.h:12
VOID ShowUdpStatistics(VOID)
GLint namelen
Definition: glext.h:7232
int32_t INT
Definition: typedefs.h:56
static char ** argv
Definition: ServiceArgs.c:11
DWORD dwProcessId
Definition: netstat.h:38
DWORD dwLocalAddr
Definition: netstat.h:23
DWORD dwState
Definition: netstat.h:22
MIB_TCPEXROW table
Definition: netstat.h:32
BOOL DisplayOutput(VOID)
BOOL bDoDispSeqComp
Definition: netstat.h:17
PCHAR GetIpHostName(BOOL local, UINT ipaddr, CHAR name[HOSTNAMELEN], int namelen)
VOID ShowTcpStatistics(VOID)
PCHAR GetPortName(UINT Port, PCSTR Proto, CHAR Name[PORTNAMELEN], INT NameLen)
DWORD DoFormatMessage(DWORD ErrorCode)
Definition: netstat.c:52
BOOL bDoShowEthStats
Definition: netstat.h:11
#define PORTNAMELEN
Definition: netstat.h:4
VOID ShowEthernetStatistics(VOID)
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned int UINT
Definition: ndis.h:50
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID ShowIpStatistics(VOID)
DWORD dwNumEntries
Definition: netstat.h:31
BOOL bDoShowProtoStats
Definition: netstat.h:15
VOID ShowUdpTable(VOID)
DWORD dwProcessId
Definition: netstat.h:27
#define local
Definition: zutil.h:30
BOOL bDoShowAllCons
Definition: netstat.h:9
BOOL bNoOptions
Definition: netstat.h:8
struct MIB_TCPEXROW * PMIB_TCPEXROW
BOOL ParseCmdline(int argc, char *argv[])
Definition: netstat.c:84
DWORD dwLocalAddr
Definition: netstat.h:36
Definition: name.c:36
struct MIB_UDPEXTABLE * PMIB_UDPEXTABLE
struct MIB_TCPEXTABLE * PMIB_TCPEXTABLE
BOOL bLoopOutput
Definition: netstat.h:18
DWORD dwRemotePort
Definition: netstat.h:26
DWORD dwLocalPort
Definition: netstat.h:24
BOOL bDoShowRouteTable
Definition: netstat.h:14
#define HOSTNAMELEN
Definition: netstat.h:3
VOID ShowTcpTable(VOID)
BOOL bDoShowProcName
Definition: netstat.h:10