b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: send_*_tt_response() has to initialise the ttl field
@ 2011-05-29 18:54 Antonio Quartulli
  2011-05-29 19:58 ` Marek Lindner
  0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2011-05-29 18:54 UTC (permalink / raw)
  To: B.A.T.M.A.N

send_*_tt_response() didn't properly initialise the ttl field of the
tt_response message.

This error was introduced with: cea194d90b11aff7fc289149e4c7f305fad3535a

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
 translation-table.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/translation-table.c b/translation-table.c
index f0d8857..f04ab9b 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -1132,6 +1132,7 @@ static bool send_other_tt_response(struct bat_priv *bat_priv,
 
 	tt_response->packet_type = BAT_TT_QUERY;
 	tt_response->version = COMPAT_VERSION;
+	tt_response->ttl = TTL;
 	memcpy(tt_response->src, req_dst_orig_node->orig, ETH_ALEN);
 	memcpy(tt_response->dst, tt_request->src, ETH_ALEN);
 	tt_response->tt_data = htons(tt_tot);
@@ -1280,6 +1281,7 @@ static bool send_my_tt_response(struct bat_priv *bat_priv,
 
 	tt_response->packet_type = BAT_TT_QUERY;
 	tt_response->version = COMPAT_VERSION;
+	tt_response->ttl = TTL;
 	memcpy(tt_response->src, primary_if->net_dev->dev_addr, ETH_ALEN);
 	memcpy(tt_response->dst, tt_request->src, ETH_ALEN);
 	tt_response->tt_data = htons(tt_tot);
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: send_*_tt_response() has to initialise the ttl field
  2011-05-29 18:54 [B.A.T.M.A.N.] [PATCH] batman-adv: send_*_tt_response() has to initialise the ttl field Antonio Quartulli
@ 2011-05-29 19:58 ` Marek Lindner
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2011-05-29 19:58 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Sunday 29 May 2011 20:54:31 Antonio Quartulli wrote:
> send_*_tt_response() didn't properly initialise the ttl field of the
> tt_response message.
> 
> This error was introduced with: cea194d90b11aff7fc289149e4c7f305fad3535a

Applied in revision 7fbf38e.

Thanks,
Marek

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-29 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-29 18:54 [B.A.T.M.A.N.] [PATCH] batman-adv: send_*_tt_response() has to initialise the ttl field Antonio Quartulli
2011-05-29 19:58 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).