net: packed attribute for Icmp_packet

This commit is contained in:
Martin Stein 2018-04-06 17:49:19 +02:00 committed by Christian Helmuth
parent fa59dc0a5b
commit f9af0e6f0c

View File

@ -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_ */