* command line parser needs more work
*/
-#include <windows.h>
+#define WIN32_NO_STATUS
+#include <stdarg.h>
+#include <windef.h>
+#include <winbase.h>
+#define _INC_WINDOWS
#include <winsock2.h>
#include <tchar.h>
#include <stdio.h>
#include <stdlib.h>
#include <iphlpapi.h>
-#include "netstat.h"
+#include "netstat.h"
enum ProtoType {IP, TCP, UDP, ICMP} Protocol;
DWORD Interval; /* time to pause between printing output */
_T("DELETE_TCB")
};
-
/*
* format message string and display output
*/
return 0;
}
-
/*
*
* Parse command line parameters and set any options
return EXIT_SUCCESS;
}
-
/*
* Simulate Microsofts netstat utility output
*/
return EXIT_SUCCESS;
}
-
-
-
VOID ShowIpStatistics()
{
PMIB_IPSTATS pIpStats;
HeapFree(GetProcessHeap(), 0, tcpTable);
}
-
VOID ShowUdpTable()
{
PMIB_UDPTABLE udpTable;
HeapFree(GetProcessHeap(), 0, udpTable);
}
-
/*
* Translate port numbers into their text equivalent if there is one
*/
return Name;
}
-
/*
* convert addresses into dotted decimal or hostname
*/
" print the current information only once.\n"));
}
-
-
/*
*
* Parse command line parameters and set any options