Lines Matching defs:pValue
33 static int SetEnableConfigInfo(DhcpConfig *dhcpConfig, const char *pKey, const char *pValue)
35 if ((dhcpConfig == nullptr) || (pKey == nullptr) || (pValue == nullptr)) {
36 DHCP_LOGE("SetEnableConfigInfo param dhcpConfig or pKey or pValue is nullptr!");
40 uint32_t uValue = (uint32_t)atoi(pValue);
42 DHCP_LOGE("enable:%s error", pValue);
54 static int SetTimeConfigInfo(DhcpConfig *dhcpConfig, const char *pKey, const char *pValue)
56 if ((dhcpConfig == nullptr) || (pKey == nullptr) || (pValue == nullptr)) {
57 DHCP_LOGE("SetTimeConfigInfo param dhcpConfig or pKey or pValue is nullptr!");
62 if ((uValue = (uint32_t)atoi(pValue)) == 0) {
63 DHCP_LOGE("atoi failed, time:%s", pValue);
77 static int SetNetConfigInfo(DhcpConfig *dhcpConfig, const char *pKey, const char *pValue, int common)
79 if ((dhcpConfig == nullptr) || (pKey == nullptr) || (pValue == nullptr)) {
80 DHCP_LOGE("SetNetConfigInfo param dhcpConfig or pKey or pValue is nullptr!");
85 if ((uValue = ParseIpAddr(pValue)) == 0) {
86 DHCP_LOGE("ParseIpAddr failed, ip:%s", pValue);
100 static int SetIpAddressPool(DhcpConfig *dhcpConfig, const char *pValue)
102 if ((dhcpConfig == nullptr) || (pValue == nullptr)) {
103 DHCP_LOGE("SetIpAddressPool param dhcpConfig or pValue is nullptr!");
107 char *pSrc = (char *)pValue;
130 static int SetDnsInfo(DhcpConfig *dhcpConfig, const char *pValue)
132 if ((dhcpConfig == nullptr) || (pValue == nullptr)) {
133 DHCP_LOGE("SetDnsInfo param dhcpConfig or pValue is nullptr!");
137 char *pSrc = (char *)pValue;
165 static int SetIfnameInfo(DhcpConfig *dhcpConfig, const char *pValue)
167 if ((dhcpConfig == nullptr) || (pValue == nullptr)) {
168 DHCP_LOGE("SetIfnameInfo dhcpConfig or pValue is nullptr!");
171 if (strlen(pValue) >= IFACE_NAME_SIZE) {
172 DHCP_LOGE("ifname:%s too long!", pValue);
176 strncpy_s(dhcpConfig->ifname, IFACE_NAME_SIZE, pValue, strlen(pValue)) != EOK) {