Re: Endless loop in plugin sender_permitted_from on IPv6 clients

2012-11-15 Thread Michael Holzt
> I amended the relay plugin with the IPv6 code shown in the prior email, > that provides nibble boundary matching. There are still problems. This Net::IP::ip_expand_address function does not seem to work properly with CIDR specification. 2001:db8:123::/64 is returned as "2001:0db8:1234::000

Re: Endless loop in plugin sender_permitted_from on IPv6 clients

2012-11-15 Thread Michael Holzt
> It will return for the given example '2001:db8:123/44' which as I > understands is the correct meaning of '2001:db8:123' when we split > at nibble endings. Oh, well, it isn't. It should be expanded to 2001:db8:1230::/24. Add the four marked lines: # Get the length of the last segment my $l

Re: Endless loop in plugin sender_permitted_from on IPv6 clients

2012-11-15 Thread Matt Simerson
Masks are already being handled properly by the other method. Wouldn't it be better to just skip CIDR processing entirely when we detect a mask? Matt On Nov 15, 2012, at 4:43 AM, Michael Holzt wrote: >> It will return for the given example '2001:db8:123/44' which as I >> understands is the co