suricata
|
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... | |
bool | SCGetProtoByName (const char *protoname, uint8_t *proto_number) |
Function to return the protocol number for a named protocol. Note that protocol name aliases are honored. More... | |
void | SCProtoNameInit (void) |
void | SCProtoNameRelease (void) |
void | SCProtoNameRegisterTests (void) |
Variables | |
const char * | known_proto [256] |
Definition in file util-proto-name.h.
bool SCGetProtoByName | ( | const char * | protoname, |
uint8_t * | proto_number | ||
) |
Function to return the protocol number for a named protocol. Note that protocol name aliases are honored.
protoname | Protocol name (or alias for a protocol name). |
proto_number | Where to return protocol number |
ret | On success returns the protocol number; else -1 |
Definition at line 466 of file util-proto-name.c.
References HashTableLookup(), and proto.
void SCProtoNameInit | ( | void | ) |
Definition at line 417 of file util-proto-name.c.
Referenced by GlobalsInitPreConfig().
void SCProtoNameRegisterTests | ( | void | ) |
Definition at line 502 of file util-proto-name.c.
References UtRegisterTest().
void SCProtoNameRelease | ( | void | ) |
Definition at line 438 of file util-proto-name.c.
Referenced by GlobalsDestroy().
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.
proto | Protocol number to be validated |
ret | On success returns true otherwise false |
Definition at line 453 of file util-proto-name.c.
References known_proto, and proto.
const char* known_proto[256] |
Lookup array to hold the information related to known protocol values
Definition at line 40 of file util-proto-name.c.
Referenced by SCProtoNameValid().