[FFmpeg-devel] [PATCH] IPv6 support v.2

Rich Felker dalias
Sat Dec 1 16:19:57 CET 2007

On Sat, Dec 01, 2007 at 10:11:57AM -0500, Ronald S. Bultje wrote:
> Hi,
> On Dec 1, 2007 8:05 AM, M?ns Rullg?rd <mans at mansr.com> wrote:
> > "Ronald S. Bultje" <rsbultje at gmail.com> writes:
> > > Can I make CONFIG_NETWORK depend on CONFIG_IPV6 then, just to cover for
> > the
> > > general future direction here? Makes the rest of the patch a bit easier.
> >
> > Are you suggesting we require IPv6 support?  IMHO that's not so good,
> > unless you can convince me that everybody that matters has the
> > necessary headers.
> Not exactly, but everybody will need the getaddrinfo() API, which is the API
> that allows IPv6 (in addition to other network protocols), whereas the
> currently used API only does IPv4 (gethostbyname()). That's probably what
> you meant, but so it doesn't require IPv6.
> The idea proposed by Michael, Luca and others is to use getaddrinfo()
> directly and to provide a fallback getaddrinfo() implementation in a
> separate library (or to link it in if it exists already) for those systems (
> e.g. OS/2) that lack it.

I agree that support for gethostbyname should be removed asap. Using
it clobbers internal state of the C library resolver and thus it
should never be called from library code. This is just like rand(),
signal(), etc...


More information about the ffmpeg-devel mailing list