forked from antirez/hping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
147 lines (136 loc) · 2.55 KB
/
globals.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/*
* $smu-mark$
* $name: globals.h$
* $author: Salvatore Sanfilippo <[email protected]>$
* $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
* $license: This software is under GPL version 2 of license$
* $date: Fri Nov 5 11:55:47 MET 1999$
* $rev: 9$
*/
/* $Id: globals.h,v 1.3 2004/06/18 09:53:11 antirez Exp $ */
#ifndef _GLOBALS_H
#define _GLOBALS_H
extern float
rtt_min,
rtt_max,
rtt_avg;
extern unsigned int
tcp_th_flags,
linkhdr_size,
h_if_mtu,
virtual_mtu,
ip_frag_offset,
signlen,
lsr_length,
ssr_length,
ip_tos,
set_seqnum,
tcp_seqnum,
set_ack,
ip_header_length,
tcp_ack;
extern unsigned short int
data_size;
extern int opt_debug,
sockpacket,
sockraw,
sent_pkt,
recv_pkt,
out_of_sequence_pkt,
sending_wait,
opt_rawipmode,
opt_icmpmode,
opt_udpmode,
opt_scanmode,
opt_listenmode,
opt_waitinusec,
opt_numeric,
opt_gethost,
opt_quiet,
opt_relid,
opt_fragment,
opt_df,
opt_mf,
opt_debug,
opt_verbose,
opt_winid_order,
opt_keepstill,
opt_datafromfile,
opt_hexdump,
opt_contdump,
opt_sign,
opt_safe,
opt_end,
opt_traceroute,
opt_seqnum,
opt_incdport,
opt_force_incdport,
opt_icmptype,
opt_icmpcode,
opt_rroute,
opt_tcpexitcode,
opt_badcksum,
opt_tr_keep_ttl,
opt_tcp_timestamp,
opt_clock_skew,
cs_window,
cs_window_shift,
cs_vector_len,
opt_tr_stop,
opt_tr_no_rtt,
opt_rand_dest,
opt_rand_source,
opt_lsrr,
opt_ssrr,
opt_beep,
opt_flood,
tcp_exitcode,
src_ttl,
src_id,
base_dst_port,
dst_port,
src_port,
initsport,
sequence,
src_winsize,
src_thoff,
count,
ctrlzbind,
delaytable_index,
eof_reached,
icmp_ip_version,
icmp_ip_ihl,
icmp_ip_tos,
icmp_ip_tot_len,
icmp_ip_id,
icmp_ip_srcport,
icmp_ip_dstport,
opt_force_icmp,
icmp_ip_protocol,
icmp_cksum,
raw_ip_protocol;
extern unsigned char lsr[255],
ssr[255];
extern char ifname[1024],
ifstraddr[1024],
datafilename[1024],
targetname[1024],
targetstraddr[1024],
spoofaddr[1024],
icmp_ip_srcip[1024],
icmp_ip_dstip[1024],
icmp_gwip[1024],
sign[1024],
rsign[1024],
ip_opt[40],
ip_optlen,
*opt_scanports;
extern struct sockaddr_in icmp_ip_src, icmp_ip_dst, icmp_gw, local, remote;
extern struct itimerval usec_delay;
extern volatile struct delaytable_element delaytable[TABLESIZE];
extern struct hcmphdr *hcmphdr_p;
#include <pcap.h>
extern pcap_t *pcapfp;
extern char errbuf[PCAP_ERRBUF_SIZE];
extern struct pcap_pkthdr hdr;
#endif /* _GLOBALS_H */