Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2017-07-13,master
commit 57fb5cc679fdc34c72e0d2fb011e430e58642f7b Author: Antonio Quartulli a@unstable.cc Date: Wed May 18 16:12:18 2011 +0000
doc: batman-adv/Client-announcement
57fb5cc679fdc34c72e0d2fb011e430e58642f7b batman-adv/Client-announcement.textile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/batman-adv/Client-announcement.textile b/batman-adv/Client-announcement.textile index e6880773..3c279792 100644 --- a/batman-adv/Client-announcement.textile +++ b/batman-adv/Client-announcement.textile @@ -109,7 +109,16 @@ h2. TT consistency:
The tt_crc field has been added to the struct orig_node. This field is computed for a generic originator O as "the xor of all the crc16 value on -each tt_global_entry->addr field of those entries pointing to O". +each tt_global_entry->addr field of those entries pointing to O": +**Pseudocode**: +<pre><code>tt_global_crc(orig_node O) { +res = 0; +for each tt_global_entry: + if tt_global_entry->orig_node == O + res = res XOR crc16(tt_global_entry->addr) + endif +endfor +return res</code></pre> Moreover the same field has been added to struct bat_priv (a local tt_crc). It is computed in the same way as before but using the tt_local_entry->addr field of all the local entries. As it is possible to guess, bat_priv->tt_crc