diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-17 13:52:39 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-17 13:52:39 -0400 |
commit | 9ece65da23f5694e34e9f63ac065fea01366daca (patch) | |
tree | 3fe7cf19439b871ea4e1b88675bd3e87d54fa287 | |
parent | 7701e25a459f791e631aaa7959ff2da58e96f776 (diff) | |
download | infinitytier-9ece65da23f5694e34e9f63ac065fea01366daca.tar.gz infinitytier-9ece65da23f5694e34e9f63ac065fea01366daca.zip |
Fix some old column names in netconf.
-rw-r--r-- | netconf-service/netconf.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/netconf-service/netconf.cpp b/netconf-service/netconf.cpp index a14a10b6..71cf38b9 100644 --- a/netconf-service/netconf.cpp +++ b/netconf-service/netconf.cpp @@ -220,8 +220,6 @@ int main(int argc,char **argv) if (rs[0]["identity"] != peerIdentity.toString(false)) { // TODO: handle collisions... continue; - } else if ((int)rs[0]["identityValidated"] == 0) { - // TODO: launch background validation } } else { q = dbCon->query(); @@ -251,7 +249,7 @@ int main(int argc,char **argv) std::string desc; { Query q = dbCon->query(); - q << "SELECT name,`desc`,isOpen,multicastPrefixBits,multicastDepth FROM Network WHERE id = " << nwid; + q << "SELECT name,`desc`,isOpen,multicastPrefixBits,multicastDepth,emulateArp,emulateNdp FROM Network WHERE id = " << nwid; StoreQueryResult rs = q.store(); if (rs.num_rows() > 0) { name = rs[0]["name"].c_str(); @@ -411,7 +409,7 @@ int main(int argc,char **argv) // Update activity table for this network to indicate peer's participation { Query q = dbCon->query(); - q << "INSERT INTO NetworkActivity (Network_id,Node_id,lastActivityTime,lastActivityFrom) VALUES (" << nwid << "," << peerIdentity.address().toInt() << "," << Utils::now() << "," << fromAddr << ") ON DUPLICATE KEY UPDATE lastActivityTime = VALUES(lastActivityTime),lastActivityFrom = VALUES(lastActivityFrom)"; + q << "INSERT INTO NetworkActivity (Network_id,Node_id,lastActivityTime,lastActivityFrom) VALUES (" << nwid << "," << peerIdentity.address().toInt() << "," << Utils::now() << "," << quote << fromAddr << ") ON DUPLICATE KEY UPDATE lastActivityTime = VALUES(lastActivityTime),lastActivityFrom = VALUES(lastActivityFrom)"; q.exec(); } |