diff options
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r-- | toxcore/DHT.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 1055ddcd..ae61d988 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -1067,7 +1067,7 @@ static int sendnodes_ipv6(const DHT *dht, IP_Port ip_port, const uint8_t *public | |||
1067 | return sendpacket(dht->net, ip_port, data, 1 + CLIENT_ID_SIZE + crypto_box_NONCEBYTES + len); | 1067 | return sendpacket(dht->net, ip_port, data, 1 + CLIENT_ID_SIZE + crypto_box_NONCEBYTES + len); |
1068 | } | 1068 | } |
1069 | 1069 | ||
1070 | static int handle_getnodes(void *object, IP_Port source, uint8_t *packet, uint32_t length) | 1070 | static int handle_getnodes(void *object, IP_Port source, const uint8_t *packet, uint32_t length) |
1071 | { | 1071 | { |
1072 | uint32_t cmp_len = 1 + CLIENT_ID_SIZE + crypto_box_NONCEBYTES + CLIENT_ID_SIZE + crypto_box_MACBYTES; | 1072 | uint32_t cmp_len = 1 + CLIENT_ID_SIZE + crypto_box_NONCEBYTES + CLIENT_ID_SIZE + crypto_box_MACBYTES; |
1073 | 1073 | ||
@@ -1194,7 +1194,7 @@ static int handle_sendnodes_core(void *object, IP_Port source, const uint8_t *pa | |||
1194 | return 0; | 1194 | return 0; |
1195 | } | 1195 | } |
1196 | 1196 | ||
1197 | static int handle_sendnodes_ipv6(void *object, IP_Port source, uint8_t *packet, uint32_t length) | 1197 | static int handle_sendnodes_ipv6(void *object, IP_Port source, const uint8_t *packet, uint32_t length) |
1198 | { | 1198 | { |
1199 | DHT *dht = object; | 1199 | DHT *dht = object; |
1200 | Node_format plain_nodes[MAX_SENT_NODES]; | 1200 | Node_format plain_nodes[MAX_SENT_NODES]; |
@@ -2296,7 +2296,7 @@ void cryptopacket_registerhandler(DHT *dht, uint8_t byte, cryptopacket_handler_c | |||
2296 | dht->cryptopackethandlers[byte].object = object; | 2296 | dht->cryptopackethandlers[byte].object = object; |
2297 | } | 2297 | } |
2298 | 2298 | ||
2299 | static int cryptopacket_handle(void *object, IP_Port source, uint8_t *packet, uint32_t length) | 2299 | static int cryptopacket_handle(void *object, IP_Port source, const uint8_t *packet, uint32_t length) |
2300 | { | 2300 | { |
2301 | DHT *dht = object; | 2301 | DHT *dht = object; |
2302 | 2302 | ||