Go to the documentation of this file.
24 #ifndef SURICATA_DETECT_ADDRESS_H
25 #define SURICATA_DETECT_ADDRESS_H
49 const char *
string,
bool *contains_negation);
int DetectAddressCmp(DetectAddress *, DetectAddress *)
Used to compare 2 address ranges.
int DetectAddressMatchIPv6(const DetectMatchAddressIPv6 *, uint16_t, const Address *)
Match a packets address against a signatures addrs array.
int DetectAddressMatchIPv4(const DetectMatchAddressIPv4 *, uint16_t, const Address *)
Match a packets address against a signatures addrs array.
void DetectAddressTests(void)
const DetectAddressHead * DetectParseAddress(DetectEngineCtx *de_ctx, const char *string, bool *contains_negation)
address structure for use in the detection engine.
main detection engine ctx
DetectAddress * DetectAddressCopy(DetectAddress *)
copy a DetectAddress
void DetectAddressFree(DetectAddress *)
Frees a DetectAddress instance.
int DetectAddressTestConfVars(void)
void DetectAddressMapFree(DetectEngineCtx *de_ctx)
void DetectAddressHeadCleanup(DetectAddressHead *)
Cleans a DetectAddressHead. The functions frees the address group heads(ipv4 and ipv6) inside the Det...
int DetectAddressMapInit(DetectEngineCtx *de_ctx)
DetectAddress * DetectAddressLookupInHead(const DetectAddressHead *, Address *)
Find the group matching address in a group head.
bool DetectAddressListsAreEqual(DetectAddress *list1, DetectAddress *list2)
Checks if two address group lists are equal.
int DetectAddressParse(const DetectEngineCtx *, DetectAddressHead *, const char *)
Parses an address group sent as a character string and updates the DetectAddressHead sent as the argu...
DetectAddress * DetectAddressInit(void)
Creates and returns a new instance of a DetectAddress.