Update vs_2008 projects.

This commit is contained in:
bossiel 2010-02-11 20:43:47 +00:00
parent 7f9d00f54b
commit 4fbc0d545c
5 changed files with 16 additions and 2 deletions

View File

@ -56,7 +56,7 @@ tnet_dhcp6_reply_t* tnet_dhcp6_send_request(const tnet_dhcp6_ctx_t* ctx, tnet_dh
goto bail;
}
localsocket6 = TNET_SOCKET_CREATE(TNET_SOCKET_HOST_ANY, ctx->port_client, tnet_socket_type_udp_ipv6);
localsocket6 = TNET_SOCKET_CREATE(TNET_SOCKET_HOST_ANY /*"fe80::283c:168a:5c70:81eb"*/, ctx->port_client, tnet_socket_type_udp_ipv6);
if(!TNET_SOCKET_IS_VALID(localsocket6))
{
TSK_DEBUG_ERROR("Failed to create/bind DHCPv6 client socket.");

View File

@ -76,11 +76,13 @@ typedef char tnet_ip_t[INET6_ADDRSTRLEN];
# define TNET_ERROR_WOULDBLOCK WSAEWOULDBLOCK
# define TNET_ERROR_INPROGRESS WSAEINPROGRESS
# define TNET_ERROR_CONNRESET WSAECONNRESET
# define tnet_gai_strerror gai_strerrorA
#else
# define TNET_INVALID_SOCKET -1
# define TNET_ERROR_WOULDBLOCK EWOULDBLOCK
# define TNET_ERROR_INPROGRESS EINPROGRESS
# define TNET_ERROR_CONNRESET ECONNRESET
# define tnet_gai_strerror gai_strerror
#endif
#define TNET_INVALID_FD TNET_INVALID_SOCKET

View File

@ -393,7 +393,11 @@ bail:
**/
int tnet_getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res)
{
return getaddrinfo(node, service, hints, res);
int ret;
if((ret = getaddrinfo(node, service, hints, res))){
TSK_DEBUG_ERROR("getaddrinfo failed: [%s]", tnet_gai_strerror(ret));
}
return ret;
}
/**

View File

@ -375,6 +375,10 @@
RelativePath=".\test_dhcp.h"
>
</File>
<File
RelativePath=".\test_dhcp6.h"
>
</File>
<File
RelativePath=".\test_dns.h"
>

View File

@ -530,6 +530,10 @@
RelativePath=".\src\tnet_auth.h"
>
</File>
<File
RelativePath=".\src\tnet_hardwares.h"
>
</File>
<File
RelativePath=".\src\tnet_nat.h"
>