summaryrefslogtreecommitdiff
path: root/src/ipcpd/local/main.c
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2023-08-28 10:22:43 +0200
committerSander Vrijders <[email protected]>2023-08-30 10:33:19 +0200
commitd21c4d5b0e7f42fe09784f11fa5776ff305e4fdf (patch)
tree2c31bb7d066101f7a29bec1f78f54faa622b333b /src/ipcpd/local/main.c
parent24bb41dd02b9a2a03ebdeb35d81da9061ffc4604 (diff)
downloadouroboros-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 <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/local/main.c')
-rw-r--r--src/ipcpd/local/main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ipcpd/local/main.c b/src/ipcpd/local/main.c
index e0ba04be..2a5199bb 100644
--- a/src/ipcpd/local/main.c
+++ b/src/ipcpd/local/main.c
@@ -148,8 +148,6 @@ static int local_ipcp_bootstrap(const struct ipcp_config * conf)
ipcpi.dir_hash_algo = conf->layer_info.dir_hash_algo;
strcpy(ipcpi.layer_name,conf->layer_info.layer_name);
- ipcp_set_state(IPCP_OPERATIONAL);
-
if (pthread_create(&local_data.packet_loop, NULL,
local_ipcp_packet_loop, NULL)) {
ipcp_set_state(IPCP_INIT);