Re: ss_family in hba.c - Mailing list pgsql-hackers

From Kurt Roeckx
Subject Re: ss_family in hba.c
Date
Msg-id 20030617204900.GA5589@ping.be
Whole thread Raw
In response to ss_family in hba.c  (Bruno Wolff III <bruno@wolff.to>)
Responses Re: ss_family in hba.c  (Mike Aubury <mike@aubit.com>)
Re: ss_family in hba.c  (Bruno Wolff III <bruno@wolff.to>)
Re: ss_family in hba.c  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-hackers
On Tue, Jun 17, 2003 at 03:32:32PM -0500, Bruno Wolff III wrote:
> I was looking at this some more and now think there is something wrong
> with the references to ss_family rather than a missing inlcude file.
> Perhaps those were supposed to be references to sa_family or there
> is a missing field from the socket_storage type definition.

The struct sockaddr_storage should only have 1 field you can use
and that is ss_family.  The other fields are there just to get
the right size and padding.

Does your system have it's own (broken?) struct sockaddr_storage
maybe?


Kurt



pgsql-hackers by date:

Previous
From: Sebastien Lemieux
Date:
Subject: Extending PostgreSQL in C or C++
Next
From: Mike Aubury
Date:
Subject: Re: ss_family in hba.c