summaryrefslogtreecommitdiff
path: root/src/ipcpd/udp
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2023-08-28 10:22:43 +0200
committerSander Vrijders <sander@ouroboros.rocks>2023-08-30 10:33:19 +0200
commitd21c4d5b0e7f42fe09784f11fa5776ff305e4fdf (patch)
tree2c31bb7d066101f7a29bec1f78f54faa622b333b /src/ipcpd/udp
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 <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/udp')
-rw-r--r--src/ipcpd/udp/main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ipcpd/udp/main.c b/src/ipcpd/udp/main.c
index 62cd3181..86bb1afe 100644
--- a/src/ipcpd/udp/main.c
+++ b/src/ipcpd/udp/main.c
@@ -658,8 +658,6 @@ static int udp_ipcp_bootstrap(const struct ipcp_config * conf)
udp_data.dns_addr = conf->udp.dns_addr;
- ipcp_set_state(IPCP_OPERATIONAL);
-
if (pthread_create(&udp_data.mgmt_handler, NULL,
udp_ipcp_mgmt_handler, NULL)) {
ipcp_set_state(IPCP_INIT);