diff options
author | Linda Sun <lsun@vmware.com> | 2013-07-17 12:08:25 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-07-17 12:18:16 -0700 |
commit | 13b6bae61ec4e730f8be140711bf783f65db7c1a (patch) | |
tree | cabdb5cf4fabbda7f20714730ae5d160142d1773 /lib/cfm.c | |
parent | 00ecc5ced742db3f5de4101c43f2cfdac7456193 (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 { |