Changeset 1bbc6dc in mainline for uspace/srv/net/dhcp/dhcp.c
- 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)
- File:
-
- 1 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",
Note:
See TracChangeset
for help on using the changeset viewer.