Ignore:
File:
1 edited

Legend:

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

    r1bbc6dc rb7155d7  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    7171static list_t dhcp_links;
    7272
    73 bool inetcfg_inited = false;
    74 
    7573static void dhcpsrv_discover_timeout(void *);
    7674static void dhcpsrv_request_timeout(void *);
     
    470468        log_msg(LOG_DEFAULT, LVL_DEBUG, "dhcpsrv_link_add(%zu)", link_id);
    471469
    472         if (!inetcfg_inited) {
    473                 rc = inetcfg_init();
    474                 if (rc != EOK) {
    475                         log_msg(LOG_DEFAULT, LVL_ERROR, "Error contacting "
    476                             "inet configuration service.\n");
    477                         return EIO;
    478                 }
    479 
    480                 inetcfg_inited = true;
    481         }
    482 
    483470        if (dhcpsrv_link_find(link_id) != NULL) {
    484471                log_msg(LOG_DEFAULT, LVL_NOTE, "Link %zu already added",
Note: See TracChangeset for help on using the changeset viewer.