forgot the eol-style again.
authorGed Murphy <gedmurphy@reactos.org>
Mon, 10 Oct 2005 17:51:30 +0000 (17:51 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Mon, 10 Oct 2005 17:51:30 +0000 (17:51 +0000)
svn path=/trunk/; revision=18398

reactos/apps/utils/net/netstat/netstat.h

index 00c638a..44afceb 100644 (file)
@@ -1,61 +1,61 @@
-\r
-// Maximum string lengths for ASCII ip address and port names\r
-//\r
-#define HOSTNAMELEN     256\r
-#define PORTNAMELEN     256\r
-#define ADDRESSLEN      HOSTNAMELEN+PORTNAMELEN\r
-\r
-/* command line options */\r
-BOOL bNoOptions        = FALSE; // print default\r
-BOOL bDoShowAllCons    = FALSE; // -a\r
-BOOL bDoShowEthStats   = FALSE; // -e\r
-BOOL bDoShowNumbers    = FALSE; // -n\r
-BOOL bDoShowProtoCons  = FALSE; // -p\r
-BOOL bDoShowRouteTable = FALSE; // -r\r
-BOOL bDoShowProtoStats = FALSE; // -s\r
-BOOL bDoDispSeqComp    = FALSE; // -v\r
-BOOL bLoopOutput       = FALSE; // interval\r
-\r
-\r
-/* Undocumented extended information structures available only on XP and higher */\r
-typedef struct {\r
-  DWORD dwState;        // state of the connection\r
-  DWORD dwLocalAddr;    // address on local computer\r
-  DWORD dwLocalPort;    // port number on local computer\r
-  DWORD dwRemoteAddr;   // address on remote computer\r
-  DWORD dwRemotePort;   // port number on remote computer\r
-  DWORD dwProcessId;\r
-} MIB_TCPEXROW, *PMIB_TCPEXROW;\r
-\r
-typedef struct {\r
-    DWORD dwNumEntries;\r
-    MIB_TCPEXROW table;\r
-} MIB_TCPEXTABLE, *PMIB_TCPEXTABLE;\r
-\r
-typedef struct {\r
-  DWORD   dwLocalAddr;    // address on local computer\r
-  DWORD   dwLocalPort;    // port number on local computer\r
-  DWORD   dwProcessId;\r
-} MIB_UDPEXROW, *PMIB_UDPEXROW;\r
-\r
-typedef struct {\r
-    DWORD dwNumEntries;\r
-    MIB_UDPEXROW table;\r
-} MIB_UDPEXTABLE, *PMIB_UDPEXTABLE;\r
-\r
-\r
-/* function declerations */\r
-BOOL ParseCmdline(int argc, char* argv[]);\r
-BOOL DisplayOutput(VOID);\r
-DWORD DoFormatMessage(DWORD ErrorCode);\r
-VOID ShowIpStatistics(VOID);\r
-VOID ShowIcmpStatistics(VOID);\r
-VOID ShowTcpStatistics(VOID);\r
-VOID ShowUdpStatistics(VOID);\r
-VOID ShowEthernetStatistics(VOID);\r
-VOID ShowTcpTable(VOID);\r
-VOID ShowUdpTable(VOID);\r
-PCHAR GetPortName(UINT port, PCHAR proto, PCHAR name, int namelen);\r
-PCHAR GetIpHostName(BOOL local, UINT ipaddr, PCHAR name, int namelen);\r
-VOID Usage(VOID);\r
-\r
+
+// Maximum string lengths for ASCII ip address and port names
+//
+#define HOSTNAMELEN     256
+#define PORTNAMELEN     256
+#define ADDRESSLEN      HOSTNAMELEN+PORTNAMELEN
+
+/* command line options */
+BOOL bNoOptions        = FALSE; // print default
+BOOL bDoShowAllCons    = FALSE; // -a
+BOOL bDoShowEthStats   = FALSE; // -e
+BOOL bDoShowNumbers    = FALSE; // -n
+BOOL bDoShowProtoCons  = FALSE; // -p
+BOOL bDoShowRouteTable = FALSE; // -r
+BOOL bDoShowProtoStats = FALSE; // -s
+BOOL bDoDispSeqComp    = FALSE; // -v
+BOOL bLoopOutput       = FALSE; // interval
+
+
+/* Undocumented extended information structures available only on XP and higher */
+typedef struct {
+  DWORD dwState;        // state of the connection
+  DWORD dwLocalAddr;    // address on local computer
+  DWORD dwLocalPort;    // port number on local computer
+  DWORD dwRemoteAddr;   // address on remote computer
+  DWORD dwRemotePort;   // port number on remote computer
+  DWORD dwProcessId;
+} MIB_TCPEXROW, *PMIB_TCPEXROW;
+
+typedef struct {
+    DWORD dwNumEntries;
+    MIB_TCPEXROW table;
+} MIB_TCPEXTABLE, *PMIB_TCPEXTABLE;
+
+typedef struct {
+  DWORD   dwLocalAddr;    // address on local computer
+  DWORD   dwLocalPort;    // port number on local computer
+  DWORD   dwProcessId;
+} MIB_UDPEXROW, *PMIB_UDPEXROW;
+
+typedef struct {
+    DWORD dwNumEntries;
+    MIB_UDPEXROW table;
+} MIB_UDPEXTABLE, *PMIB_UDPEXTABLE;
+
+
+/* function declerations */
+BOOL ParseCmdline(int argc, char* argv[]);
+BOOL DisplayOutput(VOID);
+DWORD DoFormatMessage(DWORD ErrorCode);
+VOID ShowIpStatistics(VOID);
+VOID ShowIcmpStatistics(VOID);
+VOID ShowTcpStatistics(VOID);
+VOID ShowUdpStatistics(VOID);
+VOID ShowEthernetStatistics(VOID);
+VOID ShowTcpTable(VOID);
+VOID ShowUdpTable(VOID);
+PCHAR GetPortName(UINT port, PCHAR proto, PCHAR name, int namelen);
+PCHAR GetIpHostName(BOOL local, UINT ipaddr, PCHAR name, int namelen);
+VOID Usage(VOID);
+