aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/coap.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-06-08 19:08:51 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-06-21 20:22:43 +0200
commit2fe9f95c9913ab7d649a3e0635e5d4029b775a50 (patch)
tree06e4d12c7119ba53a78d27fe52dc869b3a097a3f /src/lib/protocols/coap.c
parentcc582052b384f7e7e40dc1193683fcb353864d16 (diff)
Add Apache Thrift protocol dissector.add/apache-thrift
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols/coap.c')
-rw-r--r--src/lib/protocols/coap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/protocols/coap.c b/src/lib/protocols/coap.c
index 6d0f68d46..8935aa22a 100644
--- a/src/lib/protocols/coap.c
+++ b/src/lib/protocols/coap.c
@@ -39,6 +39,8 @@ struct ndpi_coap_hdr
u_int8_t version:2, type:2, tkl:4;
#elif defined(__LITTLE_ENDIAN__)
u_int8_t tkl:4, type:2, version:2;
+#else
+#error "Missing endian macro definitions."
#endif
u_int8_t code;
u_int16_t message_id; //if needed, remember to convert in host number