updown: Add a PLUTO_PROTO variable set to 'ah' or 'esp'
This commit is contained in:
@@ -45,7 +45,10 @@
|
|||||||
# is the name of the ipsec interface to be used.
|
# is the name of the ipsec interface to be used.
|
||||||
#
|
#
|
||||||
# PLUTO_REQID
|
# PLUTO_REQID
|
||||||
# is the requid of the ESP policy
|
# is the requid of the AH|ESP policy
|
||||||
|
#
|
||||||
|
# PLUTO_PROTO
|
||||||
|
# is the negotiated IPsec protocol, ah|esp
|
||||||
#
|
#
|
||||||
# PLUTO_UNIQUEID
|
# PLUTO_UNIQUEID
|
||||||
# is the unique identifier of the associated IKE_SA
|
# is the unique identifier of the associated IKE_SA
|
||||||
|
|||||||
@@ -311,6 +311,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_PROTO='%s' "
|
||||||
"PLUTO_UNIQUEID='%u' "
|
"PLUTO_UNIQUEID='%u' "
|
||||||
"PLUTO_ME='%H' "
|
"PLUTO_ME='%H' "
|
||||||
"PLUTO_MY_ID='%Y' "
|
"PLUTO_MY_ID='%Y' "
|
||||||
@@ -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),
|
||||||
|
child_sa->get_protocol(child_sa) == PROTO_ESP ? "esp" : "ah",
|
||||||
ike_sa->get_unique_id(ike_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,
|
||||||
|
|||||||
Reference in New Issue
Block a user