Changeset 1bbc6dc in mainline for uspace/srv/net/inetsrv/inetsrv.c
- Timestamp:
- 2024-09-17T06:44:46Z (5 months ago)
- Branches:
- master
- Children:
- 9aa51406
- Parents:
- 096c0786
- git-author:
- Jiri Svoboda <jiri@…> (2024-09-16 18:44:38)
- git-committer:
- Jiri Svoboda <jiri@…> (2024-09-17 06:44:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetsrv.c
r096c0786 r1bbc6dc 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 79 79 }; 80 80 81 static const char *inet_cfg_path = "/w/cfg/inetsrv.sif"; 82 81 83 static FIBRIL_MUTEX_INITIALIZE(client_list_lock); 82 84 static LIST_INITIALIZE(client_list); 85 inet_cfg_t *cfg; 83 86 84 87 static void inet_default_conn(ipc_call_t *, void *); … … 86 89 static errno_t inet_init(void) 87 90 { 91 port_id_t port; 92 errno_t rc; 88 93 loc_srv_t *srv; 89 94 90 95 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()"); 91 96 92 port_id_t port; 93 errno_t rc = async_create_port(INTERFACE_INET, 97 rc = inet_link_discovery_start(); 98 if (rc != EOK) 99 return rc; 100 101 rc = inet_cfg_open(inet_cfg_path, &cfg); 102 if (rc != EOK) 103 return rc; 104 105 rc = async_create_port(INTERFACE_INET, 94 106 inet_default_conn, NULL, &port); 95 107 if (rc != EOK) … … 556 568 557 569 printf(NAME ": Accepting connections.\n"); 570 558 571 task_retval(0); 572 573 (void)inet_link_autoconf(); 559 574 async_manager(); 560 575
Note:
See TracChangeset
for help on using the changeset viewer.