mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Removed now useless packet id.
This commit is contained in:
parent
8ff85f09cb
commit
4c8737785a
|
@ -2260,7 +2260,6 @@ void kill_DHT(DHT *dht)
|
|||
kill_Assoc(dht->assoc);
|
||||
#endif
|
||||
networking_registerhandler(dht->net, NET_PACKET_GET_NODES, NULL, NULL);
|
||||
networking_registerhandler(dht->net, NET_PACKET_SEND_NODES, NULL, NULL);
|
||||
networking_registerhandler(dht->net, NET_PACKET_SEND_NODES_IPV6, NULL, NULL);
|
||||
cryptopacket_registerhandler(dht, CRYPTO_PACKET_NAT_PING, NULL, NULL);
|
||||
cryptopacket_registerhandler(dht, CRYPTO_PACKET_HARDENING, NULL, NULL);
|
||||
|
|
|
@ -97,7 +97,6 @@ typedef int sock_t;
|
|||
#define NET_PACKET_PING_REQUEST 0 /* Ping request packet ID. */
|
||||
#define NET_PACKET_PING_RESPONSE 1 /* Ping response packet ID. */
|
||||
#define NET_PACKET_GET_NODES 2 /* Get nodes request packet ID. */
|
||||
#define NET_PACKET_SEND_NODES 3 /* Send nodes response packet ID for IPv4 addresses. */
|
||||
#define NET_PACKET_SEND_NODES_IPV6 4 /* Send nodes response packet ID for other addresses. */
|
||||
#define NET_PACKET_COOKIE_REQUEST 24 /* Cookie request packet */
|
||||
#define NET_PACKET_COOKIE_RESPONSE 25 /* Cookie response packet */
|
||||
|
|
Loading…
Reference in New Issue
Block a user