use inet_pton() instead of inet_addr() for ipv4/6

Поиск
Список
Период
Сортировка
От Pavel Raiskup
Тема use inet_pton() instead of inet_addr() for ipv4/6
Дата
Msg-id 3932297.uqAmftHYU6@nb.usersys.redhat.com
обсуждение исходный текст
Ответы Re: use inet_pton() instead of inet_addr() for ipv4/6  ("Inoue, Hiroshi" <inoue@tpf.co.jp>)
Список pgsql-odbc
Hi, our regular package checking discovered that in postgresql-odbc is
using inet_addr() call (which is not ipv6 compliant).  I tried to look at
it and it was used just for parsing of ipv4 addresses.  It is not a big
deal (the worst thing what can happen is that ipv6 addresses will cost a
little bit more time to be resolved).

Better solution would be imo to use inet_pton() call for both ipv4 and
ipv6 address families.  Patch is attached, any comment is welcome!

Pavel

Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Daniel Homerick
Дата:
Сообщение: Checksum error via Stackbuilder 3.1.1
Следующее
От: Pavel Raiskup
Дата:
Сообщение: [PATCH] Silence GCC warnings, fix build