Added ndpi_icmphdr datatype
This commit is contained in:
@@ -285,6 +285,28 @@ typedef union
|
|||||||
#endif
|
#endif
|
||||||
} ndpi_ip_addr_t;
|
} 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;
|
||||||
|
|
||||||
/* ************************************************************ */
|
/* ************************************************************ */
|
||||||
/* ******************* ********************* ****************** */
|
/* ******************* ********************* ****************** */
|
||||||
/* ************************************************************ */
|
/* ************************************************************ */
|
||||||
|
|||||||
Reference in New Issue
Block a user