util-macset.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


typedef struct MacSet_ MacSet
typedef int(* MacSetIteratorFunc) (uint8_t *addr, MacSetSide side, void *)


enum  MacSetSide { MAC_SET_SRC = 0, MAC_SET_DST }


MacSetMacSetInit (int size)
void MacSetAdd (MacSet *, uint8_t *src_addr, uint8_t *dst_addr)
void MacSetAddWithCtr (MacSet *, uint8_t *src_addr, 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)

Detailed Description

Typedef Documentation

◆ MacSet

typedef struct MacSet_ MacSet

Definition at line 1 of file util-macset.h.

◆ MacSetIteratorFunc

typedef int(* MacSetIteratorFunc) (uint8_t *addr, MacSetSide side, void *)

Definition at line 33 of file util-macset.h.

Enumeration Type Documentation

◆ MacSetSide

enum MacSetSide

Definition at line 28 of file util-macset.h.

Function Documentation

◆ MacSetAdd()

void MacSetAdd ( MacSet ,
uint8_t *  src_addr,
uint8_t *  dst_addr 

Definition at line 188 of file util-macset.c.

References MacSetAddWithCtr().

Here is the call graph for this function:

◆ MacSetAddWithCtr()

void MacSetAddWithCtr ( MacSet ,
uint8_t *  src_addr,
uint8_t *  dst_addr,
ThreadVars tv,
uint16_t  ctr_src,
uint16_t  ctr_dst 

Definition at line 179 of file util-macset.c.

Referenced by MacSetAdd().

Here is the caller graph for this function:

◆ MacSetFlowStorageEnabled()

bool MacSetFlowStorageEnabled ( void  )

Definition at line 84 of file util-macset.c.

References g_macset_storage_id, and FlowStorageId::id.

◆ MacSetForEach()

int MacSetForEach ( const MacSet ,
MacSetIteratorFunc  ,
void *   

Definition at line 218 of file util-macset.c.

◆ MacSetFree()

void MacSetFree ( MacSet )

Definition at line 270 of file util-macset.c.

References MacSet_::buf, MAC_SET_DST, MAC_SET_SRC, SC_ATOMIC_SUB, SCFree, and MacSet_::size.

◆ MacSetGetFlowStorageID()

FlowStorageId MacSetGetFlowStorageID ( void  )

Definition at line 113 of file util-macset.c.

References g_macset_storage_id.

◆ MacSetInit()

◆ MacSetRegisterFlowStorage()

void MacSetRegisterFlowStorage ( void  )

Definition at line 61 of file util-macset.c.

Referenced by PostConfLoadedSetup().

Here is the caller graph for this function:

◆ MacSetRegisterTests()

void MacSetRegisterTests ( void  )

Definition at line 437 of file util-macset.c.

References UtRegisterTest().

Here is the call graph for this function:

◆ MacSetReset()

void MacSetReset ( MacSet )

Definition at line 262 of file util-macset.c.

References EMPTY_SET, MacSet_::last, MAC_SET_DST, MAC_SET_SRC, and MacSet_::state.

◆ MacSetSize()

int MacSetSize ( const MacSet )