Committer: Diego Biurrun <diego@xxxxxxxxxx> Date: 16/04/2010 at 21:48:43 Revision: 4335 Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Remove disabled code from hipd/oppdb.c. Modified: M hipd/oppdb.c === modified file 'hipd/oppdb.c' --- hipd/oppdb.c 2010-04-15 20:47:19 +0000 +++ hipd/oppdb.c 2010-04-16 18:48:31 +0000 @@ -175,7 +175,6 @@ deleted = hip_ht_delete(oppdb, entry); HIP_UNLOCK_OPP(entry); free(deleted); - //free(entry); } /** @@ -457,7 +456,6 @@ goto out_err; } hip_get_default_hit(&msg->hitr); - //hip_get_any_localhost_hit(&msg->hitr, HIP_HI_DEFAULT_ALGO, 0); } else if (type == HIP_R1) { entry = hip_oppdb_get_hadb_entry(&msg->hitr, src_addr); } else { @@ -489,15 +487,6 @@ hip_hit_t phit; int err = 0; -#if 0 - opp_entry = hip_oppdb_get_hadb_entry(&msg->hitr, src_addr); - if (!opp_entry) { - HIP_ERROR("Cannot find HA entry after receive r1\n"); - err = -1; - goto out_err; - } -#endif - HIP_DEBUG_HIT("!!!! peer hit=", &msg->hits); HIP_DEBUG_HIT("!!!! local hit=", &msg->hitr); HIP_DEBUG_IN6ADDR("!!!! peer addr=", src_addr); @@ -786,8 +775,6 @@ memcpy(&dst_ip, ptr, sizeof(dst_ip)); HIP_DEBUG_HIT("dst ip = ", &dst_ip); - //hip_msg_init(msg);//????? - err = hip_for_each_opp(hip_force_opptcp_fallback, &dst_ip); HIP_IFEL(err, 0, "for_each_ha err.\n"); @@ -910,7 +897,6 @@ int err = 0, disable_fallback = 0; time_t *now = (time_t *) current_time; struct in6_addr *addr; - //HIP_DEBUG("now=%d e=%d\n", *now, entry->creation_time); #ifdef CONFIG_HIP_AGENT /* If agent is prompting user, let's make sure that