X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcnet.c;h=da0635952b313189308f881916f83a7aa3165e6b;hp=630f93292d485b5ebc39ef35b21c161f20f7ffd3;hb=a818c5b5411bbc4436d1c5f011236985c96bb787;hpb=7910ce2a5c55211a4ea09a52832c6ed32c0b64fd diff --git a/lib/silcutil/silcnet.c b/lib/silcutil/silcnet.c index 630f9329..da063595 100644 --- a/lib/silcutil/silcnet.c +++ b/lib/silcutil/silcnet.c @@ -145,7 +145,7 @@ static void *silc_net_gethostbyaddr_thread(void *context) /* Resolves IP address for hostname. */ bool silc_net_gethostbyname(const char *name, bool prefer_ipv6, char *address, - uint32 address_len) + SilcUInt32 address_len) { #ifdef HAVE_IPV6 struct addrinfo hints, *ai, *tmp, *ip4 = NULL, *ip6 = NULL; @@ -226,7 +226,7 @@ void silc_net_gethostbyname_async(const char *name, /* Resolves hostname by IP address. */ -bool silc_net_gethostbyaddr(const char *addr, char *name, uint32 name_len) +bool silc_net_gethostbyaddr(const char *addr, char *name, SilcUInt32 name_len) { #ifdef HAVE_IPV6 struct addrinfo req, *ai; @@ -406,7 +406,7 @@ bool silc_net_check_local_by_sock(int sock, char **hostname, char **ip) /* Return remote port by socket. */ -uint16 silc_net_get_remote_port(int sock) +SilcUInt16 silc_net_get_remote_port(int sock) { #ifdef HAVE_IPV6 struct sockaddr_storage remote; @@ -438,7 +438,7 @@ uint16 silc_net_get_remote_port(int sock) /* Return local port by socket. */ -uint16 silc_net_get_local_port(int sock) +SilcUInt16 silc_net_get_local_port(int sock) { #ifdef HAVE_IPV6 struct sockaddr_storage local;