Go to the documentation of this file.
24 #ifndef SURICATA_DETECT_ENGINE_PORT_H
25 #define SURICATA_DETECT_ENGINE_PORT_H
42 SCPortIntervalCompare);
IRB_PROTOTYPE(PI, SCPortIntervalNode, irb, SCPortIntervalCompare)
Container for matching data for a signature group.
int DetectPortTestConfVars(void)
struct SigGroupHead_ * sh
main detection engine ctx
DetectPort * DetectPortLookupGroup(DetectPort *dp, uint16_t port)
Function that find the group matching port in a group head.
void DetectPortPrintList(DetectPort *head)
Helper function used to print the list of ports present in this DetectPort list.
IRB_ENTRY(SCPortIntervalNode) irb
int DetectPortCmp(DetectPort *, DetectPort *)
Function that compare port groups.
int DetectPortParse(const DetectEngineCtx *, DetectPort **head, const char *str)
Function for parsing port strings.
Port structure for detection engine.
bool DetectPortListsAreEqual(DetectPort *list1, DetectPort *list2)
Checks if two port group lists are equal.
DetectPort * DetectPortCopySingle(DetectEngineCtx *, DetectPort *)
Function that return a copy of DetectPort src sigs.
int DetectPortHashAdd(DetectEngineCtx *de_ctx, DetectPort *dp)
Adds a DetectPort to the detection engine context DetectPort hash table.
DetectPort * DetectPortHashLookup(DetectEngineCtx *de_ctx, DetectPort *dp)
Used to lookup a DetectPort hash from the detection engine context DetectPort hash table.
DetectPort * DetectPortInit(void)
Alloc a DetectPort structure and update counters.
int DetectPortInsert(DetectEngineCtx *, DetectPort **, DetectPort *)
function for inserting a port group object. This also makes sure SigGroupContainer lists are handled ...
void DetectPortFree(const DetectEngineCtx *de_ctx, DetectPort *)
Free a DetectPort and its members.
void DetectPortHashFree(DetectEngineCtx *de_ctx)
Frees the hash table - DetectEngineCtx->sgh_hash_table, allocated by DetectPortInit() function.
void DetectPortTests(void)
void DetectPortPrint(DetectPort *)
Helper function that print the DetectPort info.
void DetectPortCleanupList(const DetectEngineCtx *de_ctx, DetectPort *head)
Free a DetectPort list and each of its members.
struct SCPortIntervalNode SCPortIntervalNode
IRB_HEAD(PI, SCPortIntervalNode)
int DetectPortHashInit(DetectEngineCtx *de_ctx)
Initializes the hash table in the detection engine context to hold the DetectPort hash.