Обсуждение: [PATCH] ipv6 support for getaddrinfo.c

Поиск
Список
Период
Сортировка

[PATCH] ipv6 support for getaddrinfo.c

От
"R, Rajesh (STSD)"
Дата:

Patch for getaddrinfo.c to recognize ipv6 addresses.
Used inet_pton to achieve that.

On machines that don’t have getaddrinfo function, Client authenciation fails
for ipv6 addresses if pgsql uses getaddrinfo implemented in this.

This is a fix for that.

Rajesh R
--
This space intentionally left non-blank.

Вложения

Re: [PATCH] ipv6 support for getaddrinfo.c

От
Tom Lane
Дата:
"R, Rajesh (STSD)" <rajesh.r2@hp.com> writes:
> Patch for getaddrinfo.c to recognize ipv6 addresses.

Is this really interesting?  Are there machines out there that have
usable support for IPv6 and yet haven't got getaddrinfo?

We've deliberately avoided trying to support ipv6 in our src/port/
substitute routines, on the grounds that this scenario wasn't important
in the real world.  I'd just as soon not add this unless really
necessary.

The patch as written is quite unusable anyway, as (a) it's not -c
format, (b) it appears not to be against any version close to CVS HEAD,
(c) it breaks the code entirely on machines without struct sockaddr_in6
or inet_pton (which begs the question even more about scope of
applicability).

Also please note that proposed patches go to pgsql-patches --- they are
certainly far off-topic for pgsql-general.

            regards, tom lane