From: Keith Amidon Date: Wed, 11 Mar 2009 20:27:28 +0000 (-0700) Subject: Fix 64-bit alignment issue in management protocol message. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b03b1eb757887097df8524b6ec5a658685fccd;p=openvswitch Fix 64-bit alignment issue in management protocol message. --- 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 {