Lines Matching refs:string
81 void DhcpController::StartClient(const std::string &iface, bool bIpv6)
97 void DhcpController::StopClient(const std::string &iface, bool bIpv6)
105 void DhcpController::Process(const std::string &iface, DhcpResult *result)
124 bool DhcpController::StartDhcpService(const std::string &iface, const std::string &ipv4addr)
127 std::string ipAddr = ipv4addr;
128 std::string::size_type pos = ipAddr.rfind(".");
129 if (pos == std::string::npos) {
133 std::string ipHead = ipAddr.substr(0, pos);
134 std::string strStartip = ipHead + DEFAULT_STR_STARTIP;
135 std::string strEndip = ipHead + DEFAULT_STR_ENDIP;
136 std::string strSubnet = DEFAULT_STR_SUBNET;
174 bool DhcpController::StopDhcpService(const std::string &iface)