updown: pass IKE_SA unique ID in PLUTO_UNIQUEID

This commit is contained in:
Emanuil Hristov 2013-04-17 12:44:34 +03:00 committed by Martin Willi
parent e8b2ce1e72
commit 2ce403438f
2 changed files with 5 additions and 1 deletions

View File

@ -51,6 +51,9 @@
# PLUTO_REQID # PLUTO_REQID
# is the requid of the ESP policy # is the requid of the ESP policy
# #
# PLUTO_UNIQUEID
# is the unique identifier of the associated IKE_SA
#
# PLUTO_ME # PLUTO_ME
# is the IP address of our host. # is the IP address of our host.
# #

View File

@ -312,6 +312,7 @@ METHOD(listener_t, child_updown, bool,
"PLUTO_CONNECTION='%s' " "PLUTO_CONNECTION='%s' "
"PLUTO_INTERFACE='%s' " "PLUTO_INTERFACE='%s' "
"PLUTO_REQID='%u' " "PLUTO_REQID='%u' "
"PLUTO_UNIQUEID='%u' "
"PLUTO_ME='%H' " "PLUTO_ME='%H' "
"PLUTO_MY_ID='%Y' " "PLUTO_MY_ID='%Y' "
"PLUTO_MY_CLIENT='%H/%u' " "PLUTO_MY_CLIENT='%H/%u' "
@ -336,6 +337,7 @@ METHOD(listener_t, child_updown, bool,
config->get_name(config), config->get_name(config),
iface ? iface : "unknown", iface ? iface : "unknown",
child_sa->get_reqid(child_sa), child_sa->get_reqid(child_sa),
ike_sa->get_unique_id(ike_sa),
me, ike_sa->get_my_id(ike_sa), me, ike_sa->get_my_id(ike_sa),
my_client, my_client_mask, my_client, my_client_mask,
my_ts->get_from_port(my_ts), my_ts->get_from_port(my_ts),
@ -426,4 +428,3 @@ updown_listener_t *updown_listener_create(updown_handler_t *handler)
return &this->public; return &this->public;
} }