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.
  Fossies Dox: tcpflow-1.6.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

plugin.cpp File Reference
#include "config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <algorithm>
#include "bulk_extractor_i.h"
#include "aftimer.h"
#include "dfxml/src/hash_t.h"
Include dependency graph for plugin.cpp:

Go to the source code of this file.

Classes

class  scanner_command
 
class  packet_plugin_info
 

Macros

#define GET_CONFIG(T)
 

Typedefs

typedef std::vector< packet_plugin_infopacket_plugin_info_vector_t
 

Functions

static std::string upperstr (const std::string &str)
 
static size_t find_ngram_size (const sbuf_t &sbuf)
 

Variables

static int debug
 
static uint32_t max_depth_seen =0
 
static cppmutex max_depth_seenM
 
static std::vector< scanner_commandscanner_commands
 
bool scanner_commands_processed = false
 
packet_plugin_info_vector_t packet_handlers
 

Macro Definition Documentation

◆ GET_CONFIG

#define GET_CONFIG (   T)
Value:
void scanner_info::get_config(const std::string &n,T *val,const std::string &help) {\
std::stringstream ss;\
ss << *val;\
std::string v(ss.str());\
get_config(n,&v,help);\
ss.str(v);\
ss >> *val;\
}
virtual void get_config(const scanner_info::config_t &c, const std::string &name, std::string *val, const std::string &help)
Definition: plugin.cpp:415
#define T(v)
Definition: http_parser.c:236

Definition at line 431 of file plugin.cpp.

Typedef Documentation

◆ packet_plugin_info_vector_t

Definition at line 67 of file plugin.cpp.

Function Documentation

◆ find_ngram_size()

static size_t find_ngram_size ( const sbuf_t sbuf)
static

Definition at line 554 of file plugin.cpp.

References scanner_def::max_ngram, and sbuf_t::pagesize.

Referenced by be13::plugin::process_sbuf().

◆ upperstr()

static std::string upperstr ( const std::string &  str)
static

upperstr - Turns an ASCII string into upper case (should be UTF-8)

Definition at line 544 of file plugin.cpp.

Referenced by be13::plugin::process_sbuf().

Variable Documentation

◆ debug

int debug
static

◆ max_depth_seen

uint32_t max_depth_seen =0
static

Definition at line 29 of file plugin.cpp.

Referenced by be13::plugin::get_max_depth_seen(), and be13::plugin::process_sbuf().

◆ max_depth_seenM

cppmutex max_depth_seenM
static

Definition at line 30 of file plugin.cpp.

Referenced by be13::plugin::get_max_depth_seen(), and be13::plugin::process_sbuf().

◆ packet_handlers

◆ scanner_commands

◆ scanner_commands_processed