spamassassin-users October 2010 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: Re: SA 3.3.1 and NetAddr::IP 4.034

Re: SA 3.3.1 and NetAddr::IP 4.034

From: Mark Martinec <Mark.Martinec+sa_at_nospam>
Date: Thu Oct 28 2010 - 14:56:09 GMT
To: users@spamassassin.apache.org

> Looking into it...

> > I know NetAddr::IP recently got a re-design and probably SA have to cope
> > with this.

Looks like a but in NetAddr::IP 4.034, it forgets to adjust the CIDR mask
when converting an IPv4 address to an IPv6 notation:

correct (NetAddr-IP-4.033):
  $ perl -le 'use NetAddr::IP; print NetAddr::IP->new6("127.0.0.0/8")'
  0:0:0:0:0:0:7F00:0/104

wrong (NetAddr-IP-4.034):
  $ perl -le 'use NetAddr::IP; print NetAddr::IP->new6("127.0.0.0/8")'
  0:0:0:0:0:0:7F00:0/8

Mark