From e6b03b1eb757887097df8524b6ec5a658685fccd Mon Sep 17 00:00:00 2001 From: Keith Amidon Date: Wed, 11 Mar 2009 13:27:28 -0700 Subject: [PATCH] Fix 64-bit alignment issue in management protocol message. --- include/openflow/openflow-mgmt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/openflow/openflow-mgmt.h b/include/openflow/openflow-mgmt.h index c03482a5..830ee5ac 100644 --- a/include/openflow/openflow-mgmt.h +++ b/include/openflow/openflow-mgmt.h @@ -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 { -- 2.30.2