#include "config.h"
Go to the source code of this file.
Classes | |
struct | cleanup |
Defines | |
#define | TP_MISCFUNC_H 1 |
Functions | |
int | parse_skips (char *) |
void | ctrl_c (__attribute__((__unused__)) int unused) |
void | ctrl_z (__attribute__((__unused__)) int unused) |
double | diff_time (struct timeval *, struct timeval *) |
int | do_filter (void) |
int | account_packet (double return_time) |
void | hop_audit (void) |
int | reg_name (char *) |
void | tixe (struct cleanup clean_list, int exit_status) __attribute__((__noreturn__)) |
void | version (void) |
unsigned char | parse_flags (char *) |
int | make_timestamp (char *) |
u_char * | tp_align (const u_char *, unsigned int, unsigned int) |
void | dropexcesscapabilities (void) |
void | parse_debug (char *optarg) |
void | debug_packet (const u_int8_t *const raw, const u_int bytes) |
Variables | |
struct cleanup | tixe_cleanup |
#define TP_MISCFUNC_H 1 |
Definition at line 21 of file tp_miscfunc.h.
int account_packet | ( | double | return_time | ) |
Definition at line 209 of file tp_miscfunc.c.
References state.
Referenced by main(), parse_icmp_packet(), parse_tcp_packet(), and parse_udp_packet().
void ctrl_c | ( | __attribute__((__unused__)) int | unused | ) |
void ctrl_z | ( | __attribute__((__unused__)) int | unused | ) |
void debug_packet | ( | const u_int8_t *const | raw, | |
const u_int | bytes | |||
) |
double diff_time | ( | struct timeval * | , | |
struct timeval * | ||||
) |
int do_filter | ( | void | ) |
Definition at line 157 of file tp_miscfunc.c.
References behavior, debug, FILTERSIZE, packet, state, and YES.
Referenced by main().
void dropexcesscapabilities | ( | void | ) |
void hop_audit | ( | void | ) |
Definition at line 276 of file tp_miscfunc.c.
References behavior, NO, state, tixe(), tixe_cleanup, TP_ACCOUNT_FULL, TP_ACCOUNT_NONE, and YES.
Referenced by main(), report_classic(), report_none(), and report_std().
int make_timestamp | ( | char * | ) |
Definition at line 447 of file tp_miscfunc.c.
References behavior, debug, tixe(), tixe_cleanup, TP_TIMESTAMP_DESCEND, TP_TIMESTAMP_EPOCH, TP_TIMESTAMP_LEN, TP_TIMESTAMP_STD, TP_TIMESTAMP_US, and YES.
Referenced by main().
void parse_debug | ( | char * | optarg | ) |
unsigned char parse_flags | ( | char * | ) |
int parse_skips | ( | char * | ) |
Definition at line 59 of file tp_miscfunc.c.
References behavior, cleanup::skips_free, tixe(), tixe_cleanup, and YES.
Referenced by main().
int reg_name | ( | char * | ) |
void tixe | ( | struct cleanup | clean_list, | |
int | exit_status | |||
) |
Definition at line 351 of file tp_miscfunc.c.
References cleanup::addrinfo_cleanup, behavior, cleanup::fake_psocket_free, cleanup::hop_record_free, cleanup::libnet_cleanup, packet, cleanup::payload_free, cleanup::pcap_cleanup, cleanup::skips_free, state, and YES.
Referenced by build_packet(), hop_audit(), main(), make_timestamp(), parse_skips(), and tp_align().
u_char* tp_align | ( | const u_char * | , | |
unsigned | int, | |||
unsigned | int | |||
) |
Definition at line 524 of file tp_miscfunc.c.
References debug, tp_align_ref::next, tp_align_ref::ref, tixe(), tixe_cleanup, tp_align_freelist, and YES.
Referenced by parse_packet(), parse_tcp_packet(), and parse_udp_packet().
void version | ( | void | ) |
Definition at line 383 of file tp_miscfunc.c.
References PACKAGE, RELEASE_DATE, and VERSION.
Referenced by main().
struct cleanup tixe_cleanup |
Referenced by build_packet(), hop_audit(), main(), make_timestamp(), parse_skips(), and tp_align().