Added ndpi_get_flow_error_code() API call
Fixed typo
This commit is contained in:
@@ -98,6 +98,15 @@ extern "C" {
|
||||
int ndpi_match_string_value(void *_automa, char *string_to_match,
|
||||
u_int match_len, u_int32_t *num);
|
||||
|
||||
/**
|
||||
* Return the protocol error code of a given flow
|
||||
*
|
||||
* @par flow = the flow to analyze
|
||||
* @return the error code or 0 otherwise
|
||||
*
|
||||
*/
|
||||
u_int32_t ndpi_get_flow_error_code(struct ndpi_flow_struct *flow);
|
||||
|
||||
/**
|
||||
* nDPI personal allocation and free functions
|
||||
**/
|
||||
|
||||
@@ -1300,6 +1300,12 @@ struct ndpi_flow_struct {
|
||||
char fingerprint[48];
|
||||
char class_ident[48];
|
||||
} dhcp;
|
||||
|
||||
struct {
|
||||
u_int8_t version; /* 0 = SNMPv1, 1 = SNMPv2c, 3 = SNMPv3 */
|
||||
u_int8_t primitive; /* GET, SET... */
|
||||
u_int8_t error_status;
|
||||
} snmp;
|
||||
} protos;
|
||||
|
||||
/*** ALL protocol specific 64 bit variables here ***/
|
||||
|
||||
Reference in New Issue
Block a user