diff options
author | Martin Willi <martin@strongswan.org> | 2006-05-29 11:09:45 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-05-29 11:09:45 +0000 |
commit | 9fe14f4b8a3ae487134854eb8ebdfcb49cea4027 (patch) | |
tree | efc4aa1a147e18e3b24b53e0d917e12e0b9a5cde /src/starter/starterstroke.c | |
parent | 4c59264d9b73d8eb2b29189cacd9ff3b60e2ec13 (diff) | |
download | strongswan-9fe14f4b8a3ae487134854eb8ebdfcb49cea4027.tar.bz2 strongswan-9fe14f4b8a3ae487134854eb8ebdfcb49cea4027.tar.xz |
- 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
Diffstat (limited to 'src/starter/starterstroke.c')
-rw-r--r-- | src/starter/starterstroke.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/starter/starterstroke.c b/src/starter/starterstroke.c index c20e7f6e3..d271d4018 100644 --- a/src/starter/starterstroke.c +++ b/src/starter/starterstroke.c @@ -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) |