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

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

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 16/04/2010 at 21:49:44
Revision: 4337
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

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

Modified:
  M  hipd/input.c

=== modified file 'hipd/input.c'
--- hipd/input.c        2010-04-15 20:47:19 +0000
+++ hipd/input.c        2010-04-16 18:49:34 +0000
@@ -1791,12 +1791,9 @@
 
 #ifdef CONFIG_HIP_RVS
     if (!ipv6_addr_any(dest)) {
-        //if(hip_relay_get_status() == HIP_RELAY_ON) {
-
         HIP_INFO("create replay_to parameter in R2\n");
         hip_build_param_relay_to(
             r2, dest, dest_port);
-        //}
     }
 
 #endif
@@ -2194,9 +2191,7 @@
         }
     }
 
-    //HIP_DEBUG("hip nat key from context %s", i2_context.hip_nat_key);
     memcpy(entry->hip_nat_key, i2_context.hip_nat_key, HIP_MAX_KEY_LEN);
-    //HIP_DEBUG("hip nat key in entry %s", entry->hip_nat_key);
 
     if (spi_in == 0) {
         spi_in = entry->spi_inbound_current;
@@ -2257,8 +2252,6 @@
            hip_sa_addr_len(addr));
     hip_add_address_to_list(addr, if_index, 0);
 
-    //hip_hadb_insert_state(entry);
-
     /* If there was already state, these may be uninitialized */
     entry->hip_transform = hip_tfm;
     if (!entry->our_pub) {
@@ -2429,7 +2422,6 @@
 
     entry->spi_outbound_new = spi_out;
     HIP_IFE(hip_store_base_exchange_keys(entry, &i2_context, 0), -1);
-    //hip_hadb_insert_state(entry);
 
     HIP_DEBUG("\nInserted a new host association state.\n"
               "\tHIP state: %s\n" \
@@ -3180,9 +3172,6 @@
 
     HIP_IFEL(!hip_controls_sane(ntohs(hip_common->control), mask), -1,
              "Received illegal controls in R2: 0x%x. Dropping\n", 
ntohs(hip_common->control));
-    //HIP_IFEL(!(entry = hip_hadb_find_byhits(&hip_common->hits,
-    //                                        &hip_common->hitr)), -EFAULT,
-    //         "Received R2 by unknown sender\n");
 
     HIP_IFEL(!entry, -EFAULT,
              "Received R2 by unknown sender\n");
@@ -3374,8 +3363,6 @@
                 /* Calculate the HIP header length */
                 hip_calc_hdr_len(&i1);
 
-                //sleep(3);
-
                 /* This I1 packet must be send only once, which
                  * is why we use NULL entry for sending. */
                 err = entry->hadb_xmit_func->

Other related posts:

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