suricata
util-proto-name.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool SCProtoNameValid (uint16_t)
 Function to check if the received protocol number is valid and do we have corresponding name entry for this number or not. More...
 

Variables

const char * known_proto [256]
 

Detailed Description

Function Documentation

◆ SCProtoNameValid()

bool SCProtoNameValid ( uint16_t  proto)

Function to check if the received protocol number is valid and do we have corresponding name entry for this number or not.

Parameters
protoProtocol number to be validated
Return values
retOn success returns true otherwise false

Definition at line 195 of file util-proto-name.c.

References known_proto, and proto.

Referenced by AlertFastLogger(), and JsonAddrInfoInit().

Here is the caller graph for this function:

Variable Documentation

◆ known_proto

const char* known_proto[256]

Lookup array to hold the information related to known protocol values

Definition at line 34 of file util-proto-name.c.

Referenced by AlertFastLogger(), JsonAddrInfoInit(), and SCProtoNameValid().