diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_classify.h | 1 | ||||
-rw-r--r-- | src/include/ndpi_typedefs.h | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/include/ndpi_classify.h b/src/include/ndpi_classify.h index 9b5f2841f..cd03027d8 100644 --- a/src/include/ndpi_classify.h +++ b/src/include/ndpi_classify.h @@ -87,6 +87,7 @@ unsigned int ndpi_timer_lt(const struct timeval *a, const struct timeval *b); void ndpi_timer_sub(const struct timeval *a, const struct timeval *b, struct timeval *result); void ndpi_timer_clear(struct timeval *a); unsigned int ndpi_timeval_to_milliseconds(struct timeval ts); +unsigned int ndpi_timeval_to_microseconds(struct timeval ts); void ndpi_log_timestamp(char *log_ts, u_int log_ts_len); #endif /* NDPI_CLASSIFY_H */ diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index d9da6205d..ccc4faec7 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -348,6 +348,20 @@ struct ndpi_icmphdr { } un; } PACK_OFF; +/* +++++++++++++++++++++++ ICMP6 header +++++++++++++++++++++++ */ + +PACK_ON +struct ndpi_icmp6hdr { + uint8_t icmp6_type; /* type field */ + uint8_t icmp6_code; /* code field */ + uint16_t icmp6_cksum; /* checksum field */ + union { + uint32_t icmp6_un_data32[1]; /* type-specific field */ + uint16_t icmp6_un_data16[2]; /* type-specific field */ + uint8_t icmp6_un_data8[4]; /* type-specific field */ + } icmp6_dataun; +} PACK_OFF; + /* +++++++++++++++++++++++ VXLAN header +++++++++++++++++++++++ */ PACK_ON |