suricata
detect-http-protocol.c File Reference
#include "suricata-common.h"
#include "threads.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-state.h"
#include "detect-engine-prefilter.h"
#include "detect-engine-content-inspection.h"
#include "detect-content.h"
#include "detect-pcre.h"
#include "detect-http-header-common.h"
#include "detect-http-protocol.h"
#include "flow.h"
#include "flow-var.h"
#include "flow-util.h"
#include "util-debug.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-spm.h"
#include "util-print.h"
#include "app-layer.h"
#include "app-layer-parser.h"
#include "app-layer-htp.h"
#include "detect-http-header.h"
#include "stream-tcp.h"
Include dependency graph for detect-http-protocol.c:

Go to the source code of this file.

#define KEYWORD_NAME   "http.protocol"
 
#define KEYWORD_NAME_LEGACY   "http_protocol"
 
#define KEYWORD_DOC   "http-keywords.html#http-protocol"
 
#define BUFFER_NAME   "http_protocol"
 
#define BUFFER_DESC   "http protocol"
 
void DetectHttpProtocolRegister (void)
 Registers the keyword handlers for the "http.protocol" keyword. More...
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Implements support http_protocol sticky buffer

Definition in file detect-http-protocol.c.

Macro Definition Documentation

◆ BUFFER_DESC

#define BUFFER_DESC   "http protocol"

Definition at line 71 of file detect-http-protocol.c.

◆ BUFFER_NAME

#define BUFFER_NAME   "http_protocol"

Definition at line 70 of file detect-http-protocol.c.

◆ KEYWORD_DOC

#define KEYWORD_DOC   "http-keywords.html#http-protocol"

Definition at line 69 of file detect-http-protocol.c.

◆ KEYWORD_NAME

#define KEYWORD_NAME   "http.protocol"

Definition at line 67 of file detect-http-protocol.c.

◆ KEYWORD_NAME_LEGACY

#define KEYWORD_NAME_LEGACY   "http_protocol"

Definition at line 68 of file detect-http-protocol.c.

Function Documentation

◆ DetectHttpProtocolRegister()

void DetectHttpProtocolRegister ( void  )

Registers the keyword handlers for the "http.protocol" keyword.

Definition at line 158 of file detect-http-protocol.c.

References SigTableElmt_::alias, BUFFER_NAME, SigTableElmt_::desc, DETECT_AL_HTTP_PROTOCOL, KEYWORD_DOC, KEYWORD_NAME, KEYWORD_NAME_LEGACY, SigTableElmt_::name, SigTableElmt_::Setup, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function: