Subject: Re: No IPv6 in the kernel vs socket(2) errno vs postfix
To: None <>
From: Valeriy E. Ushakov <>
List: tech-net
Date: 06/09/2006 18:09:46
On Fri, Jun 09, 2006 at 09:34:59 -0400, Sean Boudreau wrote:

> > 2) postfix checks for *another* wrong errno: EAFNOSUPPORT instead of
> >    EPFNOSUPPORT (search for the former in src/util/inet_proto.c)
> POSIX says EAFNOSUPPORT and has no concept of EPFNOSUPPORT.

Well, POSIX doesn't have PF_ constants either.  We nominally
distinguish PF_ and AF_ though they have identical numeric values, but
EPFNOSUPPORT and EAFNOSUPPORT have different numeric values, thus we
have an interesting problem here (posixly correct vs internally

Anyway, my reading of the is that
unsupported arguments should be reported as:

type     - EPROTOTYPE

pffindproto and pffindtype return NULL w/out indicating which argument
caused the problem.

SY, Uwe
--                         |       Zu Grunde kommen          |       Ist zu Grunde gehen