tracedump
single application IP packet sniffer
Data Fields

tracedump Struct Reference

Holds global program information. More...

#include <tracedump.h>

Data Fields

mmatic * mm
 global memory
jmp_buf jmp
 for exception handling
struct {
   char **   src
 packet source (pointer on argv)
   int   srclen
 number of elements in src[]
   char *   outfile
 path to output file
   int   snaplen
 PCAP snaplen.
opts
struct pidsp
 pid cache
thash * pids
 traced PIDs: (int pid)->(struct pid)
thash * socks
 sockets: (int socknum)->(struct sock)
pthread_mutex_t mutex_ports
 guards tcp_ports and udp_ports
pthread_t thread_gc
 garbage collector thread
thash * tcp_ports
 monitored TCP ports: (int port)->(struct port)
thash * udp_ports
 monitored UDP ports: (int port)->(struct port)
struct pcappc
 PCAP data.

Detailed Description

Holds global program information.

Definition at line 45 of file tracedump.h.


Field Documentation

jmp_buf tracedump::jmp

for exception handling

Definition at line 47 of file tracedump.h.

Referenced by main().

mmatic* tracedump::mm

global memory

Definition at line 46 of file tracedump.h.

Referenced by gencode_alloc(), handle_socket(), inject_socketcall(), main(), parse_argv(), pcap_init(), pid_get(), port_add(), and port_list().

pthread_mutex_t tracedump::mutex_ports

guards tcp_ports and udp_ports

Definition at line 63 of file tracedump.h.

Referenced by main(), pcap_update(), and port_add().

struct { ... } tracedump::opts

path to output file

Definition at line 53 of file tracedump.h.

Referenced by parse_argv(), and pcap_init().

PCAP data.

Definition at line 69 of file tracedump.h.

Referenced by pcap_deinit(), pcap_init(), pcap_update(), and sniffer_thread().

traced PIDs: (int pid)->(struct pid)

Definition at line 59 of file tracedump.h.

Referenced by main(), pid_del(), pid_detach_all(), and pid_get().

PCAP snaplen.

Definition at line 54 of file tracedump.h.

Referenced by parse_argv(), pcap_init(), and sniffer_thread().

sockets: (int socknum)->(struct sock)

Definition at line 60 of file tracedump.h.

Referenced by handle_socket(), and main().

struct pid* tracedump::sp

pid cache

Definition at line 58 of file tracedump.h.

Referenced by pid_get().

packet source (pointer on argv)

Definition at line 51 of file tracedump.h.

Referenced by main(), and parse_argv().

number of elements in src[]

Definition at line 52 of file tracedump.h.

Referenced by main(), and parse_argv().

monitored TCP ports: (int port)->(struct port)

Definition at line 65 of file tracedump.h.

Referenced by gencode_alloc(), main(), and port_add().

garbage collector thread

Definition at line 64 of file tracedump.h.

Referenced by port_deinit(), and port_init().

monitored UDP ports: (int port)->(struct port)

Definition at line 66 of file tracedump.h.

Referenced by gencode_alloc(), main(), and port_add().


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Enumerations Enumerator Defines