Commit 0fe9fe1a authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add IP and privkey slots (key INDEX slots) to widearea_nodeinfo table.

This will superceed the widearea_privkeys table that was used for
RON/Netbed but was never done well.

The privkey is just something we generate and store on the dongle (as
a simplification, we just create a dongle per node instead of
generating them on the fly) since there are not very many of these
widearea (CMU) nodes. We store the IP here for convenience (there is
an interfaces table entry of course).

The IP is updated when the node tells us it has changed, using the
privkey to uniquely identify it (for checkin).
parent ed66df6d
......@@ -3689,7 +3689,11 @@ CREATE TABLE `widearea_nodeinfo` (
`latitude` float default NULL,
`longitude` float default NULL,
`bwlimit` varchar(32) default NULL,
PRIMARY KEY (`node_id`)
`privkey` varchar(128) default NULL,
`IP` varchar(15) default NULL,
PRIMARY KEY (`node_id`),
KEY `IP` (`IP`),
KEY `privkey` (`privkey`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
......@@ -4155,3 +4155,12 @@ last_net_act,last_cpu_act,last_ext_act);
4.129: Minor fix to previous revision; skip to next entry.
4.130: Minor fix to previous revision; skip to next entry.
4.131: Add some new WA support.
alter table widearea_nodeinfo
add `privkey` varchar(128) default NULL,
add `IP` varchar(15) default NULL,
add KEY `IP` (`IP`),
add KEY `privkey` (`privkey`);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment