From: Antonio Quartulli <ordex@autistici.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] [RFC] batman-adv: postpone OGM preparation to sending time
Date: Thu, 13 Dec 2012 19:04:17 +0100 [thread overview]
Message-ID: <20121213180417.GE23890@ritirata.org> (raw)
In-Reply-To: <1355263044-13131-1-git-send-email-ordex@autistici.org>
[-- Attachment #1: Type: text/plain, Size: 721 bytes --]
On Tue, Dec 11, 2012 at 10:57:24PM +0100, Antonio Quartulli wrote:
[...]
> /* when do we schedule a ogm packet to be sent */
> static unsigned long batadv_iv_ogm_fwd_send_time(void)
> {
> - return jiffies + msecs_to_jiffies(random32() % (BATADV_JITTER / 2));
> + return jiffies + BATADV_MAX_AGGREGATION_MS +
> + msecs_to_jiffies(random32() % (BATADV_JITTER / 2));
> }
I just realise that I cannot add BATADV_MAX_AGGREGATION_MS here directly because
this function is used to compute the forwarding time of OGMs the node received
and that it has to rebroadcast.
I'll fix this and post a patch.
Cheers,
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2012-12-13 18:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 21:57 [B.A.T.M.A.N.] [RFC] batman-adv: postpone OGM preparation to sending time Antonio Quartulli
2012-12-11 22:34 ` Simon Wunderlich
2012-12-13 18:04 ` 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=20121213180417.GE23890@ritirata.org \
--to=ordex@autistici.org \
--cc=b.a.t.m.a.n@lists.open-mesh.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