Re: ss_family in hba.c

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Kurt Roeckx <Q(at)ping(dot)be>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ss_family in hba.c
Date: 2003-06-18 04:01:27
Message-ID: 20030618040127.GA8148@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-general pgsql-hackers pgsql-patches

On Tue, Jun 17, 2003 at 22:49:00 +0200,
Kurt Roeckx <Q(at)ping(dot)be> wrote:
> 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?

My system does have its own sockaddr_storage definition. I think
it uses __ss_ as the prefix. Also, after looking at the fallback
definition in pqcomm.h, I don't see where that defines ss_family
and hence don't see how that could work.
I am going to see if adding __ works as suggested by someone else
who replied.

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Bruno Wolff III 2003-06-18 04:07:17 Re: ss_family in hba.c
Previous Message Bruno Wolff III 2003-06-18 03:47:37 Re: ss_family in hba.c

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2003-06-18 04:07:17 Re: ss_family in hba.c
Previous Message Bruno Wolff III 2003-06-18 03:47:37 Re: ss_family in hba.c

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruno Wolff III 2003-06-18 04:07:17 Re: ss_family in hba.c
Previous Message Bruno Wolff III 2003-06-18 03:47:37 Re: ss_family in hba.c

Browse pgsql-patches by date

  From Date Subject
Next Message Bruno Wolff III 2003-06-18 04:07:17 Re: ss_family in hba.c
Previous Message Bruno Wolff III 2003-06-18 03:47:37 Re: ss_family in hba.c