suricata
|
Go to the source code of this file.
Typedefs | |
typedef struct MacSet_ | MacSet |
typedef int(* | MacSetIteratorFunc) (uint8_t *addr, MacSetSide side, void *) |
Enumerations | |
enum | MacSetSide { MAC_SET_SRC = 0, MAC_SET_DST } |
Functions | |
MacSet * | MacSetInit (int size) |
void | MacSetAdd (MacSet *, const uint8_t *src_addr, const uint8_t *dst_addr) |
void | MacSetAddWithCtr (MacSet *, const uint8_t *src_addr, const uint8_t *dst_addr, ThreadVars *tv, uint16_t ctr_src, uint16_t ctr_dst) |
int | MacSetForEach (const MacSet *, MacSetIteratorFunc, void *) |
int | MacSetSize (const MacSet *) |
void | MacSetReset (MacSet *) |
void | MacSetFree (MacSet *) |
void | MacSetRegisterFlowStorage (void) |
FlowStorageId | MacSetGetFlowStorageID (void) |
bool | MacSetFlowStorageEnabled (void) |
void | MacSetRegisterTests (void) |
Definition in file util-macset.h.
Definition at line 1 of file util-macset.h.
typedef int(* MacSetIteratorFunc) (uint8_t *addr, MacSetSide side, void *) |
Definition at line 33 of file util-macset.h.
enum MacSetSide |
Enumerator | |
---|---|
MAC_SET_SRC | |
MAC_SET_DST |
Definition at line 28 of file util-macset.h.
void MacSetAdd | ( | MacSet * | , |
const uint8_t * | src_addr, | ||
const uint8_t * | dst_addr | ||
) |
Definition at line 190 of file util-macset.c.
References MacSetAddWithCtr().
void MacSetAddWithCtr | ( | MacSet * | , |
const uint8_t * | src_addr, | ||
const uint8_t * | dst_addr, | ||
ThreadVars * | tv, | ||
uint16_t | ctr_src, | ||
uint16_t | ctr_dst | ||
) |
Definition at line 181 of file util-macset.c.
Referenced by MacSetAdd().
bool MacSetFlowStorageEnabled | ( | void | ) |
Definition at line 85 of file util-macset.c.
References g_macset_storage_id, and FlowStorageId::id.
int MacSetForEach | ( | const MacSet * | , |
MacSetIteratorFunc | , | ||
void * | |||
) |
Definition at line 220 of file util-macset.c.
void MacSetFree | ( | MacSet * | ) |
Definition at line 264 of file util-macset.c.
References MacSet_::buf, MAC_SET_DST, MAC_SET_SRC, SC_ATOMIC_SUB, SCFree, and MacSet_::size.
FlowStorageId MacSetGetFlowStorageID | ( | void | ) |
Definition at line 114 of file util-macset.c.
References g_macset_storage_id.
MacSet* MacSetInit | ( | int | size | ) |
Definition at line 91 of file util-macset.c.
References EMPTY_SET, FLOW_CHECK_MEMCAP, MacSet_::last, MAC_SET_DST, MAC_SET_SRC, SC_ATOMIC_ADD, SCCalloc, SCLogError, MacSet_::size, MacSet_::state, and unlikely.
void MacSetRegisterFlowStorage | ( | void | ) |
Definition at line 62 of file util-macset.c.
Referenced by PostConfLoadedSetup().
void MacSetRegisterTests | ( | void | ) |
Definition at line 421 of file util-macset.c.
References UtRegisterTest().
void MacSetReset | ( | MacSet * | ) |
int MacSetSize | ( | const MacSet * | ) |
Definition at line 233 of file util-macset.c.
References EMPTY_SET, MacSet_::last, MAC_SET_DST, MAC_SET_SRC, MULTI_MAC, SINGLE_MAC, and MacSet_::state.