Re: IPv6 patch - Mailing list pgsql-hackers
From | Bruce Momjian |
---|---|
Subject | Re: IPv6 patch |
Date | |
Msg-id | 200301060318.h063ImW26224@candle.pha.pa.us Whole thread Raw |
In response to | IPv6 patch (Bruce Momjian <pgman@candle.pha.pa.us>) |
Responses |
Re: IPv6 patch
|
List | pgsql-hackers |
Patch applied. I added a small mention of IPv6 addresses to the pg_hba.conf documentation. Not sure where else to mention it. --------------------------------------------------------------------------- Bruce Momjian wrote: > I have been working on a patch to implement IPv6 connections. A working > patch was supplied by Nigel Kukard about two weeks ago, and I have been > improving it. The original patch assumed the system has IPv6 functions, > like getaddrinfo(), so the major work was patching it into our existing > code that doesn't use IPv6 functions, so systems with/without IPv6 will > be able to compile the same code. > > The patch is at: > > ftp://candle.pha.pa.us/pub/postgresql/mypatches/ipv6.full > > It has a configure test to determine if getaddrinfo() exists, and sets a > #define and a Makefile variable appropriately. Most of the changes are > in backend/libpq/pqcomm.c::StreamServerPort and > interfaces/libpq/fe-connect.c::connectDBStart. There are also two new > files, ip.c and ip.h, which contain IP-specific support functions. > > I have done my best to make the code as clear as possible. There are > more define tests than I would like, but I am hesitant to split out more > of the code into almost duplicate functions for IPv4 and IPv6 > functionality. > > I have tested the code using IPv6 functions, and IPv4 functions. The > system also has no IPv6 support in the kernel, so that has also been > tested. > > The patch is about a week away from being applied, but I thought I would > post the URL so folks can see where I am going. I am interested in > improvements and testing with various configurations. > > FYI, I am also working with someone on the openprojects IRC channel > #ipv6 on an IPv6 data type. > > -- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 359-1001 > + If your life is a hard drive, | 13 Roberts Road > + Christ can be your backup. | Newtown Square, Pennsylvania 19073 > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania19073
pgsql-hackers by date: