Ignore:
File:
1 edited

Legend:

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

    r4c6fd56 rca48672  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3838#include <str_error.h>
    3939#include <io/log.h>
    40 #include <inet/inetcfg.h>
    4140#include <ipc/dhcp.h>
    4241#include <ipc/services.h>
     
    6160        dhcpsrv_links_init();
    6261
    63         rc = inetcfg_init();
    64         if (rc != EOK) {
    65                 log_msg(LOG_DEFAULT, LVL_ERROR, "Error contacting inet configuration service.\n");
    66                 return EIO;
    67         }
    68 
    6962        async_set_fallback_port_handler(dhcp_client_conn, NULL);
    7063
     
    7669
    7770        service_id_t sid;
    78         rc = loc_service_register(srv, SERVICE_NAME_DHCP, &sid);
     71        rc = loc_service_register(srv, SERVICE_NAME_DHCP, fallback_port_id,
     72            &sid);
    7973        if (rc != EOK) {
    8074                loc_server_unregister(srv);
Note: See TracChangeset for help on using the changeset viewer.