diff options
author | Campus <campus@ntop.org> | 2015-10-19 01:54:41 +0200 |
---|---|---|
committer | Campus <campus@ntop.org> | 2015-10-19 01:54:41 +0200 |
commit | 74b016c8b6d74e0c2c9be55fd3ac331d23bbdbb4 (patch) | |
tree | 87661759efc2727279a948b5e55822d037e4f522 /src/include/linux_compat.h | |
parent | 7242b08609bf8a962afe560014bcdeb3f4939608 (diff) |
fixed BGP detection - added BGP pcap with Cisco hDLC and Cisco SLARP
Diffstat (limited to 'src/include/linux_compat.h')
-rw-r--r-- | src/include/linux_compat.h | 27 |
1 files changed, 26 insertions, 1 deletions
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 +++++++++++++ */ /* ++++++++++++++++++++++++++++++++++++++++++++++++++ */ |