ReactOS 0.4.16-dev-1020-gf135cab
|
#include <winsock2.h>
#include <Windows.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
#include <icmpapi.h>
#include <strsafe.h>
#include <errno.h>
#include "resource.h"
Go to the source code of this file.
Classes | |
struct | TraceInfo |
Macros | |
#define | SIZEOF_ICMP_ERROR 8 |
#define | SIZEOF_IO_STATUS_BLOCK 8 |
#define | PACKET_SIZE 32 |
#define | MAX_IPADDRESS 32 |
#define | NUM_OF_PINGS 3 |
#define | MIN_HOP_COUNT 1 |
#define | MAX_HOP_COUNT 255 |
#define | MIN_MILLISECONDS 1 |
#define | MAX_MILLISECONDS ULONG_MAX |
Functions | |
static INT | LengthOfStrResource (_In_ HINSTANCE hInst, _In_ UINT uID) |
static INT | AllocAndLoadString (_In_ UINT uID, _Out_ LPWSTR *lpTarget) |
static INT | OutputText (_In_ UINT uID,...) |
static VOID | Usage () |
static bool | GetULONG (_In_ PCWSTR String, _Out_ PULONG Value) |
static bool | ResolveTarget () |
static bool | PrintHopInfo (_In_ PVOID Buffer) |
static ULONG | GetResponseStats (_In_ PVOID ReplyBuffer, _Out_ ULONG &RoundTripTime, _Out_ PVOID &AddressInfo) |
static bool | DecodeResponse (_In_ PVOID ReplyBuffer, _In_ PVOID LastGoodResponse, _In_ bool OutputHopAddress, _Out_ bool &GoodResponse, _Out_ bool &FoundTarget) |
static bool | RunTraceRoute () |
static bool | GetUlongOptionInRange (_In_ int argc, _In_ wchar_t *argv[], _Inout_ int *i, _Out_ ULONG *Value, _In_ ULONG MinimumValue, _In_ ULONG MaximumValue) |
static bool | ParseCmdline (int argc, wchar_t *argv[]) |
EXTERN_C int | wmain (int argc, wchar_t *argv[]) |
Variables | |
struct TraceInfo | Info = { 0 } |
#define MAX_HOP_COUNT 255 |
Definition at line 37 of file tracert.cpp.
#define MAX_IPADDRESS 32 |
Definition at line 34 of file tracert.cpp.
Definition at line 39 of file tracert.cpp.
#define MIN_HOP_COUNT 1 |
Definition at line 36 of file tracert.cpp.
#define MIN_MILLISECONDS 1 |
Definition at line 38 of file tracert.cpp.
#define NUM_OF_PINGS 3 |
Definition at line 35 of file tracert.cpp.
#define PACKET_SIZE 32 |
Definition at line 33 of file tracert.cpp.
#define SIZEOF_ICMP_ERROR 8 |
Definition at line 31 of file tracert.cpp.
#define SIZEOF_IO_STATUS_BLOCK 8 |
Definition at line 32 of file tracert.cpp.
Definition at line 90 of file tracert.cpp.
Referenced by OutputText().
|
static |
Definition at line 321 of file tracert.cpp.
Referenced by RunTraceRoute().
|
static |
Definition at line 287 of file tracert.cpp.
Referenced by DecodeResponse().
Definition at line 163 of file tracert.cpp.
Referenced by GetUlongOptionInRange().
|
static |
Definition at line 571 of file tracert.cpp.
Referenced by ParseCmdline().
Definition at line 60 of file tracert.cpp.
Referenced by AllocAndLoadString().
Definition at line 119 of file tracert.cpp.
Referenced by DecodeResponse(), GetUlongOptionInRange(), ParseCmdline(), PrintHopInfo(), RunTraceRoute(), and Usage().
Definition at line 605 of file tracert.cpp.
Referenced by wmain().
Definition at line 219 of file tracert.cpp.
Referenced by DecodeResponse().
|
static |
Definition at line 186 of file tracert.cpp.
Referenced by RunTraceRoute(), and wmain().
|
static |
Definition at line 401 of file tracert.cpp.
Referenced by wmain().
Definition at line 157 of file tracert.cpp.
Referenced by ParseCmdline().
Definition at line 692 of file tracert.cpp.