Changes in uspace/srv/net/inetsrv/inetsrv.c [1bbc6dc:4c6fd56] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inetsrv.c
r1bbc6dc r4c6fd56 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2023 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 83 81 static FIBRIL_MUTEX_INITIALIZE(client_list_lock); 84 82 static LIST_INITIALIZE(client_list); 85 inet_cfg_t *cfg;86 83 87 84 static void inet_default_conn(ipc_call_t *, void *); … … 89 86 static errno_t inet_init(void) 90 87 { 88 loc_srv_t *srv; 89 90 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()"); 91 91 92 port_id_t port; 92 errno_t rc; 93 loc_srv_t *srv; 94 95 log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()"); 96 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, 93 errno_t rc = async_create_port(INTERFACE_INET, 106 94 inet_default_conn, NULL, &port); 107 95 if (rc != EOK) … … 568 556 569 557 printf(NAME ": Accepting connections.\n"); 570 571 558 task_retval(0); 572 573 (void)inet_link_autoconf();574 559 async_manager(); 575 560
Note:
See TracChangeset
for help on using the changeset viewer.