suricata
app-layer-protos.h File Reference

Go to the source code of this file.

Typedefs

typedef uint16_t AppProto
 

Enumerations

enum  AppProtoEnum {
  ALPROTO_UNKNOWN = 0, ALPROTO_HTTP, ALPROTO_FTP, ALPROTO_SMTP,
  ALPROTO_TLS, ALPROTO_SSH, ALPROTO_IMAP, ALPROTO_MSN,
  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_IKEV2, ALPROTO_KRB5, ALPROTO_DHCP, ALPROTO_TEMPLATE,
  ALPROTO_TEMPLATE_RUST, 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

typedef uint16_t AppProto

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

Enumeration Type Documentation

Enumerator
ALPROTO_UNKNOWN 
ALPROTO_HTTP 
ALPROTO_FTP 
ALPROTO_SMTP 
ALPROTO_TLS 
ALPROTO_SSH 
ALPROTO_IMAP 
ALPROTO_MSN 
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_IKEV2 
ALPROTO_KRB5 
ALPROTO_DHCP 
ALPROTO_TEMPLATE 
ALPROTO_TEMPLATE_RUST 
ALPROTO_FAILED 
ALPROTO_TEST 
ALPROTO_MAX 

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

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: