[core] make metadata (saved in Message) non-packed (#4195)

This commit is contained in:
Abtin Keshavarzian
2019-10-04 15:35:53 -07:00
committed by Jonathan Hui
parent c5d4fc5cbe
commit 726d8e96e3
5 changed files with 5 additions and 10 deletions
+1 -2
View File
@@ -88,7 +88,6 @@ enum
* This class implements metadata required for CoAP retransmission.
*
*/
OT_TOOL_PACKED_BEGIN
class CoapMetadata
{
friend class CoapBase;
@@ -192,7 +191,7 @@ private:
uint8_t mRetransmissionCount; ///< Number of retransmissions.
bool mAcknowledged : 1; ///< Information that request was acknowledged.
bool mConfirmable : 1; ///< Information that message is confirmable.
} OT_TOOL_PACKED_END;
};
/**
* This class implements CoAP resource handling.
+1 -2
View File
@@ -51,7 +51,6 @@ namespace Dns {
* This class implements metadata required for DNS retransmission.
*
*/
OT_TOOL_PACKED_BEGIN
class QueryMetadata
{
friend class Client;
@@ -143,7 +142,7 @@ private:
Ip6::Address mDestinationAddress; ///< IPv6 address of the message destination.
uint16_t mDestinationPort; ///< UDP port of the message destination.
uint8_t mRetransmissionCount; ///< Number of retransmissions.
} OT_TOOL_PACKED_END;
};
/**
* This class implements DNS client.
+1 -2
View File
@@ -247,7 +247,6 @@ private:
* This class represents metadata required for MPL retransmissions.
*
*/
OT_TOOL_PACKED_BEGIN
class MplBufferedMessageMetadata
{
public:
@@ -426,7 +425,7 @@ private:
uint8_t mTransmissionCount;
TimeMilli mTransmissionTime;
uint8_t mIntervalOffset;
} OT_TOOL_PACKED_END;
};
/**
* This class implements MPL message processing.
+1 -2
View File
@@ -421,7 +421,6 @@ private:
* This class implements metadata required for SNTP retransmission.
*
*/
OT_TOOL_PACKED_BEGIN
class QueryMetadata
{
friend class Client;
@@ -513,7 +512,7 @@ private:
Ip6::Address mDestinationAddress; ///< IPv6 address of the message destination.
uint16_t mDestinationPort; ///< UDP port of the message destination.
uint8_t mRetransmissionCount; ///< Number of retransmissions.
} OT_TOOL_PACKED_END;
};
/**
* This class implements SNTP client.
+1 -2
View File
@@ -360,7 +360,6 @@ private:
* This class implements functionality required for delaying MLE responses.
*
*/
OT_TOOL_PACKED_BEGIN
class DelayedResponseHeader
{
public:
@@ -461,7 +460,7 @@ public:
private:
Ip6::Address mDestination; ///< IPv6 address of the message destination.
TimeMilli mSendTime; ///< Time when the message shall be sent.
} OT_TOOL_PACKED_END;
};
/**
* This class implements MLE functionality required by the Thread EndDevices, Router, and Leader roles.