New test from ISIS implemented - test_lookup_sent correct
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user