I note someone (ashish?) is working on IPv6. Thankyou, but there is a
caution here.
To do this properly, you need to be aware that some operating systems
(including OpenBSD, which I'm using) which do not allow IPv4 traffic
on IPv6 sockets, therefore requiring separate sockets for IPv4 and
IPv6. (Specificially, these OSs drop all traffic to ::/96 and
::ffff:0:0/96.)
One of the checkins I saw looked something like
#if IPv6 is available
do IPv6 stuff
#else
do original IPv4 stuff
#endif
I'd suggest a more appropriate phraseology might be more like
do original IPv4 stuff
#if IPv6 is available
also do IPv6 stuff
#endif
or if you still want to collapse the number of sockets where possible
#if (IPv6 is not available) || (IPv6 can't do IPv4)
do original IPv4 stuff
#endif
#if IPv6 is available
do IPv6 stuff
#endif
If there are places you really don't want a pair of sockets where
there used to be just an IPv4 one, maybe you can add an option (on
appropriate OSs) which say to do IPv6 only instead of IPv4 only. (You
can always tell IPv4 from IPv6 when you look at the address.)
--
Christopher Vance
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users