traceproto.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tp_align_ref

Defines

#define TRACEPROTO_H   1
#define TP_BUF_SIZE   1024
#define NO_PROMISC   0
#define TP_DONT_FRAG   0x4000
#define SNAPLEN   2048
#define FILTERSIZE   150
#define LINUX_OFFSET   2
#define TP_IF_ARRAY   10
#define TP_TIMESTAMP_LEN   22

Enumerations

enum  packet_track { TP_PACKET_NO, TP_PACKET_MATCH, TP_PACKET_TIMEOUT, TP_PACKET_DONE }
enum  accounting { TP_ACCOUNT_NONE, TP_ACCOUNT_TOTAL, TP_ACCOUNT_FULL }
enum  output {
  TP_GRAPHIC_OUTPUT, TP_CLASSIC_OUTPUT, TP_MIN_OUTPUT, TP_SCRIPT_OUTPUT,
  TP_CURSES_OUTPUT, TP_STD_OUTPUT, TP_NO_OUTPUT
}
enum  output_items {
  TP_OUT_HEADER, TP_OUT_HOP_NUMBER, TP_OUT_HOP_INFO, TP_OUT_TIME,
  TP_OUT_FOOTER
}
enum  packet_numbers {
  TP_TYPE_NULL, TP_TYPE_NR, TP_TYPE_SYN, TP_TYPE_ACK,
  TP_TYPE_SYNACK, TP_TYPE_SEC, TP_TYPE_RST, TP_TYPE_ACKRST,
  TP_TYPE_FIN, TP_TYPE_UDP, TP_TYPE_TIMXCEED, TP_TYPE_PORT_UNREACH,
  TP_TYPE_HOST_UNREACH, TP_TYPE_NET_UNREACH, TP_TYPE_ICMP, TP_TYPE_ECHOREPLY,
  TP_TYPE_PROHIB, TP_TYPE_OTHER
}
enum  bool { NO = 0, YES = 1 }
enum  tp_tstamps { TP_TIMESTAMP_STD = 0, TP_TIMESTAMP_US, TP_TIMESTAMP_DESCEND, TP_TIMESTAMP_EPOCH }

Variables

struct tp_align_ref tp_align_freelist
struct {
   unsigned int   continuous: 1
   unsigned int   continuous_accounting: 1
   unsigned int   do_skip: 1
   unsigned int   do_audit_exit: 1
   unsigned int   do_audit: 1
   unsigned int   tcp_resets: 1
   unsigned int   as_discovery: 1
   unsigned int   default_if: 1
   unsigned int   timestamp: 1
   unsigned int   rndm_src_port
   unsigned int   packets_per_hop
   int   max_ttl
   int   min_ttl
   int   min_src_port
   int   max_src_port
   int   min_dst_port
   int   max_dst_port
   int   src_port_incr
   int   dst_port_incr
   int   wait_timeout
   int   wait_between_packets
   char const *   protocol
   char   interface [TP_IF_ARRAY]
   int   account_level
   void(*   report )(int, struct in_addr *, int)
   char *   skip_str
   int *   skips
   int   output_style
   unsigned int   payload_size
   char *   target
   struct addrinfo *   target_addrinfo_list_start
   struct addrinfo *   target_addrinfo
   struct hostent *   packed_target_reverse
   char *   target_reverse
   int   libnet_resolve_choice
   int   hop_incr_unit
   char const *   filter_text
   char   timestamp_str [TP_TIMESTAMP_LEN]
   char   timestamp_style
   struct addrinfo   hint
behavior
struct {
   int   dst_port
   int   src_port
   int   protocol_number
   unsigned short   ip_packet_len
   unsigned char *   payload
   unsigned char   tcp_flags
   long   packed_target
   long   packed_src
   unsigned short   frag_bit
   unsigned short   ip_id
packet
struct {
   char *   prog
   unsigned int   account_hops
   struct hop_record {
      int   distance
      double   min_time
      double   max_time
      double   median_time
      double   ave_time
      int   num_packets
      int   lost_packets
      int   hop_changes
   }   hop_record
   int   continuous_count
   libnet_t *   packet
   libnet_ptag_t   tcp_h
   libnet_ptag_t   udp_h
   libnet_ptag_t   icmp_h
   libnet_ptag_t   ip_h
   char   pc_error [PCAP_ERRBUF_SIZE]
   char *   error_buff [LIBNET_ERRBUF_SIZE]
   int   current_hop
   unsigned int   packets_this_hop
   int   packet_match
   struct timeval   start_time
   struct timeval   end_time
   struct timeval   packet_wait
   double   trip_time
   pcap_t *   psocket
   struct fake_pcap {
      int   fd
      char   unused [1024]
   }   fake_psocket
   fd_set   wheel
   unsigned char *   capture_buf
   struct pcap_pkthdr   psock_hdr
   struct libnet_ipv4_hdr *   ip_hdr
   unsigned int   low_ttl
   unsigned int   incr_error: 1
   unsigned int   target_response: 1
state
struct {
   unsigned int   loop: 1
   unsigned int   interface: 1
   unsigned int   send_buf: 1
   unsigned int   recv_buf: 1
   unsigned int   packet_length: 1
   unsigned int   timestamp: 1
   unsigned int   as_lookup: 1
   unsigned int   memory: 1
debug


Define Documentation

#define FILTERSIZE   150

Definition at line 27 of file traceproto.h.

Referenced by do_filter(), and main().

#define LINUX_OFFSET   2

Definition at line 28 of file traceproto.h.

Referenced by parse_packet().

#define NO_PROMISC   0

Definition at line 24 of file traceproto.h.

Referenced by main().

#define SNAPLEN   2048

Definition at line 26 of file traceproto.h.

Referenced by main().

#define TP_BUF_SIZE   1024

Definition at line 23 of file traceproto.h.

#define TP_DONT_FRAG   0x4000

Definition at line 25 of file traceproto.h.

Referenced by main().

#define TP_IF_ARRAY   10

Definition at line 29 of file traceproto.h.

Referenced by main().

#define TP_TIMESTAMP_LEN   22

Definition at line 30 of file traceproto.h.

Referenced by make_timestamp().

#define TRACEPROTO_H   1

Definition at line 21 of file traceproto.h.


Enumeration Type Documentation

enum accounting

Enumerator:
TP_ACCOUNT_NONE 
TP_ACCOUNT_TOTAL 
TP_ACCOUNT_FULL 

Definition at line 44 of file traceproto.h.

enum bool

Enumerator:
NO 
YES 

Definition at line 89 of file traceproto.h.

enum output

Enumerator:
TP_GRAPHIC_OUTPUT 
TP_CLASSIC_OUTPUT 
TP_MIN_OUTPUT 
TP_SCRIPT_OUTPUT 
TP_CURSES_OUTPUT 
TP_STD_OUTPUT 
TP_NO_OUTPUT 

Definition at line 50 of file traceproto.h.

enum output_items

Enumerator:
TP_OUT_HEADER 
TP_OUT_HOP_NUMBER 
TP_OUT_HOP_INFO 
TP_OUT_TIME 
TP_OUT_FOOTER 

Definition at line 60 of file traceproto.h.

enum packet_numbers

Enumerator:
TP_TYPE_NULL 
TP_TYPE_NR 
TP_TYPE_SYN 
TP_TYPE_ACK 
TP_TYPE_SYNACK 
TP_TYPE_SEC 
TP_TYPE_RST 
TP_TYPE_ACKRST 
TP_TYPE_FIN 
TP_TYPE_UDP 
TP_TYPE_TIMXCEED 
TP_TYPE_PORT_UNREACH 
TP_TYPE_HOST_UNREACH 
TP_TYPE_NET_UNREACH 
TP_TYPE_ICMP 
TP_TYPE_ECHOREPLY 
TP_TYPE_PROHIB 
TP_TYPE_OTHER 

Definition at line 68 of file traceproto.h.

enum packet_track

Enumerator:
TP_PACKET_NO 
TP_PACKET_MATCH 
TP_PACKET_TIMEOUT 
TP_PACKET_DONE 

Definition at line 32 of file traceproto.h.

enum tp_tstamps

Enumerator:
TP_TIMESTAMP_STD 
TP_TIMESTAMP_US 
TP_TIMESTAMP_DESCEND 
TP_TIMESTAMP_EPOCH 

Definition at line 91 of file traceproto.h.


Variable Documentation

unsigned int account_hops

Definition at line 168 of file traceproto.h.

int account_level

Definition at line 134 of file traceproto.h.

unsigned int as_discovery

Definition at line 116 of file traceproto.h.

unsigned int as_lookup

Definition at line 220 of file traceproto.h.

double ave_time

Definition at line 174 of file traceproto.h.

struct { ... } behavior

Referenced by build_packet(), ctrl_c(), ctrl_z(), do_filter(), hop_audit(), main(), make_timestamp(), parse_icmp_packet(), parse_packet(), parse_skips(), parse_tcp_packet(), parse_udp_packet(), report_classic(), report_none(), report_std(), send_tcp_reset(), and tixe().

unsigned char* capture_buf

Definition at line 205 of file traceproto.h.

unsigned int continuous

Definition at line 110 of file traceproto.h.

unsigned int continuous_accounting

Definition at line 111 of file traceproto.h.

int continuous_count

Definition at line 179 of file traceproto.h.

int current_hop

Definition at line 187 of file traceproto.h.

struct { ... } debug

Referenced by do_filter(), freelist_cleaner(), main(), make_timestamp(), parse_debug(), parse_packet(), and tp_align().

unsigned int default_if

Definition at line 117 of file traceproto.h.

int distance

Definition at line 170 of file traceproto.h.

unsigned int do_audit

Definition at line 114 of file traceproto.h.

unsigned int do_audit_exit

Definition at line 113 of file traceproto.h.

unsigned int do_skip

Definition at line 112 of file traceproto.h.

int dst_port

Definition at line 154 of file traceproto.h.

int dst_port_incr

Definition at line 128 of file traceproto.h.

struct timeval end_time

Definition at line 191 of file traceproto.h.

char* error_buff[LIBNET_ERRBUF_SIZE]

Definition at line 186 of file traceproto.h.

struct { ... } fake_pcap * fake_psocket

int fd

Definition at line 201 of file traceproto.h.

char const* filter_text

Definition at line 147 of file traceproto.h.

unsigned short frag_bit

Definition at line 162 of file traceproto.h.

struct addrinfo hint

Definition at line 150 of file traceproto.h.

int hop_changes

Definition at line 177 of file traceproto.h.

int hop_incr_unit

Definition at line 146 of file traceproto.h.

struct { ... } hop_record * hop_record

Referenced by main().

libnet_ptag_t icmp_h

Definition at line 183 of file traceproto.h.

unsigned int incr_error

Definition at line 209 of file traceproto.h.

unsigned int interface

Definition at line 132 of file traceproto.h.

libnet_ptag_t ip_h

Definition at line 184 of file traceproto.h.

struct libnet_ipv4_hdr* ip_hdr

Definition at line 207 of file traceproto.h.

unsigned short ip_id

Definition at line 163 of file traceproto.h.

unsigned short ip_packet_len

Definition at line 157 of file traceproto.h.

int libnet_resolve_choice

Definition at line 145 of file traceproto.h.

unsigned int loop

Definition at line 214 of file traceproto.h.

int lost_packets

Definition at line 176 of file traceproto.h.

unsigned int low_ttl

Definition at line 208 of file traceproto.h.

int max_dst_port

Definition at line 126 of file traceproto.h.

int max_src_port

Definition at line 124 of file traceproto.h.

double max_time

Definition at line 172 of file traceproto.h.

int max_ttl

Definition at line 121 of file traceproto.h.

double median_time

Definition at line 173 of file traceproto.h.

unsigned int memory

Definition at line 221 of file traceproto.h.

int min_dst_port

Definition at line 125 of file traceproto.h.

int min_src_port

Definition at line 123 of file traceproto.h.

double min_time

Definition at line 171 of file traceproto.h.

int min_ttl

Definition at line 122 of file traceproto.h.

int num_packets

Definition at line 175 of file traceproto.h.

int output_style

Definition at line 138 of file traceproto.h.

long packed_src

Definition at line 161 of file traceproto.h.

long packed_target

Definition at line 160 of file traceproto.h.

struct hostent* packed_target_reverse

Definition at line 143 of file traceproto.h.

libnet_t* packet

Definition at line 180 of file traceproto.h.

Referenced by build_packet(), do_filter(), main(), parse_icmp_packet(), report_std(), send_tcp_reset(), and tixe().

unsigned int packet_length

Definition at line 218 of file traceproto.h.

int packet_match

Definition at line 189 of file traceproto.h.

struct timeval packet_wait

Definition at line 192 of file traceproto.h.

unsigned int packets_per_hop

Definition at line 120 of file traceproto.h.

unsigned int packets_this_hop

Definition at line 188 of file traceproto.h.

unsigned char* payload

Definition at line 158 of file traceproto.h.

unsigned int payload_size

Definition at line 139 of file traceproto.h.

char pc_error[PCAP_ERRBUF_SIZE]

Definition at line 185 of file traceproto.h.

char* prog

Definition at line 167 of file traceproto.h.

char const* protocol

Definition at line 131 of file traceproto.h.

int protocol_number

Definition at line 156 of file traceproto.h.

struct pcap_pkthdr psock_hdr

Definition at line 206 of file traceproto.h.

pcap_t* psocket

Definition at line 194 of file traceproto.h.

unsigned int recv_buf

Definition at line 217 of file traceproto.h.

Referenced by find_as().

void( * report)(int, struct in_addr *, int)

unsigned int rndm_src_port

Definition at line 119 of file traceproto.h.

unsigned int send_buf

Definition at line 216 of file traceproto.h.

Referenced by find_as().

char* skip_str

Definition at line 136 of file traceproto.h.

int* skips

Definition at line 137 of file traceproto.h.

int src_port

Definition at line 155 of file traceproto.h.

int src_port_incr

Definition at line 127 of file traceproto.h.

struct timeval start_time

Definition at line 190 of file traceproto.h.

struct { ... } state

Referenced by account_packet(), build_packet(), do_filter(), hop_audit(), main(), parse_icmp_packet(), parse_packet(), parse_tcp_packet(), parse_udp_packet(), reg_name(), report_classic(), report_none(), report_std(), send_tcp_reset(), and tixe().

char* target

Definition at line 140 of file traceproto.h.

struct addrinfo* target_addrinfo

Definition at line 142 of file traceproto.h.

struct addrinfo* target_addrinfo_list_start

Definition at line 141 of file traceproto.h.

unsigned int target_response

Definition at line 210 of file traceproto.h.

char* target_reverse

Definition at line 144 of file traceproto.h.

unsigned char tcp_flags

Definition at line 159 of file traceproto.h.

libnet_ptag_t tcp_h

Definition at line 181 of file traceproto.h.

unsigned int tcp_resets

Definition at line 115 of file traceproto.h.

unsigned int timestamp

Definition at line 118 of file traceproto.h.

char timestamp_str[TP_TIMESTAMP_LEN]

Definition at line 148 of file traceproto.h.

char timestamp_style

Definition at line 149 of file traceproto.h.

struct tp_align_ref tp_align_freelist

Referenced by freelist_cleaner(), main(), parse_packet(), and tp_align().

double trip_time

Definition at line 193 of file traceproto.h.

libnet_ptag_t udp_h

Definition at line 182 of file traceproto.h.

char unused[1024]

Definition at line 202 of file traceproto.h.

int wait_between_packets

Definition at line 130 of file traceproto.h.

int wait_timeout

Definition at line 129 of file traceproto.h.

fd_set wheel

Definition at line 204 of file traceproto.h.


Generated on Wed Sep 16 11:08:43 2009 for traceproto by  doxygen 1.5.4