Pass initiator parameter to distinguish between original and exchange initiator

This commit is contained in:
Martin Willi
2010-07-26 13:53:53 +02:00
parent b2e447e24a
commit 3e6736f67e
4 changed files with 8 additions and 1 deletions
+1
View File
@@ -63,6 +63,7 @@ METHOD(listener_t, child_keys, bool,
m = ha_message_create(HA_CHILD_ADD);
m->add_attribute(m, HA_IKE_ID, ike_sa->get_id(ike_sa));
m->add_attribute(m, HA_INITIATOR, (u_int8_t)initiator);
m->add_attribute(m, HA_INBOUND_SPI, child_sa->get_spi(child_sa, TRUE));
m->add_attribute(m, HA_OUTBOUND_SPI, child_sa->get_spi(child_sa, FALSE));
m->add_attribute(m, HA_INBOUND_CPI, child_sa->get_cpi(child_sa, TRUE));