/* 
 * $smu-mark$ 
 * $name: globals.h$ 
 * $author: Salvatore Sanfilippo <antirez@invece.org>$ 
 * $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$ 
 */ 

#ifndef _GLOBALS_H
#define _GLOBALS_H

extern float
		rtt_min,
		rtt_max,
		rtt_avg;

extern unsigned int
		tcp_th_flags,
		ip_tos,
		set_seqnum,
		tcp_seqnum,
		set_ack,
		tcp_ack;

extern unsigned short int
		data_size;

extern int	opt_debug,
		sockpacket,
		sockraw,
		sent_pkt,
		recv_pkt,
		out_of_sequence_pkt,
		sending_wait,
		linkhdr_size,
		opt_rawipmode,
		opt_icmpmode,
		opt_udpmode,
		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_tr_stop,
		opt_tr_no_rtt,
		tcp_exitcode,
		src_ttl,
		src_id,
		dst_port,
		src_port,
		initsport,
		sequence,
		src_winsize,
		src_thoff,
		count,
		ctrlzbind,
		delaytable_index,
		signlen,
		virtual_mtu,
		h_if_mtu,
		eof_reached,
		icmp_ip_version,
		icmp_ip_ihl,
		icmp_ip_tos,
		icmp_ip_tot_len,
		icmp_ip_id,
		icmp_ip_protocol,
		icmp_cksum,
		raw_ip_protocol,
		ip_frag_offset;

extern char	ifname[1024],
		ifstraddr[1024],
		datafilename[1024],
		targetname[1024],
		targetstraddr[1024],
		spoofaddr[1024],
		sign[1024],
		rsign[1024],
		ip_opt[40],
		ip_optlen;

extern struct sockaddr_in local, remote;
extern struct itimerval usec_delay;
extern volatile struct delaytable_element delaytable[TABLESIZE];
extern struct hcmphdr *hcmphdr_p;

#if (!defined OSTYPE_LINUX) || (defined FORCE_LIBPCAP)
#include <pcap.h>
extern pcap_t *pcapfp;
extern char errbuf[PCAP_ERRBUF_SIZE];
extern struct pcap_pkthdr hdr;
#endif /* ! OSTYPE_LINUX || FORCE_LIBPCAP */

#endif /* _GLOBALS_H */
