Ignore:
File:
1 edited

Legend:

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

    rca48672 r4c6fd56  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3838#include <str_error.h>
    3939#include <io/log.h>
     40#include <inet/inetcfg.h>
    4041#include <ipc/dhcp.h>
    4142#include <ipc/services.h>
     
    6061        dhcpsrv_links_init();
    6162
     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
    6269        async_set_fallback_port_handler(dhcp_client_conn, NULL);
    6370
     
    6976
    7077        service_id_t sid;
    71         rc = loc_service_register(srv, SERVICE_NAME_DHCP, fallback_port_id,
    72             &sid);
     78        rc = loc_service_register(srv, SERVICE_NAME_DHCP, &sid);
    7379        if (rc != EOK) {
    7480                loc_server_unregister(srv);
Note: See TracChangeset for help on using the changeset viewer.