From a79b338208566c48d74a453710fef02611f13b8f Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 30 May 2016 09:09:00 +0200 Subject: Compilation fix due t pack/unpack --- src/lib/protocols/rx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/protocols') 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 -- cgit v1.2.3