tcpflow
1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
![]() ![]() |
Go to the source code of this file.
Macros | |
#define | PROT_READ 0 |
#define | MAP_FILE 0 |
#define | MAP_SHARED 0 |
Functions | |
std::string | ssprintf (const char *fmt,...) |
std::string | comma_number_string (int64_t input) |
std::string | macaddr (const uint8_t *addr) |
void | init_debug (const char *pfx, int include_pid) |
void | mkdirs_for_path (std::string path) |
void | print_debug_message (const char *fmt, va_list ap) |
void | debug_real (const char *fmt,...) |
void | die (const char *fmt,...) |
void * | mmap (void *addr, size_t length, int prot, int flags, int fd, off_t offset) |
void | munmap (void *buf, size_t size) |
Variables | |
static char * | debug_prefix = NULL |
void(*)(int) | portable_signal (int signo, void(*func)(int)) |
#define PROT_READ 0 |
std::string comma_number_string | ( | int64_t | input | ) |
void debug_real | ( | const char * | fmt, |
... | |||
) |
Definition at line 164 of file util.cpp.
References print_debug_message().
void die | ( | const char * | fmt, |
... | |||
) |
Definition at line 175 of file util.cpp.
References print_debug_message().
Referenced by find_handler(), init_debug(), main(), flow::new_filename(), scan_http_cbo::on_message_complete(), tcpdemux::post_process(), and process_infile().
void init_debug | ( | const char * | pfx, |
int | include_pid | ||
) |
std::string macaddr | ( | const uint8_t * | addr | ) |
Definition at line 61 of file util.cpp.
Referenced by tcpip::dump_xml().
void mkdirs_for_path | ( | std::string | path | ) |
Definition at line 112 of file util.cpp.
References MKDIR, and split().
Referenced by flow::new_filename(), and flow::new_pcap_filename().
void* mmap | ( | void * | addr, |
size_t | length, | ||
int | prot, | ||
int | flags, | ||
int | fd, | ||
off_t | offset | ||
) |
Definition at line 230 of file util.cpp.
Referenced by sbuf_t::map_file().
void munmap | ( | void * | buf, |
size_t | size | ||
) |
Definition at line 238 of file util.cpp.
Referenced by sbuf_t::release().
void print_debug_message | ( | const char * | fmt, |
va_list | ap | ||
) |
Definition at line 150 of file util.cpp.
References debug_prefix.
Referenced by debug_real(), and die().
std::string ssprintf | ( | const char * | fmt, |
... | |||
) |
Definition at line 20 of file util.cpp.
Referenced by main(), and process_infile().
|
static |
Definition at line 15 of file util.cpp.
Referenced by init_debug(), main(), and print_debug_message().