struct GNUNET_TIME_Relative timeout = GNUNET_TIME_relative_multiply(
GNUNET_TIME_UNIT_MILLISECONDS, 2500);
int count_ips = 0;
+ char * own_hostname;
memset(&sa, 0, sizeof(sa));
sa.sin_family = AF_INET;
/*
* Looking up our own hostname
*/
- GNUNET_RESOLVER_local_hostname_get(sched, cfg, &check_local_hostname, cls);
-
+ own_hostname = GNUNET_RESOLVER_local_hostname_get();
+ check_local_hostname( NULL, own_hostname);
+ GNUNET_free (own_hostname);
/*
* Testing non-local DNS resolution
memset(&sa, 0, sizeof(sa));
sa.sin_family = AF_INET;
- inet_aton(ROOTSERVER_IP, &sa.sin_addr);
+ sa.sin_addr.S_un.S_addr = inet_addr(ROOTSERVER_IP);
GNUNET_RESOLVER_hostname_get(sched, cfg, (const struct sockaddr *) &sa,
sizeof(struct sockaddr), GNUNET_YES, timeout, &check_rootserver_name, cls);