#include "flow.h"
#include "flow_stat.h"
#include "flow_print.h"
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
int | flow_init (FLOW *flow, char protocol, u_int32_t init_address, u_int16_t init_port, u_int32_t resp_address, u_int16_t resp_port) |
int | flow_alloc (int family, FLOW **flow, int *size) |
int | flowkey_make (FLOWKEY *key, FLOWPACKET *p) |
int | flowkey_print (FLOWKEY *key) |
int | flowkey_normalize (FLOWKEY *dst, const FLOWKEY *src) |
int | flowkeycmp_fcn (const void *s1, const void *s2, size_t n) |
Definition in file flow.c.
|
Calloc a FLOW object of the right type -- this function is not needed
Definition at line 59 of file flow.c. References FLOW_ENOMEM, FLOW_ENULL, FLOW_SUCCESS, and NULL. |
|
have not done anything with the flow->data section yet Definition at line 22 of file flow.c. References FLOW_EINVALID, FLOW_ENULL, flow_printf(), FLOW_SUCCESS, flowstat_clear(), _FLOWKEY::init_address, _FLOWKEY::init_port, _FLOW::key, NULL, _FLOWKEY::protocol, _FLOWKEY::resp_address, _FLOWKEY::resp_port, and _FLOW::stats. Referenced by flowcache_newflow(). |
|
Given a packet, generate a key.
Definition at line 94 of file flow.c. References FLOW_EINVALID, FLOW_ENULL, FLOW_SUCCESS, GetIPv4DstIp(), GetIPv4DstPort(), GetIPv4Proto(), GetIPv4SrcIp(), GetIPv4SrcPort(), _FLOWKEY::init_address, _FLOWKEY::init_port, IsIPv4Packet(), memset, _FLOWKEY::protocol, _FLOWKEY::resp_address, and _FLOWKEY::resp_port. Referenced by FlowPreprocessor(). |
|
Copy into dst from src and normalize the results so that things will hash to the same entry no matter what. This should only be used for SEARCHING as it doesn't store much else.
Definition at line 153 of file flow.c. References _FLOWKEY::init_address, _FLOWKEY::init_port, _FLOWKEY::protocol, _FLOWKEY::resp_address, and _FLOWKEY::resp_port. Referenced by flowcache_find(), flowcache_newflow(), and flowcache_releaseflow(). |
|
print out a key to a file stream
Definition at line 134 of file flow.c. References flow_printf(), _FLOWKEY::init_address, _FLOWKEY::init_port, _FLOWKEY::protocol, _FLOWKEY::resp_address, and _FLOWKEY::resp_port. Referenced by flow_callbacks(), FlowPreprocessor(), and flowps_newflow_callback(). |
|
perform key comparison
Definition at line 186 of file flow.c. References _FLOWKEY::init_address, _FLOWKEY::init_port, _FLOWKEY::protocol, _FLOWKEY::resp_address, and _FLOWKEY::resp_port. Referenced by flowcache_init(). |