Added ndpi_get_flow_error_code() API call

Fixed typo
This commit is contained in:
Luca Deri
2022-05-02 10:51:08 +02:00
parent 02d0b5fe13
commit c8f72ef764
11 changed files with 72 additions and 34 deletions
+9
View File
@@ -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
**/
+6
View File
@@ -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 ***/