[hipl-commit] [trunk] Rev 4332: Remove disabled code from hipd/oppipdb.c.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Fri, 16 Apr 2010 21:47:02 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 16/04/2010 at 21:47:02
Revision: 4332
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Remove disabled code from hipd/oppipdb.c.

Modified:
  M  hipd/oppipdb.c

=== modified file 'hipd/oppipdb.c'
--- hipd/oppipdb.c      2010-04-15 16:57:50 +0000
+++ hipd/oppipdb.c      2010-04-16 18:46:48 +0000
@@ -169,7 +169,6 @@
     ipv6_addr_copy(new_item, ip_peer);
 
     err = hip_ht_add(oppipdb, new_item);
-    //hip_oppipdb_dump();
 
     return err;
 }
@@ -185,30 +184,6 @@
     return 0;
 }
 
-#if 0
-/**
- * Dumps the whole oppipdb hash table for monitoring purposes
- */
-static void hip_oppipdb_dump(void)
-{
-    int i;
-    hip_oppip_t *this;
-    hip_list_t *item, *tmp;
-
-    HIP_DEBUG("Start oppipdb dump. Non-HIP peers are:\n");
-    HIP_LOCK_HT(&oppipdb);
-
-    list_for_each_safe(item, tmp, oppipdb, i)
-    {
-        this = list_entry(item);
-        HIP_DEBUG_IN6ADDR("", this);
-    }
-
-    HIP_UNLOCK_HT(&oppipdb);
-    HIP_DEBUG("end oppipdb dump\n");
-}
-#endif
-
 /**
  * Seeks an ip within the oppipdb hash table.
  * If the ip is found in the table, that host is not HIP capable.
@@ -221,7 +196,6 @@
 {
     hip_oppip_t *ret = NULL;
 
-    //hip_oppipdb_dump();
     _HIP_DEBUG_IN6ADDR("Searching in oppipdb for ip:", ip_peer);
     ret = hip_ht_find(oppipdb, (void *) ip_peer);
     if (!ret) {

Other related posts:

  • » [hipl-commit] [trunk] Rev 4332: Remove disabled code from hipd/oppipdb.c. - Diego Biurrun