Re: IPv6 code warnings (pack_sockaddr_in6 redefined etc)

2012-11-14 Thread Matt Simerson

Applied in qpsmtpd-dev:

https://github.com/qpsmtpd-dev/qpsmtpd-dev/commit/61f7ea00e0f96665e25c3d195d99609aa06f2527

I have my IPv6 allocation, but I'm waiting for my providers switch to get 
replaced before I can use them. I look forward to testing this patch. 

Matt

On Nov 13, 2012, at 11:38 AM, Michael Holzt  wrote:

>> This is fixed by the attached patch. 
> 
> By the correct one attached now :)
> 
> 
> Regards
> Michael
> 
> -- 
> It's an insane world, but i'm proud to be a part of it. -- Bill Hicks
> 



Re: IPv6 code warnings (pack_sockaddr_in6 redefined etc)

2012-11-13 Thread Michael Holzt
> This is fixed by the attached patch. 

By the correct one attached now :)


Regards
Michael

-- 
It's an insane world, but i'm proud to be a part of it. -- Bill Hicks
diff -Naur qpsmtpd-0.84.old/lib/Qpsmtpd/TcpServer.pm qpsmtpd-0.84/lib/Qpsmtpd/TcpServer.pm
--- qpsmtpd-0.84.old/lib/Qpsmtpd/TcpServer.pm	2010-02-14 06:23:02.0 +0100
+++ qpsmtpd-0.84/lib/Qpsmtpd/TcpServer.pm	2012-11-13 20:30:13.0 +0100
@@ -14,7 +14,7 @@
 # INET6 prior to 2.01 will not work; sorry.
 eval {require IO::Socket::INET6; IO::Socket::INET6->VERSION("2.00");}
 ) {
-import Socket6;
+Socket6->import(qw(inet_ntop));
 $has_ipv6=1;
 }
 else {
diff -Naur qpsmtpd-0.84.old/qpsmtpd-forkserver qpsmtpd-0.84/qpsmtpd-forkserver
--- qpsmtpd-0.84.old/qpsmtpd-forkserver	2010-04-08 07:29:52.0 +0200
+++ qpsmtpd-0.84/qpsmtpd-forkserver	2012-11-13 20:28:56.0 +0100
@@ -20,10 +20,6 @@
 
 my $has_ipv6 = Qpsmtpd::TcpServer::has_ipv6;
 
-if ($has_ipv6) {
-  eval 'use Socket6';
-}
-
 # Configuration
 my $MAXCONN   = 15;  # max simultaneous connections
 my @PORT;# port number(s)
diff -Naur qpsmtpd-0.84.old/qpsmtpd-prefork qpsmtpd-0.84/qpsmtpd-prefork
--- qpsmtpd-0.84.old/qpsmtpd-prefork	2010-02-13 06:30:12.0 +0100
+++ qpsmtpd-0.84/qpsmtpd-prefork	2012-11-13 20:28:50.0 +0100
@@ -31,10 +31,6 @@
 
 my $has_ipv6 = Qpsmtpd::TcpServer::has_ipv6;
 
-if ($has_ipv6) {
-  use Socket6;
-}
-
 #use Time::HiRes qw(gettimeofday tv_interval);
 
 #get available signals