summaryrefslogtreecommitdiff
path: root/testing/DHT_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r--testing/DHT_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index 086cd554..5f85e934 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -44,6 +44,8 @@ void print_clientlist()
44 printf("\nIP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); 44 printf("\nIP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port));
45 printf("\nTimestamp: %u", close_clientlist[i].timestamp); 45 printf("\nTimestamp: %u", close_clientlist[i].timestamp);
46 printf("\nLast pinged: %u\n", close_clientlist[i].last_pinged); 46 printf("\nLast pinged: %u\n", close_clientlist[i].last_pinged);
47 p_ip = close_clientlist[i].ret_ip_port;
48 printf("\nOUR IP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port));
47 } 49 }
48} 50}
49 51
@@ -78,6 +80,8 @@ void print_friendlist()
78 printf("\nIP: %u.%u.%u.%u:%u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); 80 printf("\nIP: %u.%u.%u.%u:%u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port));
79 printf("\nTimestamp: %u", friends_list[k].client_list[i].timestamp); 81 printf("\nTimestamp: %u", friends_list[k].client_list[i].timestamp);
80 printf("\nLast pinged: %u\n", friends_list[k].client_list[i].last_pinged); 82 printf("\nLast pinged: %u\n", friends_list[k].client_list[i].last_pinged);
83 p_ip = friends_list[k].client_list[i].ret_ip_port;
84 printf("\nret IP: %u.%u.%u.%u:%u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port));
81 } 85 }
82 } 86 }
83} 87}