pushing basic CHILD_SA sync data to backup node

This commit is contained in:
Martin Willi
2010-04-07 13:55:11 +02:00
committed by Martin Willi
parent 765935c8f6
commit 7999be5b0e
4 changed files with 256 additions and 1 deletions
@@ -270,6 +270,28 @@ static void process_ike_delete(private_ha_sync_dispatcher_t *this,
enumerator->destroy(enumerator);
}
/**
* Process messages of type CHILD_ADD
*/
static void process_child_add(private_ha_sync_dispatcher_t *this,
ha_sync_message_t *message)
{
chunk_t chunk = message->get_encoding(message);
DBG1(DBG_CHD, "CHILD_ADD: %B", &chunk);
}
/**
* Process messages of type CHILD_DELETE
*/
static void process_child_delete(private_ha_sync_dispatcher_t *this,
ha_sync_message_t *message)
{
chunk_t chunk = message->get_encoding(message);
DBG1(DBG_CHD, "CHILD_DELETE: %B", &chunk);
}
/**
* Dispatcher job function
*/
@@ -292,8 +314,10 @@ static job_requeue_t dispatch(private_ha_sync_dispatcher_t *this)
case HA_SYNC_IKE_REKEY:
break;
case HA_SYNC_CHILD_ADD:
process_child_add(this, message);
break;
case HA_SYNC_CHILD_DELETE:
process_child_delete(this, message);
break;
default:
DBG1(DBG_CFG, "received unknown HA sync message type %d",