Lines Matching defs:pKey
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!");
46 if (strcmp(pKey, "distribution") == 0) {
48 } else if (strcmp(pKey, "broadcast") == 0) {
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!");
67 if (strcmp(pKey, "leaseTime") == 0) {
69 } else if (strcmp(pKey, "renewalTime") == 0) {
71 } else if (strcmp(pKey, "rebindingTime") == 0) {
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!");
90 if (((strcmp(pKey, "serverId") == 0) && common) || ((strcmp(pKey, "server") == 0) && !common)) {
92 } else if (strcmp(pKey, "gateway") == 0) {
94 } else if (strcmp(pKey, "netmask") == 0) {