suricata
app-layer-protos.c File Reference
#include "suricata-common.h"
#include "app-layer-protos.h"
Include dependency graph for app-layer-protos.c:

Go to the source code of this file.

Macros

#define CASE_CODE(E)   case E: return #E
 

Functions

const char * AppProtoToString (AppProto alproto)
 Maps the ALPROTO_*, to its string equivalent. More...
 
AppProto StringToAppProto (const char *proto_name)
 Maps a string to its ALPROTO_* equivalent. More...
 

Detailed Description

Macro Definition Documentation

#define CASE_CODE (   E)    case E: return #E

Definition at line 28 of file app-layer-protos.c.

Function Documentation

AppProto StringToAppProto ( const char *  proto_name)

Maps a string to its ALPROTO_* equivalent.

Parameters
Stringequivalent for the alproto.
Return values
alprotoApp layer protocol id, or ALPROTO_UNKNOWN.

Definition at line 122 of file app-layer-protos.c.

References ALPROTO_DCERPC, ALPROTO_DHCP, ALPROTO_DNP3, ALPROTO_DNS, ALPROTO_ENIP, ALPROTO_FAILED, ALPROTO_FTP, ALPROTO_HTTP, ALPROTO_IKEV2, ALPROTO_IMAP, ALPROTO_IRC, ALPROTO_JABBER, ALPROTO_KRB5, ALPROTO_MODBUS, ALPROTO_MSN, ALPROTO_NFS, ALPROTO_NTP, ALPROTO_SMB, ALPROTO_SMTP, ALPROTO_SSH, ALPROTO_TEMPLATE, ALPROTO_TEMPLATE_RUST, ALPROTO_TLS, and ALPROTO_UNKNOWN.

Referenced by AppLayerRegisterProtocolDetection().

Here is the caller graph for this function: