public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: "Martin Hundebøll" <martin@hundeboll.net>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Cc: Marek Lindner <lindner_marek@yahoo.de>
Subject: Re: [B.A.T.M.A.N.] [PATCH next] batman-adv: consider network coding overhead when calculating required mtu
Date: Wed, 08 May 2013 07:51:30 +0200	[thread overview]
Message-ID: <5189E7E2.9010203@hundeboll.net> (raw)
In-Reply-To: <1367991380-30270-1-git-send-email-lindner_marek@yahoo.de>

On 2013-05-08 07:36, Marek Lindner wrote:
> The module prints a warning when the MTU on the hard interface is too
> small to transfer payload traffic without fragmentation. The required
> MTU is calculated based on the encapsulation header size. If network
> coding is compild into the module its header size is taken into
> account as well.
>
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

Acked-by: Martin Hundebøll <martin@hundeboll.net>

> ---
>   types.h |    7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/types.h b/types.h
> index b2c94e1..8089bd6 100644
> --- a/types.h
> +++ b/types.h
> @@ -27,9 +27,16 @@
>   /**
>    * Maximum overhead for the encapsulation for a payload packet
>    */
> +#ifdef CONFIG_BATMAN_ADV_NC
> +#define BATADV_HEADER_LEN \
> +	(ETH_HLEN + max3(sizeof(struct batadv_unicast_packet), \
> +			 sizeof(struct batadv_bcast_packet),   \
> +			 sizeof(struct batadv_coded_packet)))
> +#else
>   #define BATADV_HEADER_LEN \
>   	(ETH_HLEN + max(sizeof(struct batadv_unicast_packet), \
>   			sizeof(struct batadv_bcast_packet)))
> +#endif /* CONFIG_BATMAN_ADV_NC */
>
>   #ifdef CONFIG_BATMAN_ADV_DAT
>
>


-- 
Kind Regards
Martin Hundebøll
Frederiks Allé 99, 1.th
8000 Aarhus C
Denmark

+45 61 65 54 61
martin@hundeboll.net

      reply	other threads:[~2013-05-08  5:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-08  5:36 [B.A.T.M.A.N.] [PATCH next] batman-adv: consider network coding overhead when calculating required mtu Marek Lindner
2013-05-08  5:51 ` Martin Hundebøll [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=5189E7E2.9010203@hundeboll.net \
    --to=martin@hundeboll.net \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=lindner_marek@yahoo.de \
    /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