summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorRoman Proskuryakov <humbug@deeptown.org>2016-01-24 08:53:01 +0300
committerRoman Proskuryakov <humbug@deeptown.org>2016-01-27 02:14:59 +0300
commit94d6333107dc245f669dfbee171544984b47bb6a (patch)
tree84a05d43ee9f76d3ab0dd7c235ab2e84fd0dd4de /toxcore
parented3a794c9bf6380801ee21c816505f457b6a1348 (diff)
add: comment about endianness
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/DHT.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 51f1e5ba..6d9479a6 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -233,6 +233,7 @@ int pack_nodes(uint8_t *data, uint16_t length, const Node_format *nodes, uint16_
233 int ipv6 = -1; 233 int ipv6 = -1;
234 uint8_t net_family; 234 uint8_t net_family;
235 235
236 // FIXME use functions to convert endianness
236 if (nodes[i].ip_port.ip.family == AF_INET) { 237 if (nodes[i].ip_port.ip.family == AF_INET) {
237 ipv6 = 0; 238 ipv6 = 0;
238 net_family = TOX_AF_INET; 239 net_family = TOX_AF_INET;