exit(LSB_RC_SUCCESS);
}
+ if (starter_charon_pid())
+ {
+ starter_stroke_config_reload_start();
+ }
+
/*
* Delete all connections. Will be added below
*/
}
_action_ &= ~FLAG_ACTION_START_CHARON;
+ starter_stroke_config_reload_start();
for (ca = cfg->ca_first; ca; ca = ca->next)
{
if (ca->state == STATE_ADDED)
}
}
}
+ starter_stroke_config_reload_end();
}
/*
return conn->name;
}
+int starter_stroke_config_reload_start()
+{
+ stroke_msg_t msg;
+
+ msg.type = STR_CONF_RELOAD_START;
+ msg.length = offsetof(stroke_msg_t, buffer);
+ return send_stroke_msg(&msg);
+}
+
+int starter_stroke_config_reload_end()
+{
+ stroke_msg_t msg;
+
+ msg.type = STR_CONF_RELOAD_END;
+ msg.length = offsetof(stroke_msg_t, buffer);
+ return send_stroke_msg(&msg);
+}
+
static void starter_stroke_add_end(stroke_msg_t *msg, stroke_end_t *msg_end, starter_end_t *conn_end)
{
msg_end->auth = push_string(msg, conn_end->auth);
#include "confread.h"
+int starter_stroke_config_reload_start();
+int starter_stroke_config_reload_end();
int starter_stroke_add_conn(starter_config_t *cfg, starter_conn_t *conn);
int starter_stroke_del_conn(starter_conn_t *conn);
int starter_stroke_route_conn(starter_conn_t *conn);