Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inetsrv.c

    r1bbc6dc r4c6fd56  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    7979};
    8080
    81 static const char *inet_cfg_path = "/w/cfg/inetsrv.sif";
    82 
    8381static FIBRIL_MUTEX_INITIALIZE(client_list_lock);
    8482static LIST_INITIALIZE(client_list);
    85 inet_cfg_t *cfg;
    8683
    8784static void inet_default_conn(ipc_call_t *, void *);
     
    8986static errno_t inet_init(void)
    9087{
     88        loc_srv_t *srv;
     89
     90        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_init()");
     91
    9192        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,
    10694            inet_default_conn, NULL, &port);
    10795        if (rc != EOK)
     
    568556
    569557        printf(NAME ": Accepting connections.\n");
    570 
    571558        task_retval(0);
    572 
    573         (void)inet_link_autoconf();
    574559        async_manager();
    575560
Note: See TracChangeset for help on using the changeset viewer.