aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2016-05-30 09:09:00 +0200
committerLuca Deri <deri@ntop.org>2016-05-30 09:09:00 +0200
commita79b338208566c48d74a453710fef02611f13b8f (patch)
tree47c50c15d288c2feaca2d18192e7c17924cf8652 /src
parent08b28996766b449a53a0232ee460463c2e2f7f89 (diff)
Compilation fix due t pack/unpack
Diffstat (limited to 'src')
-rw-r--r--src/lib/protocols/rx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/protocols/rx.c b/src/lib/protocols/rx.c
index 319dd6d4d..505f0627b 100644
--- a/src/lib/protocols/rx.c
+++ b/src/lib/protocols/rx.c
@@ -30,7 +30,8 @@
/* See http://web.mit.edu/kolya/afs/rx/rx-spec for procotol description. */
/* The should be no need for explicit packing, but just in case... */
-struct __attribute__((__packed__)) ndpi_rx_header {
+PACK_ON
+struct ndpi_rx_header {
u_int32_t conn_epoch;
u_int32_t conn_id;
u_int32_t call_number;
@@ -42,7 +43,7 @@ struct __attribute__((__packed__)) ndpi_rx_header {
u_int8_t security;
u_int16_t checksum;
u_int16_t service_id;
-};
+} PACK_OFF;
/* Type values */
#define DATA 1