suricata
|
#include "app-layer-detect-proto.h"
Go to the source code of this file.
Data Structures | |
struct | AppLayerParser |
Typedefs | |
typedef struct AppLayerParser | AppLayerParser |
Functions | |
AppProto | AppLayerRegisterProtocolDetection (const struct AppLayerParser *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 | AppLayerRegisterParserAlias (const char *proto_name, const char *proto_alias) |
Definition in file app-layer-register.h.
typedef struct AppLayerParser AppLayerParser |
int AppLayerRegisterParser | ( | const struct AppLayerParser * | p, |
AppProto | alproto | ||
) |
App layer protocol registration function.
parser | The parser declaration structure. |
alproto | The application layer protocol identifier. |
0 | if successful. On error, this function never returns. |
Definition at line 97 of file app-layer-register.c.
References ALPROTO_FAILED, ALPROTO_UNKNOWN, AppProtoToString(), BUG_ON, FatalError, and AppLayerParser::name.
int AppLayerRegisterParserAlias | ( | const char * | proto_name, |
const char * | proto_alias | ||
) |
Definition at line 194 of file app-layer-register.c.
References AppLayerProtoDetectRegisterAlias().
AppProto AppLayerRegisterProtocolDetection | ( | const struct AppLayerParser * | parser, |
int | enable_default | ||
) |
App layer protocol detection function.
parser | The parser declaration structure. |
enable_default | A boolean to indicate if default port configuration should be used if none given |
The | AppProto constant if successful. On error, this function never returns. |
Definition at line 38 of file app-layer-register.c.
References ALPROTO_FAILED, ALPROTO_UNKNOWN, AppProtoToString(), BUG_ON, FatalError, AppLayerParser::name, and StringToAppProto().