aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/originator.c
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2011-07-06 19:40:57 -0400
committerMarek Lindner <lindner_marek@yahoo.de>2011-07-07 12:49:26 -0400
commitc8c991bf2076d711f14ff9063db306fd522ddcd4 (patch)
tree30ab31ea77ae6681563eafb7519360acc56ed646 /net/batman-adv/originator.c
parent44c4349a2a117b22a5c4087f2ac9faf10c575e17 (diff)
batman-adv: initialise last_ttvn and tt_crc for the orig_node structure
The last_ttvn and tt_crc fields of the orig_node structure were not initialised causing an immediate TT_REQ/RES dialogue even if not needed. Signed-off-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/originator.c')
-rw-r--r--net/batman-adv/originator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c
index 4cc94d4ba890..f3c3f620d195 100644
--- a/net/batman-adv/originator.c
+++ b/net/batman-adv/originator.c
@@ -223,6 +223,8 @@ struct orig_node *get_orig_node(struct bat_priv *bat_priv, const uint8_t *addr)
223 orig_node->bat_priv = bat_priv; 223 orig_node->bat_priv = bat_priv;
224 memcpy(orig_node->orig, addr, ETH_ALEN); 224 memcpy(orig_node->orig, addr, ETH_ALEN);
225 orig_node->router = NULL; 225 orig_node->router = NULL;
226 orig_node->tt_crc = 0;
227 atomic_set(&orig_node->last_ttvn, 0);
226 orig_node->tt_buff = NULL; 228 orig_node->tt_buff = NULL;
227 orig_node->tt_buff_len = 0; 229 orig_node->tt_buff_len = 0;
228 atomic_set(&orig_node->tt_size, 0); 230 atomic_set(&orig_node->tt_size, 0);