ipv6 support

Please add support for IPv6 addresses.

Wire Protocol [1] describes "Peers" payload type which lists known peers. The peer is the IPv4 address.
It would be good to change the Peers command to something like this:

Peers
[0x11, [ [Family1, IP1, Port1], [Family2, IP2, Port2], ... ] ]
Specifies a number of known peers.
Familyx is a 1-byte long value defining address family of the peer. Currently
supported values are 0x00 for IPv4 and 0x01 for IPv6.
IPx is a peer IP address.
IPv4 address is a 4-byte array 'ABCD' that should be interpreted as
the IP address A.B.C.D.
IPv6 address is a 16-byte array 'ABCDEFGHIJKLMNOP' that should be
interpreted as the IP address AB:CD:EF:GH:IJ:KL:MN:OP.
Port and Family is a 2-byte array that should be interpreted as a
16-bit big-endian integer.


[1] http://wiki.ethereum.org/index.php/Wire_Protocol

Comments

Sign In or Register to comment.