Lines Matching defs:ifname
172 DHCP_LOGE("ifname:%s too long!", pValue);
175 if (memset_s(dhcpConfig->ifname, IFACE_NAME_SIZE, '\0', IFACE_NAME_SIZE) != EOK ||
176 strncpy_s(dhcpConfig->ifname, IFACE_NAME_SIZE, pValue, strlen(pValue)) != EOK) {
216 static int ParseConfigFile(const char *configFile, const char *ifname, DhcpConfig *dhcpConfig)
244 if ((ifname == nullptr) || (strlen(ifname) == 0) || (strstr(strLine, ifname) != nullptr)) {
245 DHCP_LOGI("%s %s find ifname:%s", configFile, strLine, ((ifname == nullptr) ? "" : ifname));
248 DHCP_LOGI("%s %s no find ifname:%s", configFile, strLine, ifname);
272 if ((strlen(config->ifname) > 0) && ((config->serverId == 0))) {
286 int LoadConfig(const char *configFile, const char *ifname, DhcpConfig *config)
288 if ((configFile == nullptr) || (strlen(configFile) == 0) || (ifname == nullptr) || (strlen(ifname) == 0) ||
290 DHCP_LOGE("LoadConfig param configFile or ifname or config is nullptr or len = 0!");
300 if (ParseConfigFile(configFile, ifname, config) != RET_SUCCESS) {
311 if ((strlen(config->ifname) == 0) && SetIfnameInfo(config, ifname) != RET_SUCCESS) {
312 DHCP_LOGE("set ifname %s error!", ifname);