diff options
author | Luca Deri <deri@ntop.org> | 2017-10-13 19:41:34 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2017-10-13 19:41:34 +0200 |
commit | 83d5a46ec483e934317671b8fa015ac12add7849 (patch) | |
tree | ecf13c6298e9f0ccaa5e9fd028a7728ccb0bb939 /src | |
parent | 7f197d12dd10a19bdccaa7942a1ccbc0b74b618b (diff) |
Added ndpi_icmphdr datatype
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_typedefs.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 8806219ef..9ac3b72a6 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -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; + /* ************************************************************ */ /* ******************* ********************* ****************** */ /* ************************************************************ */ |