suricata
app-layer-register.h File Reference
Include dependency graph for app-layer-register.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AppLayerParser
 
struct  AppLayerProtocolDetect
 First part of AppLayerParser, needed only for protocol detection. More...
 

Typedefs

typedef struct AppLayerParser AppLayerParser
 
typedef struct AppLayerProtocolDetect AppLayerProtocolDetect
 First part of AppLayerParser, needed only for protocol detection. More...
 

Functions

AppProto SCAppLayerRegisterProtocolDetection (const struct AppLayerProtocolDetect *parser, int enable_default)
 App layer protocol detection function. More...
 
int AppLayerRegisterParser (const struct AppLayerParser *p, AppProto alproto)
 App layer protocol registration function. More...
 
int SCAppLayerRegisterParserAlias (const char *proto_name, const char *proto_alias)
 

Detailed Description

Typedef Documentation

◆ AppLayerParser

◆ AppLayerProtocolDetect

First part of AppLayerParser, needed only for protocol detection.

Function Documentation

◆ AppLayerRegisterParser()

int AppLayerRegisterParser ( const struct AppLayerParser p,
AppProto  alproto 
)

App layer protocol registration function.

Parameters
parserThe parser declaration structure.
alprotoThe application layer protocol identifier.
Return values
0if successful. On error, this function never returns.

Definition at line 94 of file app-layer-register.c.

References FatalError.

◆ SCAppLayerRegisterParserAlias()

int SCAppLayerRegisterParserAlias ( const char *  proto_name,
const char *  proto_alias 
)

Definition at line 196 of file app-layer-register.c.

References AppLayerProtoDetectRegisterAlias().

Here is the call graph for this function:

◆ SCAppLayerRegisterProtocolDetection()

AppProto SCAppLayerRegisterProtocolDetection ( const struct AppLayerProtocolDetect parser,
int  enable_default 
)

App layer protocol detection function.

Parameters
parserThe parser declaration structure.
enable_defaultA boolean to indicate if default port configuration should be used if none given
Return values
TheAppProto constant if successful. On error, this function never returns.

Definition at line 39 of file app-layer-register.c.

References ALPROTO_FAILED, ALPROTO_UNKNOWN, AppProtoToString(), BUG_ON, FatalError, AppLayerProtocolDetect::name, and StringToAppProto().

Here is the call graph for this function: