I don't think __packed would help here, as alignment(struct) ==
max(alignment(struct member)) == alignment(char).
Don't you want the __packed on the structure that embeds the __be24?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--