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