rdmenezes / remote-testbed

Automatically exported from code.google.com/p/remote-testbed
0 stars 1 forks source link

IPv6: site specific host.ip attribute should have size 45 #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
remote-db/diku_specific_infrastructure/tables/tbl_host.sql
declares the host table as:

    CREATE TABLE host (
        `id` int(11) unsigned NOT NULL auto_increment,
        `dnsname` varchar(255) default '',
        `ip` varchar(15) default '',
        PRIMARY KEY  (`id`)
    ) ENGINE = InnoDB;

However, /usr/include/netinet/in.h:

    #define INET6_ADDRSTRLEN 46

The host.ip attribute should be changed to hold at least
45 characters to make it more future-proof.

Original issue reported on code.google.com by jonas.fonseca on 4 Sep 2007 at 3:20

GoogleCodeExporter commented 9 years ago
Since the DB part is trivial to update, and the DB is probably the hardest to 
migrate
afterwards, fixing the DB host table should be done ASAP. Later we can change 
the MCI
code to handle IPv6.

Original comment by jonas.fonseca on 25 Oct 2007 at 4:36

GoogleCodeExporter commented 9 years ago
Change are available in remote-db#master commit
6a8f994d47eb33d3e1d86bc4f4f443338569d275 ...

Will create a separate issue for the changes needed for the MCI module.

Original comment by jonas.fonseca on 5 Nov 2007 at 9:40

GoogleCodeExporter commented 9 years ago

Original comment by jonas.fonseca on 5 Nov 2007 at 9:50