aboutsummaryrefslogtreecommitdiff
path: root/lib/cfm.c
diff options
context:
space:
mode:
authorLinda Sun <lsun@vmware.com>2013-07-17 12:08:25 -0700
committerBen Pfaff <blp@nicira.com>2013-07-17 12:18:16 -0700
commit13b6bae61ec4e730f8be140711bf783f65db7c1a (patch)
treecabdb5cf4fabbda7f20714730ae5d160142d1773 /lib/cfm.c
parent00ecc5ced742db3f5de4101c43f2cfdac7456193 (diff)
Make attribute packed equivalent for MSC compilers.
Signed-off-by: Linda Sun <lsun@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/cfm.c')
-rw-r--r--lib/cfm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/cfm.c b/lib/cfm.c
index 06415fca..a76a3ecc 100644
--- a/lib/cfm.c
+++ b/lib/cfm.c
@@ -61,6 +61,8 @@ static const uint8_t eth_addr_ccm_x[6] = {
#define CCM_OPCODE 1 /* CFM message opcode meaning CCM. */
#define CCM_RDI_MASK 0x80
#define CFM_HEALTH_INTERVAL 6
+
+OVS_PACKED(
struct ccm {
uint8_t mdlevel_version; /* MD Level and Version */
uint8_t opcode;
@@ -78,7 +80,7 @@ struct ccm {
/* TLV space. */
uint8_t end_tlv;
-} __attribute__((packed));
+});
BUILD_ASSERT_DECL(CCM_LEN == sizeof(struct ccm));
struct cfm {