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/main.h | |
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/main.h')
-rw-r--r-- | net/batman-adv/main.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index c08724a165b9..5699f2b3b557 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h | |||
@@ -73,6 +73,9 @@ | |||
73 | 73 | ||
74 | #define BATADV_LOG_BUF_LEN 8192 /* has to be a power of 2 */ | 74 | #define BATADV_LOG_BUF_LEN 8192 /* has to be a power of 2 */ |
75 | 75 | ||
76 | /* numbers of originator to contact for any PUT/GET DHT operation */ | ||
77 | #define BATADV_DAT_CANDIDATES_NUM 3 | ||
78 | |||
76 | #define BATADV_VIS_INTERVAL 5000 /* 5 seconds */ | 79 | #define BATADV_VIS_INTERVAL 5000 /* 5 seconds */ |
77 | 80 | ||
78 | /* how much worse secondary interfaces may be to be considered as bonding | 81 | /* how much worse secondary interfaces may be to be considered as bonding |
@@ -117,6 +120,9 @@ enum batadv_uev_type { | |||
117 | 120 | ||
118 | #define BATADV_GW_THRESHOLD 50 | 121 | #define BATADV_GW_THRESHOLD 50 |
119 | 122 | ||
123 | #define BATADV_DAT_CANDIDATE_NOT_FOUND 0 | ||
124 | #define BATADV_DAT_CANDIDATE_ORIG 1 | ||
125 | |||
120 | /* Debug Messages */ | 126 | /* Debug Messages */ |
121 | #ifdef pr_fmt | 127 | #ifdef pr_fmt |
122 | #undef pr_fmt | 128 | #undef pr_fmt |