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(a)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
Show replies by thread
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