Committer: Miika Komu <miika@xxxxxx> Date: Wed Mar 10 12:30:36 2010 +0200 Revision: 3896 Revision-id: miika@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Removed remnants of icookie, hopefully this time for good. Modified: M hipd/cookie.c === modified file 'hipd/cookie.c' --- hipd/cookie.c 2010-03-10 10:03:40 +0000 +++ hipd/cookie.c 2010-03-10 10:30:36 +0000 @@ -29,18 +29,10 @@ hip_hit_t all_zero_hit; bzero(&all_zero_hit, sizeof(all_zero_hit)); - //obtain the hit + /* obtain the hit */ dst_hit = hip_get_param_contents(msg, HIP_PARAM_HIT); -#ifdef CONFIG_HIP_COOKIE - if (ipv6_addr_cmp(&all_zero_hit, dst_hit) != 0) { - diff = hip_get_cookie_difficulty(dst_hit); - } else { -#endif diff = hip_get_cookie_difficulty(NULL); -#ifdef CONFIG_HIP_COOKIE -} -#endif _HIP_DEBUG("Puzzle difficulty is %d\n", diff); hip_build_param_contents(msg, &diff, HIP_PARAM_INT, sizeof(diff)); @@ -61,16 +53,8 @@ dst_hit = hip_get_param_contents(msg, HIP_PARAM_HIT); newVal = hip_get_param_contents(msg, HIP_PARAM_INT); -#ifdef CONFIG_HIP_COOKIE - if (ipv6_addr_cmp(&all_zero_hit, dst_hit) != 0) { - hip_set_cookie_difficulty(dst_hit, *newVal); - } else { -#endif hip_set_cookie_difficulty(NULL, *newVal); -#ifdef CONFIG_HIP_COOKIE -} -#endif return err; }