aboutsummaryrefslogtreecommitdiff
path: root/src/include/linux_compat.h
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2015-10-16 17:48:38 +0200
committerCampus <campus@ntop.org>2015-10-16 17:48:38 +0200
commitfd9f4753bb36bd37a54e0aeb596e2997f958c2c8 (patch)
treef83fed241e9c78a53a04f49853f3e579812d099a /src/include/linux_compat.h
parent247acce949e6647892f745248fa46d1264eb3d90 (diff)
added cisco hdlc datalink type - fix MPLS header - added BGP pcap with cisco hdlc & MPLS header
Diffstat (limited to 'src/include/linux_compat.h')
-rw-r--r--src/include/linux_compat.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/include/linux_compat.h b/src/include/linux_compat.h
index 4f7b3cd00..0b58df76b 100644
--- a/src/include/linux_compat.h
+++ b/src/include/linux_compat.h
@@ -48,6 +48,16 @@
#pragma pack(pop) /* restore original alignment from stack */
+/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
+/* ++++++++++ Cisco HDLC data structures +++++++++++++++++++++++ */
+/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
+struct ndpi_chdlc
+{
+ u_int8_t addr; /* 0x0F (Unicast) - 0x8F (Broadcast) */
+ u_int8_t ctrl; /* always 0x00 */
+ u_int16_t proto_code; /* protocol type (e.g. 0x0800 IP) */
+};
+
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++ Ethernet data structures +++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */
@@ -59,7 +69,6 @@ struct ndpi_ethhdr
u_int16_t h_proto; /* packet type ID field */
};
-
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++ ieee802.11 data structures +++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */
@@ -125,7 +134,6 @@ struct ndpi_llc_header_proto
/* ++++++++++++++ IP data structures ++++++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */
-
/* IP header */
struct ndpi_iphdr {
#if defined(__LITTLE_ENDIAN__)
@@ -180,9 +188,11 @@ struct ndpi_ip6_ext
u_int8_t ip6e_len; /* length in units of 8 octets. */
};
-#define s6_addr __u6_addr.__u6_addr8
-#define s6_addr16 __u6_addr.__u6_addr16
-#define s6_addr32 __u6_addr.__u6_addr32
+/*
+#define s6_addr u6_addr.u6_addr8
+#define s6_addr16 u6_addr.u6_addr16
+#define s6_addr32 u6_addr.u6_addr32
+*/
#else
#ifndef __KERNEL__
#include <arpa/inet.h>