moved updown script invocation to an optional plugin

This commit is contained in:
Martin Willi
2008-10-16 11:48:18 +00:00
parent e17353fc31
commit ad3af574a4
12 changed files with 354 additions and 245 deletions
+9 -14
View File
@@ -54,6 +54,11 @@ enum child_sa_state_t {
*/
CHILD_INSTALLED,
/**
* While updating hosts, in update_hosts()
*/
CHILD_UPDATING,
/**
* CHILD_SA which is rekeying
*/
@@ -207,11 +212,12 @@ struct child_sa_t {
*
* @param me the new local host
* @param other the new remote host
* @param vip virtual IP, if any
* @param TRUE to use UDP encapsulation for NAT traversal
* @return SUCCESS or FAILED
*/
status_t (*update_hosts)(child_sa_t *this, host_t *me, host_t *other,
bool encap);
host_t *vip, bool encap);
/**
* Install the policies using some traffic selectors.
@@ -272,16 +278,6 @@ struct child_sa_t {
*/
child_cfg_t* (*get_config) (child_sa_t *this);
/**
* Set the virtual IP used received from IRAS.
*
* To allow proper setup of firewall rules, the virtual IP is required
* for filtering.
*
* @param ip own virtual IP
*/
void (*set_virtual_ip) (child_sa_t *this, host_t *ip);
/**
* Activate IPComp by setting the transform ID and CPI values.
*
@@ -316,8 +312,7 @@ struct child_sa_t {
* @param encap TRUE to enable UDP encapsulation (NAT traversal)
* @return child_sa_t object
*/
child_sa_t * child_sa_create(host_t *me, host_t *other,
identification_t *my_id, identification_t* other_id,
child_cfg_t *config, u_int32_t reqid, bool encap);
child_sa_t * child_sa_create(host_t *me, host_t *other, child_cfg_t *config,
u_int32_t reqid, bool encap);
#endif /*CHILD_SA_H_ @} */