mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:02:57 +00:00
forgot the eol-style again.
svn path=/trunk/; revision=18398
This commit is contained in:
parent
7cd2f8dbb5
commit
57c3413b9d
1 changed files with 61 additions and 61 deletions
|
@ -1,61 +1,61 @@
|
||||||
|
|
||||||
// Maximum string lengths for ASCII ip address and port names
|
// Maximum string lengths for ASCII ip address and port names
|
||||||
//
|
//
|
||||||
#define HOSTNAMELEN 256
|
#define HOSTNAMELEN 256
|
||||||
#define PORTNAMELEN 256
|
#define PORTNAMELEN 256
|
||||||
#define ADDRESSLEN HOSTNAMELEN+PORTNAMELEN
|
#define ADDRESSLEN HOSTNAMELEN+PORTNAMELEN
|
||||||
|
|
||||||
/* command line options */
|
/* command line options */
|
||||||
BOOL bNoOptions = FALSE; // print default
|
BOOL bNoOptions = FALSE; // print default
|
||||||
BOOL bDoShowAllCons = FALSE; // -a
|
BOOL bDoShowAllCons = FALSE; // -a
|
||||||
BOOL bDoShowEthStats = FALSE; // -e
|
BOOL bDoShowEthStats = FALSE; // -e
|
||||||
BOOL bDoShowNumbers = FALSE; // -n
|
BOOL bDoShowNumbers = FALSE; // -n
|
||||||
BOOL bDoShowProtoCons = FALSE; // -p
|
BOOL bDoShowProtoCons = FALSE; // -p
|
||||||
BOOL bDoShowRouteTable = FALSE; // -r
|
BOOL bDoShowRouteTable = FALSE; // -r
|
||||||
BOOL bDoShowProtoStats = FALSE; // -s
|
BOOL bDoShowProtoStats = FALSE; // -s
|
||||||
BOOL bDoDispSeqComp = FALSE; // -v
|
BOOL bDoDispSeqComp = FALSE; // -v
|
||||||
BOOL bLoopOutput = FALSE; // interval
|
BOOL bLoopOutput = FALSE; // interval
|
||||||
|
|
||||||
|
|
||||||
/* Undocumented extended information structures available only on XP and higher */
|
/* Undocumented extended information structures available only on XP and higher */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DWORD dwState; // state of the connection
|
DWORD dwState; // state of the connection
|
||||||
DWORD dwLocalAddr; // address on local computer
|
DWORD dwLocalAddr; // address on local computer
|
||||||
DWORD dwLocalPort; // port number on local computer
|
DWORD dwLocalPort; // port number on local computer
|
||||||
DWORD dwRemoteAddr; // address on remote computer
|
DWORD dwRemoteAddr; // address on remote computer
|
||||||
DWORD dwRemotePort; // port number on remote computer
|
DWORD dwRemotePort; // port number on remote computer
|
||||||
DWORD dwProcessId;
|
DWORD dwProcessId;
|
||||||
} MIB_TCPEXROW, *PMIB_TCPEXROW;
|
} MIB_TCPEXROW, *PMIB_TCPEXROW;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DWORD dwNumEntries;
|
DWORD dwNumEntries;
|
||||||
MIB_TCPEXROW table;
|
MIB_TCPEXROW table;
|
||||||
} MIB_TCPEXTABLE, *PMIB_TCPEXTABLE;
|
} MIB_TCPEXTABLE, *PMIB_TCPEXTABLE;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DWORD dwLocalAddr; // address on local computer
|
DWORD dwLocalAddr; // address on local computer
|
||||||
DWORD dwLocalPort; // port number on local computer
|
DWORD dwLocalPort; // port number on local computer
|
||||||
DWORD dwProcessId;
|
DWORD dwProcessId;
|
||||||
} MIB_UDPEXROW, *PMIB_UDPEXROW;
|
} MIB_UDPEXROW, *PMIB_UDPEXROW;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DWORD dwNumEntries;
|
DWORD dwNumEntries;
|
||||||
MIB_UDPEXROW table;
|
MIB_UDPEXROW table;
|
||||||
} MIB_UDPEXTABLE, *PMIB_UDPEXTABLE;
|
} MIB_UDPEXTABLE, *PMIB_UDPEXTABLE;
|
||||||
|
|
||||||
|
|
||||||
/* function declerations */
|
/* function declerations */
|
||||||
BOOL ParseCmdline(int argc, char* argv[]);
|
BOOL ParseCmdline(int argc, char* argv[]);
|
||||||
BOOL DisplayOutput(VOID);
|
BOOL DisplayOutput(VOID);
|
||||||
DWORD DoFormatMessage(DWORD ErrorCode);
|
DWORD DoFormatMessage(DWORD ErrorCode);
|
||||||
VOID ShowIpStatistics(VOID);
|
VOID ShowIpStatistics(VOID);
|
||||||
VOID ShowIcmpStatistics(VOID);
|
VOID ShowIcmpStatistics(VOID);
|
||||||
VOID ShowTcpStatistics(VOID);
|
VOID ShowTcpStatistics(VOID);
|
||||||
VOID ShowUdpStatistics(VOID);
|
VOID ShowUdpStatistics(VOID);
|
||||||
VOID ShowEthernetStatistics(VOID);
|
VOID ShowEthernetStatistics(VOID);
|
||||||
VOID ShowTcpTable(VOID);
|
VOID ShowTcpTable(VOID);
|
||||||
VOID ShowUdpTable(VOID);
|
VOID ShowUdpTable(VOID);
|
||||||
PCHAR GetPortName(UINT port, PCHAR proto, PCHAR name, int namelen);
|
PCHAR GetPortName(UINT port, PCHAR proto, PCHAR name, int namelen);
|
||||||
PCHAR GetIpHostName(BOOL local, UINT ipaddr, PCHAR name, int namelen);
|
PCHAR GetIpHostName(BOOL local, UINT ipaddr, PCHAR name, int namelen);
|
||||||
VOID Usage(VOID);
|
VOID Usage(VOID);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue