Fixed API documentation: packet tiestamp is expressed in milliseconds
This commit is contained in:
@@ -284,7 +284,7 @@ extern "C" {
|
|||||||
* @par flow = pointer to the connection state machine
|
* @par flow = pointer to the connection state machine
|
||||||
* @par packet = unsigned char pointer to the Layer 3 (IP header)
|
* @par packet = unsigned char pointer to the Layer 3 (IP header)
|
||||||
* @par packetlen = the length of the packet
|
* @par packetlen = the length of the packet
|
||||||
* @par current_tick = the current timestamp for the packet
|
* @par packet_time_ms = the current timestamp for the packet (expressed in msec)
|
||||||
* @par src = pointer to the source subscriber state machine
|
* @par src = pointer to the source subscriber state machine
|
||||||
* @par dst = pointer to the destination subscriber state machine
|
* @par dst = pointer to the destination subscriber state machine
|
||||||
* @return void
|
* @return void
|
||||||
@@ -294,7 +294,7 @@ extern "C" {
|
|||||||
struct ndpi_flow_struct *flow,
|
struct ndpi_flow_struct *flow,
|
||||||
const unsigned char *packet,
|
const unsigned char *packet,
|
||||||
const unsigned short packetlen,
|
const unsigned short packetlen,
|
||||||
const u_int64_t current_tick,
|
const u_int64_t packet_time_ms,
|
||||||
struct ndpi_id_struct *src,
|
struct ndpi_id_struct *src,
|
||||||
struct ndpi_id_struct *dst);
|
struct ndpi_id_struct *dst);
|
||||||
|
|
||||||
@@ -306,7 +306,7 @@ extern "C" {
|
|||||||
* @par flow = pointer to the connection state machine
|
* @par flow = pointer to the connection state machine
|
||||||
* @par packet = unsigned char pointer to the Layer 3 (IP header)
|
* @par packet = unsigned char pointer to the Layer 3 (IP header)
|
||||||
* @par packetlen = the length of the packet
|
* @par packetlen = the length of the packet
|
||||||
* @par current_tick = the current timestamp for the packet
|
* @par packet_time_ms = the current timestamp for the packet (expressed in msec)
|
||||||
* @par src = pointer to the source subscriber state machine
|
* @par src = pointer to the source subscriber state machine
|
||||||
* @par dst = pointer to the destination subscriber state machine
|
* @par dst = pointer to the destination subscriber state machine
|
||||||
* @return the detected ID of the protocol
|
* @return the detected ID of the protocol
|
||||||
@@ -316,7 +316,7 @@ extern "C" {
|
|||||||
struct ndpi_flow_struct *flow,
|
struct ndpi_flow_struct *flow,
|
||||||
const unsigned char *packet,
|
const unsigned char *packet,
|
||||||
const unsigned short packetlen,
|
const unsigned short packetlen,
|
||||||
const u_int64_t current_tick,
|
const u_int64_t packet_time_ms,
|
||||||
struct ndpi_id_struct *src,
|
struct ndpi_id_struct *src,
|
||||||
struct ndpi_id_struct *dst);
|
struct ndpi_id_struct *dst);
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -131,7 +131,7 @@ void *ndpi_realloc(void *ptr, size_t old_size, size_t new_size) {
|
|||||||
/* ****************************************** */
|
/* ****************************************** */
|
||||||
|
|
||||||
char *ndpi_strdup(const char *s) {
|
char *ndpi_strdup(const char *s) {
|
||||||
if( s == NULL ){
|
if(s == NULL ){
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1200,7 +1200,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
|
|||||||
printf("Client SSL [ALPN: %u]\n", alpn_len);
|
printf("Client SSL [ALPN: %u]\n", alpn_len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if((alpn_str_len+alpn_len+1) < sizeof(alpn_str)) {
|
if((alpn_str_len+alpn_len+1) < (sizeof(alpn_str)-1)) {
|
||||||
if(alpn_str_len > 0) {
|
if(alpn_str_len > 0) {
|
||||||
alpn_str[alpn_str_len] = ',';
|
alpn_str[alpn_str_len] = ',';
|
||||||
alpn_str_len++;
|
alpn_str_len++;
|
||||||
|
|||||||
Reference in New Issue
Block a user