Eric Blake, on sam. 12 août 2017 06:41:30 -0500, wrote:
> Here's an idea: Instead of using struct ip6 { ... } QEMU_PACKED, use
>
> struct ip6 {
> ...
> };
> QEMU_BUG_ON(sizeof(struct ip6) != 32);That's an interesting way indeed. I however wonder whether there may be not-so-uncommon systems where the compiler aligns some fields just for performance or such. Samuel
