Thread (14 messages) 14 messages, 4 authors, 2012-11-21

Re: [PATCH 9/9] batman-adv: Use packing of 2 for all headers before an ethernet header

From: David Miller <davem@davemloft.net>
Date: 2012-11-21 17:58:01
Also in: batman

From: Antonio Quartulli <redacted>
Date: Wed, 21 Nov 2012 13:11:59 +0100
+#pragma pack(2)
 ...
-} __packed;
The __packed attribute is an abstraction of the actual syntax
the compiler uses, if it is supported at all.

Therefore, you can't just unconditionally use the #pragma, and
you would need to use some kind of similar compiler abstraction
for it.

But to be honest this is really ugly and for very little, if any,
gain.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help