Added ndpi_icmphdr datatype

This commit is contained in:
Luca Deri
2017-10-13 19:41:34 +02:00
parent 7f197d12dd
commit 83d5a46ec4
+22
View File
@@ -285,6 +285,28 @@ typedef union
#endif
} ndpi_ip_addr_t;
/* +++++++++++++++++++++++ ICMP header +++++++++++++++++++++++ */
PACK_ON
struct ndpi_icmphdr {
u_int8_t type;/* message type */
u_int8_t code;/* type sub-code */
u_int16_t checksum;
union {
struct {
u_int16_t id;
u_int16_t sequence;
} echo; /* echo datagram */
u_int32_t gateway; /* gateway address */
struct {
u_int16_t __unused;
u_int16_t mtu;
} frag;/* path mtu discovery */
} un;
} PACK_OFF;
/* ************************************************************ */
/* ******************* ********************* ****************** */
/* ************************************************************ */