Re: best source code for IPv6

Thorsten Glaser <[email protected]> Mon, 26 Jul 2004 19:30:24 +0000
Newsgroups gmane.os.openbsd.ipv6
Message-ID <[email protected]>
Dixitur illum [email protected] scribere...

>incorporate the latest KAME updates and how well those updates are
>tested, but I don't know what those differences are.

Definitively not OpenBSD - they do not support IPv4-mapped
addresses (NetBSD does, but only after enabling a certain
sysctl).

IPv4-mapped addresses allow you to listen on :: port 100 on
one socket (AF_INET6, TCP) and get connections from IPv4-only
hosts via ::FFFF:a.b.c.d addresses. (Same goes for IPX and some
weird antique other protocol, but no mapping scheme has been
specified yet for these AFAIK.)

If you take a certain networking dæmon, for example DJB tinydns,
and want to make it work with IPv6, you either have to start two
different instances, one listening on 0.0.0.0 port 53 UDP AF_INET
and one on :: port 53 UDP AF_INET6, or convert it into a complicated
application using select(). itojun-sensei still hasn't persuaded
us to do the latter, and having to do the former sucks (code
duplication, for example), especially in ports.

Of course, there's always the "security" argument, but I don't
really believe in that - except for the "code complexity in kernel"
part of it.

//Thorsten
-- 
Currently blocking eMail from the following domains: bigpond.com, biz, gmx.de,
gmx.net, hotmail.com, info, jumpy.it, libero.it, name, netscape.net,
postino.it, simplesnet.pt, spymac.com, tatanova.com, tiscali.co.uk,
tiscali.cz, tiscali.de, tiscali.it, voila.fr, yahoo.co.uk, yahoo.com.