- policies contain a connections name now

- used for initiate and delete
- connections won't get initiated twice anymore
- deleting of connections is now possible, which allows us to use
  ipsec update and ipsec reload
This commit is contained in:
Martin Willi
2006-05-29 11:09:45 +00:00
parent 4c59264d9b
commit 9fe14f4b8a
17 changed files with 483 additions and 326 deletions
+1 -1
View File
@@ -338,8 +338,8 @@ int main (int argc, char **argv)
if (starter_pluto_pid())
{
starter_whack_del_conn(conn);
conn->state = STATE_TO_ADD;
}
conn->state = STATE_TO_ADD;
}
}
for (ca = cfg->ca_first; ca; ca = ca->next)
+6 -1
View File
@@ -132,7 +132,12 @@ int starter_stroke_add_conn(starter_conn_t *conn)
int starter_stroke_del_conn(starter_conn_t *conn)
{
return 0;
stroke_msg_t msg;
msg.type = STR_DEL_CONN;
msg.length = offsetof(stroke_msg_t, buffer);
msg.install.name = push_string(&msg, connection_name(conn));
return send_stroke_msg(&msg);
}
int starter_stroke_route_conn(starter_conn_t *conn)