|
tracedump
single application IP packet sniffer
|
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 pid * | sp |
| 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 pcap * | pc |
| PCAP data. | |
Holds global program information.
Definition at line 45 of file tracedump.h.
| jmp_buf tracedump::jmp |
| 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 |
Referenced by main(), parse_argv(), pcap_init(), and sniffer_thread().
| char* tracedump::outfile |
path to output file
Definition at line 53 of file tracedump.h.
Referenced by parse_argv(), and pcap_init().
| struct pcap* tracedump::pc |
PCAP data.
Definition at line 69 of file tracedump.h.
Referenced by pcap_deinit(), pcap_init(), pcap_update(), and sniffer_thread().
| thash* tracedump::pids |
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().
| thash* tracedump::socks |
sockets: (int socknum)->(struct sock)
Definition at line 60 of file tracedump.h.
Referenced by handle_socket(), and main().
| struct pid* tracedump::sp |
| char** tracedump::src |
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().
| thash* tracedump::tcp_ports |
monitored TCP ports: (int port)->(struct port)
Definition at line 65 of file tracedump.h.
Referenced by gencode_alloc(), main(), and port_add().
| pthread_t tracedump::thread_gc |
garbage collector thread
Definition at line 64 of file tracedump.h.
Referenced by port_deinit(), and port_init().
| thash* tracedump::udp_ports |
monitored UDP ports: (int port)->(struct port)
Definition at line 66 of file tracedump.h.
Referenced by gencode_alloc(), main(), and port_add().
1.7.3