improved kernel interface logging

This commit is contained in:
Martin Willi
2006-06-09 08:41:41 +00:00
parent 0bb32cb5f3
commit b543bef50c
5 changed files with 50 additions and 63 deletions
+4 -7
View File
@@ -146,7 +146,7 @@ static status_t alloc(private_child_sa_t *this, linked_list_t *proposals)
status = charon->kernel_interface->get_spi(
charon->kernel_interface,
this->other.addr, this->me.addr,
protocol, FALSE,
protocol, this->reqid,
&this->me.spi);
if (status != SUCCESS)
@@ -340,8 +340,7 @@ static status_t add_policies(private_child_sa_t *this, linked_list_t *my_ts_list
policy->me.net, policy->other.net,
policy->me.net_mask, policy->other.net_mask,
XFRM_POLICY_OUT, policy->upper_proto,
this->protocol == PROTO_AH,
this->protocol == PROTO_ESP,
this->protocol,
this->reqid);
status |= charon->kernel_interface->add_policy(charon->kernel_interface,
@@ -349,8 +348,7 @@ static status_t add_policies(private_child_sa_t *this, linked_list_t *my_ts_list
policy->other.net, policy->me.net,
policy->other.net_mask, policy->me.net_mask,
XFRM_POLICY_IN, policy->upper_proto,
this->protocol == PROTO_AH,
this->protocol == PROTO_ESP,
this->protocol,
this->reqid);
status |= charon->kernel_interface->add_policy(charon->kernel_interface,
@@ -358,8 +356,7 @@ static status_t add_policies(private_child_sa_t *this, linked_list_t *my_ts_list
policy->other.net, policy->me.net,
policy->other.net_mask, policy->me.net_mask,
XFRM_POLICY_FWD, policy->upper_proto,
this->protocol == PROTO_AH,
this->protocol == PROTO_ESP,
this->protocol,
this->reqid);
if (status != SUCCESS)