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:
parent
a9395157a3
commit
ee442c2b66
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue