Skip site navigation (1) Skip section navigation (2)

Re: Cleaning up the INET/CIDR mess

From: Andrew - Supernews <andrew+nonews(at)supernews(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Cleaning up the INET/CIDR mess
Date: 2006-01-25 23:42:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On 2006-01-25, Greg Stark <gsstark(at)mit(dot)edu> wrote:
> I've reported the bug in the one instance I've found. 
> What have you found with this omission?
> It would be passing strange since most software just passes the text to
> inet_aton or inet_pton.

     The inet_ntop() and inet_pton() functions conform to X/Open Networking
     Services Issue 5.2 (``XNS5.2'').  Note that inet_pton() does not accept
     1-, 2-, or 3-part dotted addresses; all four parts must be specified and
     are interpreted only as decimal values.  This is a narrower input set
     than that accepted by inet_aton().

The spec is quite explicit that inet_pton is not expected to accept the
abbreviated forms or any non-decimal values.

Andrew, Supernews - individual and corporate NNTP services

In response to


pgsql-hackers by date

Next:From: Robert LorDate: 2006-01-26 01:41:35
Subject: PostgreSQL Solaris packages now in beta
Previous:From: Greg StarkDate: 2006-01-25 23:02:44
Subject: Re: Cleaning up the INET/CIDR mess

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group