Thread (1 message) 1 message, 1 author, 2012-11-04

Re: [PATCH 1/9] batman-adv: add UNICAST_4ADDR packet type

From: David Miller <hidden>
Date: 2012-11-04 17:30:57
Also in: batman

From: Sven Eckelmann <redacted>
Date: Sun, 04 Nov 2012 12:20:13 +0100
To push this question in a direction: May I assume that the driver always 
ensures that the ethernet header is 4 byte boundary - NET_IP_ALIGN (2) 
aligned?
Yes.
When yes, this would result in a slight variations of your suggestion: 
unicast/bcast headers have to end at 4 bytes boundary + 2 bytes. The reason is 
easy to explain. batman-adv unicast/bcast headers are used to encapsulate the 
important parts of an ethernet frame:

Ethernet Header for P2P | batman-adv header stuff | ethernet header | payload.

Would you aggree?
Then you can get rid of the packed crap.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help