suricata
app-layer-template.c File Reference
#include "suricata-common.h"
#include "stream.h"
#include "conf.h"
#include "app-layer-detect-proto.h"
#include "app-layer-parser.h"
#include "app-layer-template.h"
#include "util-unittest.h"
Include dependency graph for app-layer-template.c:

Go to the source code of this file.

Macros

#define TEMPLATE_DEFAULT_PORT   "7"
 
#define TEMPLATE_MIN_FRAME_LEN   1
 

Enumerations

enum  { TEMPLATE_DECODER_EVENT_EMPTY_MESSAGE }
 

Functions

void RegisterTemplateParsers (void)
 
void TemplateParserRegisterTests (void)
 

Variables

SCEnumCharMap template_decoder_event_table []
 

Detailed Description

Author
FirstName LastName <yourname>

Template application layer detector and parser for learning and template pruposes.

This template implements a simple application layer for something like the echo protocol running on port 7.

Definition in file app-layer-template.c.

Macro Definition Documentation

#define TEMPLATE_DEFAULT_PORT   "7"

Definition at line 48 of file app-layer-template.c.

Referenced by RegisterTemplateParsers().

#define TEMPLATE_MIN_FRAME_LEN   1

Definition at line 52 of file app-layer-template.c.

Referenced by RegisterTemplateParsers().

Enumeration Type Documentation

anonymous enum
Enumerator
TEMPLATE_DECODER_EVENT_EMPTY_MESSAGE 

Definition at line 64 of file app-layer-template.c.

Function Documentation

void TemplateParserRegisterTests ( void  )

Definition at line 552 of file app-layer-template.c.

Referenced by RegisterTemplateParsers().

Here is the caller graph for this function:

Variable Documentation

SCEnumCharMap template_decoder_event_table[]
Initial value:

Definition at line 68 of file app-layer-template.c.