On 08/25/2011 04:09 PM, Jan Kiszka wrote:
>>
>> We should simply avoid bitfields on externally-defined formats;
>> meanwhile we can use __attribute__((gcc_struct)) and keep using those we
>> have already.
>
> +1
We aren't discussing bitfields anymore but essential unaligned (and
therefore packed) protocol structs.
And I'm not that much worried about going through the few slirp structs
but all the other 250 packed ones in entire QEMU.
AFICT gcc_struct is also about alignment, so it should just_work.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.