mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 23:20:55 +00:00
net: packed attribute for Icmp_packet
This commit is contained in:
parent
fa59dc0a5b
commit
f9af0e6f0c
@ -34,7 +34,9 @@ class Net::Icmp_packet
|
|||||||
Genode::uint32_t _rest_of_header_u32[1];
|
Genode::uint32_t _rest_of_header_u32[1];
|
||||||
Genode::uint16_t _rest_of_header_u16[2];
|
Genode::uint16_t _rest_of_header_u16[2];
|
||||||
Genode::uint8_t _rest_of_header_u8[4];
|
Genode::uint8_t _rest_of_header_u8[4];
|
||||||
};
|
|
||||||
|
} __attribute__((packed));
|
||||||
|
|
||||||
Genode::uint8_t _data[0];
|
Genode::uint8_t _data[0];
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -90,6 +92,7 @@ class Net::Icmp_packet
|
|||||||
*********/
|
*********/
|
||||||
|
|
||||||
void print(Genode::Output &output) const;
|
void print(Genode::Output &output) const;
|
||||||
};
|
|
||||||
|
} __attribute__((packed));
|
||||||
|
|
||||||
#endif /* _NET__ICMP_H_ */
|
#endif /* _NET__ICMP_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user