105#include <yaf/autoinc.h>
107#include <yaf/decode.h>
295 char *new_file_name);
Configuration settings used to initalize the flow table in yfFlowTabAlloc().
Definition yaftab.h:120
gboolean pcap_index
If TRUE, print one line per packet we export.
Definition yaftab.h:230
gboolean flowstats_mode
If TRUE, then YAF will do some extra calculations on flows.
Definition yaftab.h:196
uint32_t max_payload
Maximum octets of payload to capture per flow direction.
Definition yaftab.h:145
gboolean silk_mode
If TRUE, clamp totalOctetCount and maxTotalOctetCount to 32 bits and force active timeout on overflow...
Definition yaftab.h:242
gboolean entropy_mode
If TRUE, then a Shannon Entropy measurement is made over the captured payload (as limited by max_payl...
Definition yaftab.h:192
const char * pcap_meta_file
File for pcap meta output.
Definition yaftab.h:160
gboolean ndpi
If TRUE, enable nDPI application labeling with standard protocols.
Definition yaftab.h:215
const char * ndpi_proto_file
If not NULL, and ndpi is TRUE, use the provided protocol file to expand the sub-protocols list and po...
Definition yaftab.h:151
gboolean p0f_mode
If TRUE, then this will enable passive OS finger printing using the p0f engine based mostly on TCP ne...
Definition yaftab.h:225
gboolean fpexport_mode
If TRUE, then this will enable exporting of full packet banners of the TCP negotiations for the first...
Definition yaftab.h:207
gboolean uniflow_mode
If TRUE, export biflows using record adjacency (two uniflows exported back-to-back.
Definition yaftab.h:254
const char * pcap_dir
Directory to put pcap-per-flow files.
Definition yaftab.h:156
gboolean no_vlan_in_key
If TRUE, this will remove the vlan in the calculation of the flow key hash.
Definition yaftab.h:220
gboolean applabel_mode
If TRUE, then the payload, (as limited by max_payload,) is sent through various plugins and code in o...
Definition yaftab.h:186
uint16_t udp_uniflow_port
If not 0, then this will enable exporting a single UDP packet with this src/dst port as a flow.
Definition yaftab.h:178
gboolean pcap_per_flow
If TRUE, then pcap_dir will be set to the directory to place pcap-per-flow files.
Definition yaftab.h:235
uint32_t max_flows
Maximum number of active flows.
Definition yaftab.h:138
gboolean mac_mode
If TRUE, collect and export source and destination Mac Addresses.
Definition yaftab.h:211
int32_t idle_sec
Idle timeout in seconds.
Definition yaftab.h:131
uint32_t pcap_search_flowkey
The flow key hash to create a PCAP for.
Definition yaftab.h:168
int32_t active_sec
Active timeout in seconds.
Definition yaftab.h:126
uint64_t pcap_max
Maximum size [in bytes] of a pcap file before rotating.
Definition yaftab.h:164
gboolean udp_multipkt_payload
If TRUE, then this will enable capturing payload for all UDP packets in a flow (instead of just the f...
Definition yaftab.h:248
gboolean force_read_all
If TRUE, then yaf will process files that are out of sequence.
Definition yaftab.h:201
const char * pcap_search_stime
The start time to create a PCAP for.
Definition yaftab.h:172
Full packet information structure.
Definition decode.h:133
YAF timestamp: represents a moment in time.
Definition yaftime.h:47
void yfUpdateRollingPcapFile(yfFlowTab_t *flowtab, char *new_file_name)
Update the Pcap Filename in the Flowtab for pcap meta data output.
void yfFlowTabCurrentTime(const yfFlowTab_t *flowtab, yfTime_t *yftime)
Get the current packet clock from a flow table.
void yfFlowTabFree(yfFlowTab_t *flowtab)
Free a previously allocated flow table.
gboolean yfFlowTabFlush(void *yfContext, gboolean close, GError **err)
Flush closed flows in the given flow table to the given IPFIX Message Buffer.
struct yfFlowTabConfig_st yfFlowTabConfig_t
Configuration settings used to initalize the flow table in yfFlowTabAlloc().
void yfGetFlowTabStats(yfFlowTab_t *flowtab, uint64_t *packets, uint64_t *flows, uint64_t *rej_pkts, uint32_t *peak, uint32_t *flush)
yfGetFlowTabStats Get Flow Table Stats for Export
void yfFlowPBuf(yfFlowTab_t *flowtab, size_t pbuflen, yfPBuf_t *pbuf)
Add a decoded packet buffer to a given flow table.
uint64_t yfFlowDumpStats(yfFlowTab_t *flowtab, GTimer *timer)
Print flow table statistics to the log.
struct yfFlowTab_st yfFlowTab_t
A flow table.
Definition yaftab.h:114
yfFlowTab_t * yfFlowTabAlloc(const yfFlowTabConfig_t *ftconfig, void **hfctx)
yfFlowTabAlloc