]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
stroke: Propagate configuration reloading signals to the daemon bus
authorMartin Willi <martin@revosec.ch>
Fri, 10 Apr 2015 12:04:46 +0000 (14:04 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 10 Apr 2015 12:04:46 +0000 (14:04 +0200)
src/libcharon/plugins/stroke/stroke_socket.c
src/stroke/stroke_msg.h

index db7e66f14373a6af65d2d800da946f946a74181c..e8d6c0b6b2a508a4a7a856916afc350e806d1c6c 100644 (file)
@@ -730,6 +730,14 @@ static bool on_accept(private_stroke_socket_t *this, stream_t *stream)
                case STR_COUNTERS:
                        stroke_counters(this, msg, out);
                        break;
+               case STR_CONF_RELOAD_START:
+                       DBG1(DBG_CFG, "received stroke conf reload start");
+                       charon->bus->alert(charon->bus, ALERT_CONF_RELOAD_STARTED);
+                       break;
+               case STR_CONF_RELOAD_END:
+                       DBG1(DBG_CFG, "received stroke conf reload end");
+                       charon->bus->alert(charon->bus, ALERT_CONF_RELOAD_FINISHED);
+                       break;
                default:
                        DBG1(DBG_CFG, "received unknown stroke");
                        break;
index c2b923f6db9a82e7dd17473b7e7ea024c8de87d6..613552aa1d5d4504fbd7557051c1182a3d551648 100644 (file)
@@ -230,6 +230,10 @@ struct stroke_msg_t {
                STR_USER_CREDS,
                /* print/reset counters */
                STR_COUNTERS,
+               /* notify a config reload start */
+               STR_CONF_RELOAD_START,
+               /* notify a config reload end */
+               STR_CONF_RELOAD_END,
                /* more to come */
        } type;