From f9af0e6f0cec34886ece63feb2b045813184815f Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Fri, 6 Apr 2018 17:49:19 +0200 Subject: [PATCH] net: packed attribute for Icmp_packet --- repos/os/include/net/icmp.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/repos/os/include/net/icmp.h b/repos/os/include/net/icmp.h index f9402684b5..77e0c3c41d 100644 --- a/repos/os/include/net/icmp.h +++ b/repos/os/include/net/icmp.h @@ -34,7 +34,9 @@ class Net::Icmp_packet Genode::uint32_t _rest_of_header_u32[1]; Genode::uint16_t _rest_of_header_u16[2]; Genode::uint8_t _rest_of_header_u8[4]; - }; + + } __attribute__((packed)); + Genode::uint8_t _data[0]; public: @@ -90,6 +92,7 @@ class Net::Icmp_packet *********/ void print(Genode::Output &output) const; -}; + +} __attribute__((packed)); #endif /* _NET__ICMP_H_ */