The ipfix.h header includes three macros which expand to compiler attributes.
Presumably, at some point the definitions were one branch of an if-else
preprocessor conditional where the definitions in the other branch expanded to
nothing. This is no longer the case. Only one of the macros (`__packed`) is
used and the raw attribute is used elsewhere in the code-base. Remove the
macros.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
/* types without length */
#define ULOGD_RET_NONE 0x0000
-#define __packed __attribute__((packed))
-#define __noreturn __attribute__((noreturn))
-#define __cold __attribute__((cold))
-
-#define __packed __attribute__((packed))
#define ULOGD_RET_INT8 0x0001
#define ULOGD_RET_INT16 0x0002
/* These forward declarations are needed since ulogd.h doesn't like to be the first */
#include <ulogd/linuxlist.h>
-#define __packed __attribute__((packed))
-
#include "ipfix.h"
#include <ulogd/ulogd.h>
uint32_t seqno;
uint32_t oid; /* Observation Domain ID */
uint8_t data[];
-} __packed;
+} __attribute__((packed));
#define IPFIX_HDRLEN sizeof(struct ipfix_hdr)
uint16_t tid;
uint16_t cnt;
uint8_t data[];
-} __packed;
+} __attribute__((packed));
#define IPFIX_TEMPL_HDRLEN(nfields) sizeof(struct ipfix_templ_hdr) + (sizeof(uint16_t) * 2 * nfields)
uint16_t id;
uint16_t len;
uint8_t data[];
-} __packed;
+} __attribute__((packed));
#define IPFIX_SET_HDRLEN sizeof(struct ipfix_set_hdr)
uint16_t dport;
uint8_t l4_proto;
uint32_t aid; /* Application ID */
-} __packed;
+} __attribute__((packed));
#define VY_IPFIX_SID 256