go-ethereum/p2p/discover
Felix Lange e83c3ccc47
p2p/enode: improve IPv6 support, add ENR text representation (#19663)
* p2p/enr: add entries for for IPv4/IPv6 separation

This adds entry types for "ip6", "udp6", "tcp6" keys. The IP type stays
around because removing it would break a lot of code and force everyone
to care about the distinction.

* p2p/enode: track IPv4 and IPv6 address separately

LocalNode predicts the local node's UDP endpoint and updates the record.
This change makes it predict IPv4 and IPv6 endpoints separately since
they can now be in the record at the same time.

* p2p/enode: implement base64 text format
* all: switch to enode.Parse(...)

This allows passing base64-encoded node records to all the places that
previously accepted enode:// URLs. The URL format is still supported.

* cmd/bootnode, p2p: log node URL instead of ENR

...and return the base64 record in NodeInfo.
2019-06-07 15:31:00 +02:00
..
common.go p2p/discover: split out discv4 code 2019-04-30 13:13:22 +02:00
node.go accounts, p2p, rpc: make CGO_ENABLED=0 build again (#19593) 2019-05-26 01:07:10 +03:00
ntp.go p2p, p2p/discover, p2p/nat: rework logging using context keys 2017-02-28 10:20:29 +01:00
table.go cmd/devp2p: add devp2p debug tool (#19657) 2019-06-07 15:29:16 +02:00
table_test.go p2p/discover: add support for EIP-868 (v4 ENR extension) (#19540) 2019-05-15 06:47:45 +02:00
table_util_test.go cmd/devp2p: add devp2p debug tool (#19657) 2019-06-07 15:29:16 +02:00
v4_udp.go cmd/devp2p: add devp2p debug tool (#19657) 2019-06-07 15:29:16 +02:00
v4_udp_lookup_test.go p2p/discover: add support for EIP-868 (v4 ENR extension) (#19540) 2019-05-15 06:47:45 +02:00
v4_udp_test.go p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00