getaddrinfo(): when providing hints, make sure we use addrconfig/v4mapped.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 22 Oct 2016 11:41:26 +0000 (09:41 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 22 Oct 2016 11:46:43 +0000 (09:46 -0200)
commit9ab8f6636a0ba5d9031c34ea10a165a00cfab2ff
tree42bdc8a3619ed3cc170e440a57f3e14bd85f2fac
parent71efc8ee9d7efb323f5142b6d1bb4ba2e8f6967c
getaddrinfo(): when providing hints, make sure we use addrconfig/v4mapped.

if no hints were specified, getaddrinfo() will assume ai_flags as
AI_ADDRCONFIG | AI_V4MAPPED, which only reports useful results based
on what system supports. For instance AI_ADDRCONFIG will only return
IPv4 if IPv4 address exists, likewise IPv6 will only be returned if
IPv6 address is configured, avoiding these to be tried and error for
most local networks where such address could not be used. AI_V4MAPPED
will map IPv4 address over IPv6 if no IPv4 was found.
src/lib/ecore_con/ecore_con.c
src/lib/ecore_con/efl_net_server_tcp.c
src/lib/ecore_con/efl_net_server_udp.c