fixed compile warnings when using -Wall

further CHILD_SA rekeying work done:
	creation of a new CHILD_SA on a expire from a kernel works
	delete of old CHILD_SA still missing
	some issues when both initiate rekeing
This commit is contained in:
Martin Willi
2006-06-08 14:20:05 +00:00
parent c0d63ac9db
commit 5238c9afef
25 changed files with 829 additions and 206 deletions
+3 -4
View File
@@ -360,7 +360,7 @@ static status_t add_sa( private_kernel_interface_t *this,
}
else if (response->e.error)
{
this->logger->log(this->logger, ERROR, "netlink request XFRM_MSG_NEWSA got error %s",
this->logger->log(this->logger, ERROR, "netlink request XFRM_MSG_NEWSA received error: %s",
strerror(-response->e.error));
status = FAILED;
}
@@ -438,9 +438,8 @@ static status_t add_policy(private_kernel_interface_t *this,
request.policy.sel.proto = upper_proto;
request.policy.sel.family = src->get_family(src);
request.hdr.nlmsg_type = XFRM_MSG_NEWPOLICY;
request.hdr.nlmsg_type = XFRM_MSG_UPDPOLICY;
request.hdr.nlmsg_len = NLMSG_ALIGN(NLMSG_LENGTH(sizeof(request.policy)));
request.policy.dir = direction;
request.policy.priority = SPD_PRIORITY;
request.policy.action = XFRM_POLICY_ALLOW;
@@ -502,7 +501,7 @@ static status_t add_policy(private_kernel_interface_t *this,
}
else if (response->e.error)
{
this->logger->log(this->logger, ERROR, "netlink request XFRM_MSG_NEWPOLICY got error %s",
this->logger->log(this->logger, ERROR, "netlink request XFRM_MSG_NEWPOLICY received error: %s",
strerror(-response->e.error));
status = FAILED;
}