Annotation of embedaddon/hping2/globals.h, revision 1.1.1.1
1.1 misho 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.13 2003/08/07 23:55:55 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_tr_stop,
82: opt_tr_no_rtt,
83: opt_rand_dest,
84: opt_rand_source,
85: opt_lsrr,
86: opt_ssrr,
87: tcp_exitcode,
88: src_ttl,
89: src_id,
90: base_dst_port,
91: dst_port,
92: src_port,
93: initsport,
94: sequence,
95: src_winsize,
96: src_thoff,
97: count,
98: ctrlzbind,
99: delaytable_index,
100: eof_reached,
101: icmp_ip_version,
102: icmp_ip_ihl,
103: icmp_ip_tos,
104: icmp_ip_tot_len,
105: icmp_ip_id,
106: icmp_ip_srcport,
107: icmp_ip_dstport,
108: opt_force_icmp,
109: icmp_ip_protocol,
110: icmp_cksum,
111: raw_ip_protocol;
112:
113: extern unsigned char lsr[255],
114: ssr[255];
115:
116: extern char ifname[1024],
117: ifstraddr[1024],
118: datafilename[1024],
119: targetname[1024],
120: targetstraddr[1024],
121: spoofaddr[1024],
122: icmp_ip_srcip[1024],
123: icmp_ip_dstip[1024],
124: icmp_gwip[1024],
125: sign[1024],
126: rsign[1024],
127: ip_opt[40],
128: ip_optlen,
129: *opt_scanports;
130:
131: extern struct sockaddr_in icmp_ip_src, icmp_ip_dst, icmp_gw, local, remote;
132: extern struct itimerval usec_delay;
133: extern volatile struct delaytable_element delaytable[TABLESIZE];
134: extern struct hcmphdr *hcmphdr_p;
135:
136: #if (!defined OSTYPE_LINUX) || (defined FORCE_LIBPCAP)
137: #include <pcap.h>
138: extern pcap_t *pcapfp;
139: extern char errbuf[PCAP_ERRBUF_SIZE];
140: extern struct pcap_pkthdr hdr;
141: #endif /* ! OSTYPE_LINUX || FORCE_LIBPCAP */
142:
143: #endif /* _GLOBALS_H */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>