[hipl-commit] [tiny] Rev 3719: Added descrption to heartbeat-update main source file.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 25 Mar 2010 20:34:13 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: 25/03/2010 at 20:34:13
Revision: 3719
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Added descrption to heartbeat-update main source file.

Modified:
  M  modules/heartbeat/hipd/heartbeat.c
  M  modules/heartbeat_update/hipd/hb_update.c

=== modified file 'modules/heartbeat/hipd/heartbeat.c'
--- modules/heartbeat/hipd/heartbeat.c  2010-03-25 13:50:28 +0000
+++ modules/heartbeat/hipd/heartbeat.c  2010-03-25 18:33:07 +0000
@@ -23,15 +23,10 @@
  *
  * @note Implementation of the heartbeat concept in tiny branch:
  *
- *       - Send periodic ICMP messages to all associated peers (HEARTBEATs)
+ *       - Send periodic ICMP messages to all associated peers (HEARTBEATs).
+ *       - Increment the heartbeat counter in hadb.
  *       - When a HEARTBEAT response is received, calculate roundtrip time and
- *         maintain statistics.
- *
- *       If an UPDATE module exists:
- *       - Register a HEARTBEAT counter to the host association database.
- *       - Increment this counter by 1, every time a HEARTBEAT is sent.
- *       - Reset the counter (set to 0), if a HEARTBEAT response is received.
- *       - If counter reaches the threshold value, trigger an UPDATE.
+ *         maintain statistics. Reset heartbeat counter to 0.
  *
  * @author Samu Varjonen
  * @author Miika Komu

=== modified file 'modules/heartbeat_update/hipd/hb_update.c'
--- modules/heartbeat_update/hipd/hb_update.c   2010-03-25 13:50:28 +0000
+++ modules/heartbeat_update/hipd/hb_update.c   2010-03-25 18:33:07 +0000
@@ -3,6 +3,15 @@
  *
  * Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  *
+ * This is the main source file of the module HEARTBEAT-UPDATE. Its core
+ * functionality is UPDATE triggering if HEARTBEATS fail. You can adjust the
+ * threshold which has to be reached before an UPDATE is triggered.
+ *
+ * During module initialization an maintenance function is registered. This
+ * checks if the threshold value is reached and triggers the UPDATE if needed.
+ *
+ * The heartbeat counter is set to 0, if an UPDATE was triggered.
+ *
  * @author Tim Just
  */

Other related posts:

  • » [hipl-commit] [tiny] Rev 3719: Added descrption to heartbeat-update main source file. - Tim Just