diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-11-23 05:35:44 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-11-07 14:00:19 -0500 |
commit | 785ea1144182c341b8b85b0f8180291839d176a8 (patch) | |
tree | 218d58e56db4e2a2ef49c6ab0d889cdb6e1df309 /net/batman-adv/originator.c | |
parent | 0e861a3c4ffef56822e1d51c355e5020deaeaf5a (diff) |
batman-adv: Distributed ARP Table - create DHT helper functions
Add all the relevant functions in order to manage a Distributed Hash Table over
the B.A.T.M.A.N.-adv network. It will later be used to store several ARP entries
and implement DAT (Distributed ARP Table)
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/originator.c')
-rw-r--r-- | net/batman-adv/originator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c index d9c14b8fca0e..84930a4f5369 100644 --- a/net/batman-adv/originator.c +++ b/net/batman-adv/originator.c | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include "main.h" | 20 | #include "main.h" |
21 | #include "distributed-arp-table.h" | ||
21 | #include "originator.h" | 22 | #include "originator.h" |
22 | #include "hash.h" | 23 | #include "hash.h" |
23 | #include "translation-table.h" | 24 | #include "translation-table.h" |
@@ -223,6 +224,7 @@ struct batadv_orig_node *batadv_get_orig_node(struct batadv_priv *bat_priv, | |||
223 | orig_node->tt_poss_change = false; | 224 | orig_node->tt_poss_change = false; |
224 | orig_node->bat_priv = bat_priv; | 225 | orig_node->bat_priv = bat_priv; |
225 | memcpy(orig_node->orig, addr, ETH_ALEN); | 226 | memcpy(orig_node->orig, addr, ETH_ALEN); |
227 | batadv_dat_init_orig_node_addr(orig_node); | ||
226 | orig_node->router = NULL; | 228 | orig_node->router = NULL; |
227 | orig_node->tt_crc = 0; | 229 | orig_node->tt_crc = 0; |
228 | atomic_set(&orig_node->last_ttvn, 0); | 230 | atomic_set(&orig_node->last_ttvn, 0); |