Committer: Tim Just <tim.just@xxxxxxxxxxxxxx> Date: Thu Mar 04 15:52:32 2010 +0100 Revision: 3613 Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: tiny Log: Renamed hip_add_state_item to lmod_add_state_item and added drop flag to packet context. hip_add_state_item was the last function from libmodularization with hip specific prefix. Missed that one yesterday. The flag drop_packet in struct hip_packet_context will be used to abort the packet handling, when multiple handle functions are called consecutively. Modified: M lib/modularization/modularization.c M lib/modularization/modularization.h M modules/update/hipd/update.c === modified file 'lib/modularization/modularization.c' --- lib/modularization/modularization.c 2010-03-03 16:06:50 +0000 +++ lib/modularization/modularization.c 2010-03-04 14:52:32 +0000 @@ -118,7 +118,7 @@ } /** - * hip_add_state_item + * lmod_add_state_item * * Registers a new state item to the global state. The state item can be of any * type. This function stores a reference to the new state item. @@ -132,7 +132,7 @@ * @return Success = id (unsigned int) for retrieving the state by number * Error = -1 */ -int hip_add_state_item(struct modular_state *state, +int lmod_add_state_item(struct modular_state *state, void *state_item, const char *item_name) { === modified file 'lib/modularization/modularization.h' --- lib/modularization/modularization.h 2010-03-03 16:06:50 +0000 +++ lib/modularization/modularization.h 2010-03-04 14:52:32 +0000 @@ -24,6 +24,7 @@ struct in6_addr *dst_addr; struct hip_stateless_info *msg_info; struct hip_hadb_state *hadb_entry; + uint8_t drop_packet; }; /** @@ -44,7 +45,7 @@ struct modular_state *lmod_init_state(void); -int hip_add_state_item(struct modular_state *state, +int lmod_add_state_item(struct modular_state *state, void *state_item, const char *item_name); === modified file 'modules/update/hipd/update.c' --- modules/update/hipd/update.c 2010-03-03 16:06:50 +0000 +++ modules/update/hipd/update.c 2010-03-04 14:52:32 +0000 @@ -909,7 +909,7 @@ update_state->update_id_out = 0; update_state->update_id_in = 0; - err = hip_add_state_item(state, update_state, "update"); + err = lmod_add_state_item(state, update_state, "update"); out_err: return err;