samples: net: zperf: Add __packed for zperf_udp_datagram

UDP packet from net is not 4-byte aligned.
So we have to add __packed for zperf_udp_datagram.

Fixes #15605.

Signed-off-by: Bub Wei <bub.wei@unisoc.com>
This commit is contained in:
Bub Wei 2019-04-23 15:39:28 +08:00 committed by Jukka Rissanen
commit ee442c2b66

View file

@ -67,7 +67,7 @@ struct zperf_udp_datagram {
s32_t id;
u32_t tv_sec;
u32_t tv_usec;
};
} __packed;
struct zperf_client_hdr_v1 {
s32_t flags;