diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-08-28 10:22:43 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-08-30 10:33:19 +0200 |
commit | d21c4d5b0e7f42fe09784f11fa5776ff305e4fdf (patch) | |
tree | 2c31bb7d066101f7a29bec1f78f54faa622b333b /src/ipcpd/broadcast | |
parent | 24bb41dd02b9a2a03ebdeb35d81da9061ffc4604 (diff) | |
download | ouroboros-d21c4d5b0e7f42fe09784f11fa5776ff305e4fdf.tar.gz ouroboros-d21c4d5b0e7f42fe09784f11fa5776ff305e4fdf.zip |
ipcpd: Set IPCP states in common sources
The state of the IPCP was set and checked in the main files, but it's
more convenient to do it in the common source.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/broadcast')
-rw-r--r-- | src/ipcpd/broadcast/main.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/ipcpd/broadcast/main.c b/src/ipcpd/broadcast/main.c index ab8fc5bd..b0cbc6a7 100644 --- a/src/ipcpd/broadcast/main.c +++ b/src/ipcpd/broadcast/main.c @@ -78,10 +78,6 @@ static void finalize_components(void) static int start_components(void) { - assert(ipcp_get_state() == IPCP_INIT); - - ipcp_set_state(IPCP_OPERATIONAL); - if (enroll_start() < 0) { log_err("Failed to start enrollment."); goto fail_enroll_start; @@ -103,14 +99,9 @@ static int start_components(void) static void stop_components(void) { - assert(ipcp_get_state() == IPCP_OPERATIONAL || - ipcp_get_state() == IPCP_SHUTDOWN); - connmgr_stop(); enroll_stop(); - - ipcp_set_state(IPCP_INIT); } static int broadcast_ipcp_enroll(const char * dst, |