New test from ISIS implemented - test_lookup_sent correct

This commit is contained in:
t
2025-01-10 21:41:44 +01:00
parent bb9c2d1d4c
commit 92581b3d4b
4 changed files with 49 additions and 24 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ void extract_lookup_request(lookup_request* lr){
build_lookup_request(lr);
}
int call_network(lookup_request* lr, in_addr_t ip, int port){
int call_network(lookup_request* lr, in_addr_t ip, uint16_t port){
// int succ_sock;
struct addrinfo hints, *servinfo; // *p;
int rv;
@@ -66,7 +66,7 @@ int call_network(lookup_request* lr, in_addr_t ip, int port){
freeaddrinfo(servinfo);
lr->node_ip.s_addr = ntohl(addr.sin_addr.s_addr);
lr->node_port = ntohs(addr.sin_port);
// lr->node_port = ntohs(addr.sin_port);
/*
for(p = servinfo; p != NULL; p = p->ai_next) {