David Miller wrote: > Now these elements cannot be assumed to have any particular > alignment, so gcc will emit byte-at-a-time accesses to these > elements. Ah, so the problem is the __attribute__(packed) removes align restrictions for the whole structure, in addition to removing padding. Is there any way to tell gcc to pack but still align the whole thing? eg what does it do for this: struct t { struct s { u16 a; u16 b; } __attribute__(packed); }; -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html