summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-15 09:31:27 -0400
committerirungentoo <irungentoo@gmail.com>2013-09-15 09:31:27 -0400
commit8c41244627528ba35dc122ed166cc664fee8c4de (patch)
tree03965770613737b68ac1d8669331a581a1b8ba58 /toxcore/DHT.c
parentdde98eb34567a274d444893f8c98868ba9d1fa4b (diff)
Fixed portablity problems.
struct in6_addr member names can differ per platform.
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r--toxcore/DHT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 11f25880..32a1d96d 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -564,7 +564,7 @@ static int sendnodes(DHT *dht, IP_Port ip_port, uint8_t *public_key, uint8_t *cl
564 564
565 if ((node_ip->family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&node_ip->ip6)) 565 if ((node_ip->family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&node_ip->ip6))
566 /* embedded IPv4-in-IPv6 address: return it in regular sendnodes packet */ 566 /* embedded IPv4-in-IPv6 address: return it in regular sendnodes packet */
567 nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip6.s6_addr32[3]; 567 nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip6.uint32[3];
568 else if (node_ip->family == AF_INET) 568 else if (node_ip->family == AF_INET)
569 nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip4.uint32; 569 nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip4.uint32;
570 else /* shouldn't happen */ 570 else /* shouldn't happen */