From 74b016c8b6d74e0c2c9be55fd3ac331d23bbdbb4 Mon Sep 17 00:00:00 2001 From: Campus Date: Mon, 19 Oct 2015 01:54:41 +0200 Subject: fixed BGP detection - added BGP pcap with Cisco hDLC and Cisco SLARP --- src/include/linux_compat.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/include/linux_compat.h b/src/include/linux_compat.h index 0b58df76b..57f00d154 100644 --- a/src/include/linux_compat.h +++ b/src/include/linux_compat.h @@ -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 +++++++++++++ */ /* ++++++++++++++++++++++++++++++++++++++++++++++++++ */ -- cgit v1.2.3