suricata
detect-ipopts.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "flow-var.h"
#include "decode-events.h"
#include "util-debug.h"
#include "detect-ipopts.h"
#include "util-unittest.h"
Include dependency graph for detect-ipopts.c:

Go to the source code of this file.

Data Structures

struct  DetectIpOpts_
 

Macros

#define PARSE_REGEX   "\\S[A-z]"
 
#define MAX_SUBSTRINGS   30
 

Functions

void IpOptsRegisterTests (void)
 this function registers unit tests for IpOpts More...
 
void DetectIpOptsFree (void *)
 
void DetectIpOptsRegister (void)
 Registration function for ipopts: keyword. More...
 

Variables

struct DetectIpOpts_ ipopts []
 

Detailed Description

Author
Breno Silva breno.nosp@m..sil.nosp@m.va@gm.nosp@m.ail..nosp@m.com

Implements the ipopts keyword

Definition in file detect-ipopts.c.

Macro Definition Documentation

#define MAX_SUBSTRINGS   30
#define PARSE_REGEX   "\\S[A-z]"

Definition at line 41 of file detect-ipopts.c.

Referenced by DetectIpOptsRegister().

Function Documentation

void DetectIpOptsFree ( void *  de_ptr)

Definition at line 207 of file detect-ipopts.c.

References SigMatch_::ctx, de, DETECT_IPOPTS, ip4h, Packet_::ip4h, Packet_::ip4vars, IPV4_OPT_FLAG_RR, IPV4Vars_::opts_set, SCFree, SCMalloc, SigMatchAlloc(), SIZE_OF_PACKET, SigMatch_::type, and unlikely.

Referenced by DetectIpOptsRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

void DetectIpOptsRegister ( void  )

Registration function for ipopts: keyword.

Registration function for ipopts: keyword

Definition at line 55 of file detect-ipopts.c.

References SigTableElmt_::desc, DETECT_IPOPTS, DetectIpOptsFree(), DetectSetupParseRegexes(), DOC_URL, DOC_VERSION, SigTableElmt_::Free, IpOptsRegisterTests(), SigTableElmt_::Match, SigTableElmt_::name, PARSE_REGEX, SigTableElmt_::RegisterTests, SigTableElmt_::Setup, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the call graph for this function:

Here is the caller graph for this function:

void IpOptsRegisterTests ( void  )

this function registers unit tests for IpOpts

Definition at line 359 of file detect-ipopts.c.

References UtRegisterTest().

Referenced by DetectIpOptsRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

struct DetectIpOpts_ ipopts[]