[B.A.T.M.A.N.] [PATCH v2] batman-adv: Add lower layer header length to headroom

Antonio Quartulli antonio at meshcoding.com
Tue Aug 4 22:39:47 CEST 2015

On 04/08/15 22:38, Sven Eckelmann wrote:
> The maximum of hard_header_len and needed_headroom of all slave interfaces
> of a batman-adv device must be used to define the batman-adv device
> headroom/header_len. This is required to avoid too small headroom problems
> when these slave devices try to send the encapsulated packet.
> The batman-adv therefore uses:
> 	needed_headroom = max(0, dev[0].needed_headroom, ...,
> 			      dev[n].needed_headroom)
> 	hard_header_len = max(ETH_HLEN, dev[0].hard_header_len, ...,
> 			      dev[n].hard_header_len) + ETH_HLEN +
> 			  max(sizeof(batadv_*cast_packet))
> Signed-off-by: Sven Eckelmann <sven at narfation.org>

Acked-by: Antonio Quartulli <antonio at meshcoding.com>

Antonio Quartulli

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/attachments/20150804/75ffbe4f/attachment.sig>

More information about the B.A.T.M.A.N mailing list