add DHT discovery service
authorFelix Fietkau <nbd@nbd.name>
Sat, 10 Sep 2022 06:43:22 +0000 (08:43 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 16 Sep 2022 16:55:17 +0000 (18:55 +0200)
commite58a5669713197278e4317a1128b9a7be0818d5a
tree838e90cb53744c8427cc9b89410f329d2ee70e19
parentdf5f70b8858c3ce53201a4a0f73e4937359af482
add DHT discovery service

This uses the BitTorrent 'Mainline' DHT in order to find peers.
It operates on the global PEX port, in order to allow exchanging network data
through double NAT. Only the IPv4 DHT is used at the moment.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
.gitignore
CMakeLists.txt
dht.c [new file with mode: 0644]
dht.h [new file with mode: 0644]
udht-ubus.c [new file with mode: 0644]
udht.c [new file with mode: 0644]
udht.h [new file with mode: 0644]