public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Antonio Quartulli <antonio@meshcoding.com>
To: Sven Eckelmann <sven@narfation.org>
Cc: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH v2] batman-adv: Add lower layer header length to headroom
Date: Tue, 4 Aug 2015 22:39:47 +0200	[thread overview]
Message-ID: <55C12313.5040700@meshcoding.com> (raw)
In-Reply-To: <1438720693-30590-1-git-send-email-sven@narfation.org>

[-- Attachment #1: Type: text/plain, Size: 773 bytes --]



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@narfation.org>

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


-- 
Antonio Quartulli


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2015-08-04 20:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-04 20:38 [B.A.T.M.A.N.] [PATCH v2] batman-adv: Add lower layer header length to headroom Sven Eckelmann
2015-08-04 20:39 ` Antonio Quartulli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55C12313.5040700@meshcoding.com \
    --to=antonio@meshcoding.com \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=sven@narfation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox