Committer: Tim Just <tim.just@xxxxxxxxxxxxxx> Date: Thu Feb 25 10:17:48 2010 +0100 Revision: 3574 Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: tiny Log: Grouped case statements regarding their handling. The former cases without any action in the switch statement are already handled by 'hip_run_handle_functions'. The last to cases need to be transformed (registered as handle functions). Modified: M hipd/input.c === modified file 'hipd/input.c' --- hipd/input.c 2010-02-24 15:12:39 +0000 +++ hipd/input.c 2010-02-25 09:17:48 +0000 @@ -594,14 +594,17 @@ case HIP_I1: case HIP_I2: case HIP_R1: + case HIP_R2: + case HIP_UPDATE: + case HIP_NOTIFY: + case HIP_CLOSE: + case HIP_CLOSE_ACK: break; + case HIP_LUPDATE: HIP_IFCS(ctx.hadb_entry, err = esp_prot_handle_light_update(type, state, &ctx)); break; - case HIP_R2: - break; - case HIP_NOTIFY: - break; + case HIP_BOS: err = hip_handle_bos(type, state, &ctx); @@ -614,10 +617,6 @@ skip_sync = 0; break; - case HIP_CLOSE: - case HIP_CLOSE_ACK: - break; - default: HIP_ERROR("Unknown packet %d\n", type); err = -ENOSYS;