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

Go to the source code of this file.

Typedefs

typedef uint16_t AppProto
 

Enumerations

enum  AppProtoEnum {
  ALPROTO_UNKNOWN = 0, ALPROTO_HTTP1, ALPROTO_FTP, ALPROTO_SMTP,
  ALPROTO_TLS, ALPROTO_SSH, ALPROTO_IMAP, ALPROTO_JABBER,
  ALPROTO_SMB, ALPROTO_DCERPC, ALPROTO_IRC, ALPROTO_DNS,
  ALPROTO_MODBUS, ALPROTO_ENIP, ALPROTO_DNP3, ALPROTO_NFS,
  ALPROTO_NTP, ALPROTO_FTPDATA, ALPROTO_TFTP, ALPROTO_IKE,
  ALPROTO_KRB5, ALPROTO_QUIC, ALPROTO_DHCP, ALPROTO_SNMP,
  ALPROTO_SIP, ALPROTO_RFB, ALPROTO_MQTT, ALPROTO_PGSQL,
  ALPROTO_TELNET, ALPROTO_TEMPLATE, ALPROTO_RDP, ALPROTO_HTTP2,
  ALPROTO_BITTORRENT_DHT, ALPROTO_HTTP, ALPROTO_FAILED, ALPROTO_TEST,
  ALPROTO_MAX
}
 

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

Typedef Documentation

◆ AppProto

typedef uint16_t AppProto

Definition at line 80 of file app-layer-protos.h.

Enumeration Type Documentation

◆ AppProtoEnum

Enumerator
ALPROTO_UNKNOWN 
ALPROTO_HTTP1 
ALPROTO_FTP 
ALPROTO_SMTP 
ALPROTO_TLS 
ALPROTO_SSH 
ALPROTO_IMAP 
ALPROTO_JABBER 
ALPROTO_SMB 
ALPROTO_DCERPC 
ALPROTO_IRC 
ALPROTO_DNS 
ALPROTO_MODBUS 
ALPROTO_ENIP 
ALPROTO_DNP3 
ALPROTO_NFS 
ALPROTO_NTP 
ALPROTO_FTPDATA 
ALPROTO_TFTP 
ALPROTO_IKE 
ALPROTO_KRB5 
ALPROTO_QUIC 
ALPROTO_DHCP 
ALPROTO_SNMP 
ALPROTO_SIP 
ALPROTO_RFB 
ALPROTO_MQTT 
ALPROTO_PGSQL 
ALPROTO_TELNET 
ALPROTO_TEMPLATE 
ALPROTO_RDP 
ALPROTO_HTTP2 
ALPROTO_BITTORRENT_DHT 
ALPROTO_HTTP 
ALPROTO_FAILED 
ALPROTO_TEST 
ALPROTO_MAX 

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

Function Documentation

◆ AppProtoToString()

const char* AppProtoToString ( AppProto  alproto)

Maps the ALPROTO_*, to its string equivalent.

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

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

References ALPROTO_HTTP, ALPROTO_HTTP1, AppProtoStrings, ARRAY_SIZE, BUG_ON, and AppProtoStringTuple::str.

Referenced by AppLayerRegisterParser(), AppLayerRegisterProtocolDetection(), DetectEngineFrameMpmRegister(), DetectFrameMpmRegister(), DetectSignatureSetAppProto(), EngineAnalysisRules2(), EveAddAppProto(), LLVMFuzzerInitialize(), LLVMFuzzerTestOneInput(), OutputRegisterTxLogger(), RulesDumpMatchArray(), and RulesDumpTxMatchArray().

Here is the caller graph for this function:

◆ StringToAppProto()

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 94 of file app-layer-protos.c.

References ALPROTO_UNKNOWN, AppProtoStrings, ARRAY_SIZE, and str.

Referenced by AppLayerRegisterProtocolDetection(), and LLVMFuzzerInitialize().

Here is the caller graph for this function: