aboutsummaryrefslogtreecommitdiff
path: root/src/include/linux_compat.h
diff options
context:
space:
mode:
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>