From 9f83bf4624d982c5ec654f36dc7563de393c29df Mon Sep 17 00:00:00 2001 From: Ravi Kerur Date: Sat, 14 Sep 2019 10:06:37 -0700 Subject: Add icmp and icmp6 to calculate splt and bd values. Signed-off-by: Ravi Kerur --- src/include/ndpi_typedefs.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include/ndpi_typedefs.h') diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index b67a22a14..e817b6c84 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 -- cgit v1.2.3