Subject: Re: Change request...
To: Mason Loring Bliss <>
From: Feico Dillema <>
List: tech-pkg
Date: 11/18/2001 21:17:44
On Fri, Nov 16, 2001 at 08:13:36AM -0500, Mason Loring Bliss wrote:
> On Fri, Nov 16, 2001 at 12:19:56PM +0100, Feico Dillema wrote:
> > Or you could add IPv6 support at the same time (fairly easy, did it
> > once, but lost the patch), and point it by default to
> > which is dual-stack ;-)
> Hm. That sounds reasonable. Do you know where I might be able to find
> the patch for this? Or, I suppose I could just try to do it myself,
> although I'm not completely sure what changes are required to enable
> IPv6... Is it more or less just a matter of using gethostbyname2 instead
> of gethostbyname, roughly, and any changes directly driven by that?
For client software it is often quite minimal what needs to change.
Instead of gethostbyname2 it is better to use getaddrinfo. If I
remember correctly, cdd uses a separate library to open its sockets
and such. So the amount of code to look at is really not much; one or
two short routines maybe. If you need an example, you may take a look
at the socket program which can be found in pkgsrc. It was the first
program I patched for IPv6 ever, and even though the code is not
perfect, it is a rather minimal example of what you typically need to
change in other programs too.