[zeromq-dev] [PATCH] IPv4/IPv6 wiring for 3.0
Steven McCoy
steven.mccoy at miru.hk
Mon Jul 18 03:16:02 CEST 2011
- Update NIC resolvers to use sockaddr structures.
- Add two options, prefer-ipv4-stack and prefer-ipv6-addresses.
- Default to IPv6 and drop to IPv4 when OS reports not supported address
family on bind.
- Default connects to resolved address family, dual-stack support is
variable.
- Emulate AI_V4MAPPED on Windows by post-processing getaddrinfo results.
There is no attempt to drop protocol on connects as this is more of a
feature of the current tcp_connector design.
I was running with IPv4-in-IPv6 mapping by default but it's messy to
determine support everywhere.
Tested Windows 7, MSVC 2010, MinGW32 on MSYS, Cygwin, and XP Mode (IPv4
only).
Solaris, AIX, HP/UX are left at IPv4 only, project for later: IPv6 socket is
needed for SIOCGLIFADDR.
--
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110717/7d6c7401/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Update-NIC-resolvers-to-use-sockaddr-structures.patch
Type: application/octet-stream
Size: 23483 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110717/7d6c7401/attachment.obj>
More information about the zeromq-dev
mailing list