Changeset 1bbc6dc in mainline for uspace/srv/net/dhcp
- Timestamp:
- 2024-09-17T06:44:46Z (10 months ago)
- Branches:
- master
- Children:
- 9aa51406
- Parents:
- 096c0786
- git-author:
- Jiri Svoboda <jiri@…> (2024-09-16 18:44:38)
- git-committer:
- Jiri Svoboda <jiri@…> (2024-09-17 06:44:46)
- Location:
- uspace/srv/net/dhcp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dhcp/dhcp.c
r096c0786 r1bbc6dc 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 71 71 static list_t dhcp_links; 72 72 73 bool inetcfg_inited = false; 74 73 75 static void dhcpsrv_discover_timeout(void *); 74 76 static void dhcpsrv_request_timeout(void *); … … 468 470 log_msg(LOG_DEFAULT, LVL_DEBUG, "dhcpsrv_link_add(%zu)", link_id); 469 471 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 470 483 if (dhcpsrv_link_find(link_id) != NULL) { 471 484 log_msg(LOG_DEFAULT, LVL_NOTE, "Link %zu already added", -
uspace/srv/net/dhcp/main.c
r096c0786 r1bbc6dc 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 38 38 #include <str_error.h> 39 39 #include <io/log.h> 40 #include <inet/inetcfg.h>41 40 #include <ipc/dhcp.h> 42 41 #include <ipc/services.h> … … 60 59 61 60 dhcpsrv_links_init(); 62 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 61 69 62 async_set_fallback_port_handler(dhcp_client_conn, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.