Committer: Tim Just <tim.just@xxxxxxxxxxxxxx> Date: Wed Feb 24 15:47:08 2010 +0100 Revision: 3569 Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: tiny Log: Corrected copy and paste error in hip_init_handle_functions. Replaced the state number HIP_STATE_NONE with the correct packet type number HIP_DATA. Modified: M hipd/init.c === modified file 'hipd/init.c' --- hipd/init.c 2010-02-24 14:43:38 +0000 +++ hipd/init.c 2010-02-24 14:47:08 +0000 @@ -421,14 +421,14 @@ hip_register_handle_function(HIP_I1, HIP_STATE_CLOSED, &hip_handle_i1, 0); hip_register_handle_function(HIP_I1, HIP_STATE_NONE, &hip_handle_i1, 0); - hip_register_handle_function(HIP_STATE_NONE, HIP_STATE_UNASSOCIATED, &hip_handle_i1, 0); - hip_register_handle_function(HIP_STATE_NONE, HIP_STATE_I1_SENT, &hip_handle_i1, 0); - hip_register_handle_function(HIP_STATE_NONE, HIP_STATE_I2_SENT, &hip_handle_i1, 0); - hip_register_handle_function(HIP_STATE_NONE, HIP_STATE_R2_SENT, &hip_handle_i1, 0); - hip_register_handle_function(HIP_STATE_NONE, HIP_STATE_ESTABLISHED, &hip_handle_i1, 0); - hip_register_handle_function(HIP_STATE_NONE, HIP_STATE_CLOSING, &hip_handle_i1, 0); - hip_register_handle_function(HIP_STATE_NONE, HIP_STATE_CLOSED, &hip_handle_i1, 0); - hip_register_handle_function(HIP_STATE_NONE, HIP_STATE_NONE, &hip_handle_i1, 0); + hip_register_handle_function(HIP_DATA, HIP_STATE_UNASSOCIATED, &hip_handle_i1, 0); + hip_register_handle_function(HIP_DATA, HIP_STATE_I1_SENT, &hip_handle_i1, 0); + hip_register_handle_function(HIP_DATA, HIP_STATE_I2_SENT, &hip_handle_i1, 0); + hip_register_handle_function(HIP_DATA, HIP_STATE_R2_SENT, &hip_handle_i1, 0); + hip_register_handle_function(HIP_DATA, HIP_STATE_ESTABLISHED, &hip_handle_i1, 0); + hip_register_handle_function(HIP_DATA, HIP_STATE_CLOSING, &hip_handle_i1, 0); + hip_register_handle_function(HIP_DATA, HIP_STATE_CLOSED, &hip_handle_i1, 0); + hip_register_handle_function(HIP_DATA, HIP_STATE_NONE, &hip_handle_i1, 0); /* @todo enable performance measurement */ #if 0