Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VqBEm-0005A7-6m for pgsql-odbc@arkaria.postgresql.org; Tue, 10 Dec 2013 00:31:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VqBEl-0004Xc-MK for pgsql-odbc@arkaria.postgresql.org; Tue, 10 Dec 2013 00:31:43 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VqBEl-0004XW-0h for pgsql-odbc@postgresql.org; Tue, 10 Dec 2013 00:31:43 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VqBEh-0002vU-E9 for pgsql-odbc@postgresql.org; Tue, 10 Dec 2013 00:31:42 +0000 Received: (qmail 10672 invoked by uid 512); 10 Dec 2013 00:31:36 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 10 Dec 2013 00:31:36 -0000 Message-ID: <52A660E2.8060709@tpf.co.jp> Date: Tue, 10 Dec 2013 09:31:30 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Pavel Raiskup , "pgsql-odbc@postgresql.org" Subject: Re: use inet_pton() instead of inet_addr() for ipv4/6 References: <3932297.uqAmftHYU6@nb.usersys.redhat.com> In-Reply-To: <3932297.uqAmftHYU6@nb.usersys.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi Pavel, (2013/12/06 19:58), Pavel Raiskup wrote: > Hi, our regular package checking discovered that in postgresql-odbc is > using inet_addr() call (which is not ipv6 compliant). I tried to look at > it and it was used just for parsing of ipv4 addresses. It is not a big > deal (the worst thing what can happen is that ipv6 addresses will cost a > little bit more time to be resolved). > > Better solution would be imo to use inet_pton() call for both ipv4 and > ipv6 address families. Patch is attached, any comment is welcome! Thanks for the patch. I will take care of it. regards, Hiroshi Inoue -- I am using the free version of SPAMfighter. SPAMfighter has removed 1069 of my spam emails to date. Get the free SPAMfighter here: http://www.spamfighter.com/len Do you have a slow PC? Try a Free scan http://www.spamfighter.com/SLOW-PCfighter?cid=sigen -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc