Changeset bd88bee in mainline for uspace/srv/net/nconfsrv/iplink.c
- Timestamp:
- 2013-09-21T22:51:06Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 66ec63a
- Parents:
- 7af0cc5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nconfsrv/iplink.c
r7af0cc5 rbd88bee 38 38 #include <errno.h> 39 39 #include <fibril_synch.h> 40 #include <inet/dhcp.h> 40 41 #include <inet/inetcfg.h> 41 42 #include <io/log.h> 42 43 #include <loc.h> 43 44 #include <stdlib.h> 45 #include <str.h> 44 46 45 47 #include "iplink.h" … … 139 141 } 140 142 143 log_msg(LOG_DEFAULT, LVL_NOTE, "Configure link %s", nlink->svc_name); 141 144 rc = inetcfg_link_add(sid); 142 145 if (rc != EOK) { … … 144 147 "'%s'.\n", nlink->svc_name); 145 148 goto error; 149 } 150 151 if (str_lcmp(nlink->svc_name, "net/eth", str_length("net/eth")) == 0) { 152 rc = dhcp_link_add(sid); 153 if (rc != EOK) { 154 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed configuring DHCP on " 155 " link '%s'.\n", nlink->svc_name); 156 goto error; 157 } 146 158 } 147 159
Note:
See TracChangeset
for help on using the changeset viewer.