-
Notifications
You must be signed in to change notification settings - Fork 0
/
WinMTRGlobal.h
106 lines (81 loc) · 1.95 KB
/
WinMTRGlobal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
//*****************************************************************************
// FILE: WinMTRGlobal.h
//
//
// DESCRIPTION:
//
//
// NOTES:
//
//
//*****************************************************************************
#ifndef GLOBAL_H_
#define GLOBAL_H_
#ifndef _WIN64
#define _USE_32BIT_TIME_T
#endif
#define VC_EXTRALEAN
#include <afxwin.h>
#include <afxext.h>
#include <afxdisp.h>
#include <afxdtctl.h>
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>
#endif
#include <afxsock.h>
#include <process.h>
#include <stdio.h>
#include <io.h>
#include <time.h>
#include <fcntl.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <memory.h>
#include <math.h>
#include <sys/types.h>
#include <sys/timeb.h>
#include <sys/stat.h>
#include "resource.h"
#define WINMTR_VERSION "0.92"
#define WINMTR_LICENSE "GNU GPL v2"
#define WINMTR_COPYRIGHT "ruWinMTR 0.92"
#define WINMTR_HOMEPAGE "http://xn--90abhbolvbbfgb9aje4m.xn--p1ai/"
#define DEFAULT_PING_SIZE 64
#define DEFAULT_INTERVAL 1.0
#define DEFAULT_MAX_LRU 128
#define DEFAULT_DNS TRUE
#define SAVED_PINGS 100
#define MaxHost 256
//#define MaxSequence 65536
#define MaxSequence 32767
//#define MaxSequence 5
#define MAXPACKET 4096
#define MINPACKET 64
#define MaxTransit 4
#define ICMP_ECHO 8
#define ICMP_ECHOREPLY 0
#define ICMP_TSTAMP 13
#define ICMP_TSTAMPREPLY 14
#define ICMP_TIME_EXCEEDED 11
#define ICMP_HOST_UNREACHABLE 3
#define MAX_UNKNOWN_HOSTS 10
#define IP_HEADER_LENGTH 20
#define MTR_NR_COLS 9
const char MTR_COLS[ MTR_NR_COLS ][10] = {
"Õîñò",
"¹",
"ïîòåðè%",
"îòïðàâ",
"ïîëó÷åíî",
"ëó÷øåå",
"ñðåäíåå",
"õóäøåå",
"ïîñëåäíåå"
};
const int MTR_COL_LENGTH[ MTR_NR_COLS ] = {
180, 30, 60, 50, 60, 50, 60, 50, 70
};
int gettimeofday(struct timeval* tv, struct timezone *tz);
#endif // ifndef GLOBAL_H_