fixed BGP detection - added BGP pcap with Cisco hDLC and Cisco SLARP

This commit is contained in:
Campus
2015-10-19 01:54:41 +02:00
parent 7242b08609
commit 74b016c8b6
2 changed files with 59 additions and 4 deletions
+26 -1
View File
@@ -49,8 +49,10 @@
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* ++++++++++ Cisco HDLC data structures +++++++++++++++++++++++ */
/* +++++++++++++++ Cisco data structures +++++++++++++++++++++++ */
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* Cisco HDLC */
struct ndpi_chdlc
{
u_int8_t addr; /* 0x0F (Unicast) - 0x8F (Broadcast) */
@@ -58,6 +60,29 @@ struct ndpi_chdlc
u_int16_t proto_code; /* protocol type (e.g. 0x0800 IP) */
};
/* SLARP - Serial Line ARP http://tinyurl.com/qa54e95 */
struct ndpi_slarp
{
/* address requests (0x00)
address replies (0x01)
keep-alive (0x02)
*/
u_int32_t slarp_type;
u_int32_t addr_1;
u_int32_t addr_2;
};
/* Cisco Discovery Protocol http://tinyurl.com/qa6yw9l */
struct ndpi_cdp
{
u_int8_t version;
u_int8_t ttl;
u_int16_t checksum;
u_int16_t type;
u_int16_t length;
};
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++ Ethernet data structures +++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */