Skip to content
Newer
Older
100644 148 lines (136 sloc) 2.55 KB
7257579 @antirez Git repository created from hping3-clockskew-0.tar.gz
authored
1 /*
2 * $smu-mark$
3 * $name: globals.h$
4 * $author: Salvatore Sanfilippo <antirez@invece.org>$
5 * $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
6 * $license: This software is under GPL version 2 of license$
7 * $date: Fri Nov 5 11:55:47 MET 1999$
8 * $rev: 9$
9 */
10
11 /* $Id: globals.h,v 1.3 2004/06/18 09:53:11 antirez Exp $ */
12
13 #ifndef _GLOBALS_H
14 #define _GLOBALS_H
15
16 extern float
17 rtt_min,
18 rtt_max,
19 rtt_avg;
20
21 extern unsigned int
22 tcp_th_flags,
23 linkhdr_size,
24 h_if_mtu,
25 virtual_mtu,
26 ip_frag_offset,
27 signlen,
28 lsr_length,
29 ssr_length,
30 ip_tos,
31 set_seqnum,
32 tcp_seqnum,
33 set_ack,
34 ip_header_length,
35 tcp_ack;
36
37 extern unsigned short int
38 data_size;
39
40 extern int opt_debug,
41 sockpacket,
42 sockraw,
43 sent_pkt,
44 recv_pkt,
45 out_of_sequence_pkt,
46 sending_wait,
47 opt_rawipmode,
48 opt_icmpmode,
49 opt_udpmode,
50 opt_scanmode,
51 opt_listenmode,
52 opt_waitinusec,
53 opt_numeric,
54 opt_gethost,
55 opt_quiet,
56 opt_relid,
57 opt_fragment,
58 opt_df,
59 opt_mf,
60 opt_debug,
61 opt_verbose,
62 opt_winid_order,
63 opt_keepstill,
64 opt_datafromfile,
65 opt_hexdump,
66 opt_contdump,
67 opt_sign,
68 opt_safe,
69 opt_end,
70 opt_traceroute,
71 opt_seqnum,
72 opt_incdport,
73 opt_force_incdport,
74 opt_icmptype,
75 opt_icmpcode,
76 opt_rroute,
77 opt_tcpexitcode,
78 opt_badcksum,
79 opt_tr_keep_ttl,
80 opt_tcp_timestamp,
81 opt_clock_skew,
82 cs_window,
83 cs_window_shift,
84 cs_vector_len,
85 opt_tr_stop,
86 opt_tr_no_rtt,
87 opt_rand_dest,
88 opt_rand_source,
89 opt_lsrr,
90 opt_ssrr,
91 opt_beep,
92 opt_flood,
93 tcp_exitcode,
94 src_ttl,
95 src_id,
96 base_dst_port,
97 dst_port,
98 src_port,
99 initsport,
100 sequence,
101 src_winsize,
102 src_thoff,
103 count,
104 ctrlzbind,
105 delaytable_index,
106 eof_reached,
107 icmp_ip_version,
108 icmp_ip_ihl,
109 icmp_ip_tos,
110 icmp_ip_tot_len,
111 icmp_ip_id,
112 icmp_ip_srcport,
113 icmp_ip_dstport,
114 opt_force_icmp,
115 icmp_ip_protocol,
116 icmp_cksum,
117 raw_ip_protocol;
118
119 extern unsigned char lsr[255],
120 ssr[255];
121
122 extern char ifname[1024],
123 ifstraddr[1024],
124 datafilename[1024],
125 targetname[1024],
126 targetstraddr[1024],
127 spoofaddr[1024],
128 icmp_ip_srcip[1024],
129 icmp_ip_dstip[1024],
130 icmp_gwip[1024],
131 sign[1024],
132 rsign[1024],
133 ip_opt[40],
134 ip_optlen,
135 *opt_scanports;
136
137 extern struct sockaddr_in icmp_ip_src, icmp_ip_dst, icmp_gw, local, remote;
138 extern struct itimerval usec_delay;
139 extern volatile struct delaytable_element delaytable[TABLESIZE];
140 extern struct hcmphdr *hcmphdr_p;
141
142 #include <pcap.h>
143 extern pcap_t *pcapfp;
144 extern char errbuf[PCAP_ERRBUF_SIZE];
145 extern struct pcap_pkthdr hdr;
146
147 #endif /* _GLOBALS_H */
Something went wrong with that request. Please try again.