ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

netstat.h
Go to the documentation of this file.
00001 
00002 /* Maximum string lengths for ASCII ip address and port names */
00003 #define HOSTNAMELEN     256
00004 #define PORTNAMELEN     256
00005 #define ADDRESSLEN      HOSTNAMELEN+PORTNAMELEN
00006 
00007 /* command line options */
00008 BOOL bNoOptions        = FALSE; // print default
00009 BOOL bDoShowAllCons    = FALSE; // -a
00010 BOOL bDoShowProcName   = FALSE; // -b
00011 BOOL bDoShowEthStats   = FALSE; // -e
00012 BOOL bDoShowNumbers    = FALSE; // -n
00013 BOOL bDoShowProtoCons  = FALSE; // -p
00014 BOOL bDoShowRouteTable = FALSE; // -r
00015 BOOL bDoShowProtoStats = FALSE; // -s
00016 BOOL bDoDispSeqComp    = FALSE; // -v
00017 BOOL bLoopOutput       = FALSE; // interval
00018 
00019 
00020 /* Undocumented extended information structures available only on XP and higher */
00021 typedef struct {
00022   DWORD dwState;        // state of the connection
00023   DWORD dwLocalAddr;    // address on local computer
00024   DWORD dwLocalPort;    // port number on local computer
00025   DWORD dwRemoteAddr;   // address on remote computer
00026   DWORD dwRemotePort;   // port number on remote computer
00027   DWORD dwProcessId;
00028 } MIB_TCPEXROW, *PMIB_TCPEXROW;
00029 
00030 typedef struct {
00031     DWORD dwNumEntries;
00032     MIB_TCPEXROW table;
00033 } MIB_TCPEXTABLE, *PMIB_TCPEXTABLE;
00034 
00035 typedef struct {
00036   DWORD   dwLocalAddr;    // address on local computer
00037   DWORD   dwLocalPort;    // port number on local computer
00038   DWORD   dwProcessId;
00039 } MIB_UDPEXROW, *PMIB_UDPEXROW;
00040 
00041 typedef struct {
00042     DWORD dwNumEntries;
00043     MIB_UDPEXROW table;
00044 } MIB_UDPEXTABLE, *PMIB_UDPEXTABLE;
00045 
00046 
00047 /* function declerations */
00048 BOOL ParseCmdline(int argc, char* argv[]);
00049 BOOL DisplayOutput(VOID);
00050 DWORD DoFormatMessage(DWORD ErrorCode);
00051 VOID ShowIpStatistics(VOID);
00052 VOID ShowIcmpStatistics(VOID);
00053 VOID ShowTcpStatistics(VOID);
00054 VOID ShowUdpStatistics(VOID);
00055 VOID ShowEthernetStatistics(VOID);
00056 VOID ShowTcpTable(VOID);
00057 VOID ShowUdpTable(VOID);
00058 PCHAR GetPortName(UINT Port, PCSTR Proto, CHAR Name[PORTNAMELEN], INT NameLen);
00059 PCHAR GetIpHostName(BOOL local, UINT ipaddr, CHAR name[HOSTNAMELEN], int namelen);
00060 VOID Usage(VOID);
00061 

Generated on Sat May 26 2012 04:16:10 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.