Re: [SCM] opendkim branch, bug-msk-sf3151405, ipv6

From: Daniel Black <daniel.subs_at_internode.on.net>
Date: Thu, 6 Jan 2011 14:22:06 +1100

> diff --git a/stats/mkdb.mysql b/stats/mkdb.mysql
> index 8c2fd76..a30e269 100644
> --- a/stats/mkdb.mysql
> +++ b/stats/mkdb.mysql
> _at_@ -41,7 +41,7 @@ create table if not exists messages (
> jobid varchar(255) not null,
> reporter int unsigned not null,
> from_domain int unsigned not null,
> - ipaddr varchar(255) not null,
> + ip int unsigned not null,

opendkim/stats.c seems to handle ipv6 but unsigned int isn't big enough.

seems DECIMAL(39) is the only suitable mysql type though.

http://oierud.name/bliki/IPv6AdressesAndMysql.html
Received on Thu Jan 06 2011 - 03:33:17 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:33:08 PST