Skip to content
Permalink
Browse files

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>
  • Loading branch information...
Bub Wei authored and jukkar committed Apr 23, 2019
1 parent a939515 commit ee442c2b66115397ac92c7759f61d5f8a3ccc509
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/net/zperf/src/zperf_internal.h
@@ -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;

0 comments on commit ee442c2

Please sign in to comment.
You can’t perform that action at this time.