Fix 64-bit alignment issue in management protocol message.
authorKeith Amidon <keith@nicira.com>
Wed, 11 Mar 2009 20:27:28 +0000 (13:27 -0700)
committerKeith Amidon <keith@nicira.com>
Wed, 11 Mar 2009 20:50:03 +0000 (13:50 -0700)
include/openflow/openflow-mgmt.h

index c03482a5ae27001290b69037a764a34aae0c1b73..830ee5ac0b52a178e907d7601b8106f2ec2f7729 100644 (file)
@@ -102,10 +102,11 @@ OFP_ASSERT(sizeof(struct ofmp_capability_reply) == 32);
 struct ofmptsr_dp {
     uint16_t type;                        /* OFMPTSR_DP. */
     uint16_t len;                         /* 28. */
+    uint8_t pad[4];
     uint64_t dp_id;                       /* Datapath ID. */
     uint8_t name[OFP_MAX_PORT_NAME_LEN];  /* Null-terminated name. */
 };
-OFP_ASSERT(sizeof(struct ofmptsr_dp) == 28);
+OFP_ASSERT(sizeof(struct ofmptsr_dp) == 32);
 
 /* TLV types for switch resource descriptions. */
 enum ofmp_switch_resources {