ReactOS 0.4.15-dev-7942-gd23573b
netstat.h
Go to the documentation of this file.
1#pragma once
2
3/* Maximum string lengths for ASCII ip address and port names */
4#define HOSTNAMELEN 256
5#define PORTNAMELEN 256
6#define ADDRESSLEN HOSTNAMELEN+PORTNAMELEN
7
8/* command line options */
9BOOL bNoOptions = FALSE; // print default
19BOOL bLoopOutput = FALSE; // interval
20
21/* Undocumented extended information structures available only on XP and higher */
22typedef struct {
23 DWORD dwState; // state of the connection
24 DWORD dwLocalAddr; // address on local computer
25 DWORD dwLocalPort; // port number on local computer
26 DWORD dwRemoteAddr; // address on remote computer
27 DWORD dwRemotePort; // port number on remote computer
30
31typedef struct {
35
36typedef struct {
37 DWORD dwLocalAddr; // address on local computer
38 DWORD dwLocalPort; // port number on local computer
41
42typedef struct {
46
47/* function declarations */
55PCHAR GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen);
56PCHAR 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:388
BOOL bNoOptions
Definition: netstat.h:9
struct MIB_TCPEXTABLE * PMIB_TCPEXTABLE
BOOL bDoShowNumbers
Definition: netstat.h:13
VOID ShowTcpStatistics(VOID)
Definition: netstat.c:308
BOOL bDoShowProtoCons
Definition: netstat.h:15
BOOL bDoShowEthStats
Definition: netstat.h:12
BOOL bDoShowAllCons
Definition: netstat.h:10
BOOL ShowUdpTable(VOID)
Definition: netstat.c:462
BOOL bLoopOutput
Definition: netstat.h:19
VOID ShowEthernetStatistics(VOID)
Definition: netstat.c:350
BOOL bDoShowProcName
Definition: netstat.h:11
BOOL bDoShowProcessId
Definition: netstat.h:14
PCHAR GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen)
Definition: netstat.c:519
BOOL bDoShowProtoStats
Definition: netstat.h:17
VOID ShowIcmpStatistics(VOID)
Definition: netstat.c:266
VOID ShowIpStatistics(VOID)
Definition: netstat.c:234
BOOL bDoShowRouteTable
Definition: netstat.h:16
PCHAR GetIpHostName(BOOL Local, UINT IpAddr, CHAR Name[], INT NameLen)
Definition: netstat.c:540
struct MIB_TCPEXROW * PMIB_TCPEXROW
VOID ShowUdpStatistics(VOID)
Definition: netstat.c:331
struct MIB_UDPEXROW * PMIB_UDPEXROW
BOOL bDoDispSeqComp
Definition: netstat.h:18
struct MIB_UDPEXTABLE * PMIB_UDPEXTABLE
DWORD dwRemoteAddr
Definition: netstat.h:26
DWORD dwState
Definition: netstat.h:23
DWORD dwRemotePort
Definition: netstat.h:27
DWORD dwLocalPort
Definition: netstat.h:25
DWORD dwLocalAddr
Definition: netstat.h:24
DWORD dwProcessId
Definition: netstat.h:28
MIB_TCPEXROW table
Definition: netstat.h:33
DWORD dwNumEntries
Definition: netstat.h:32
DWORD dwProcessId
Definition: netstat.h:39
DWORD dwLocalAddr
Definition: netstat.h:37
DWORD dwLocalPort
Definition: netstat.h:38
MIB_UDPEXROW table
Definition: netstat.h:44
DWORD dwNumEntries
Definition: netstat.h:43
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