search for: getservicenameinfo

Displaying 2 results from an estimated 2 matches for "getservicenameinfo".

2008 Oct 24
0
Name lookup failures and CIDR regression under cygwin ( patch attached )
...- /* We don't support those. */ if ((node && !(flags & NI_NUMERICHOST)) || (service && !(flags & NI_NUMERICSERV))) return EAI_FAIL; if (node) { return gethostnameinfo(sa, node, nodelen, flags); } if (service) { return getservicenameinfo(sa, service, servicelen, flags); } return 0; There seems to be three issues here:- 1. Both name ( node ) and port ( service ) are passed in but NI_NUMERICHOST is not supplied so the call will always return EAI_FAIL due to the "We don't support those" check. 2. getnameinfo ret...
2008 Oct 24
5
DO NOT REPLY [Bug 5851] New: Name lookup failures and CIDR regression
...- /* We don't support those. */ if ((node && !(flags & NI_NUMERICHOST)) || (service && !(flags & NI_NUMERICSERV))) return EAI_FAIL; if (node) { return gethostnameinfo(sa, node, nodelen, flags); } if (service) { return getservicenameinfo(sa, service, servicelen, flags); } return 0; There seems to be three issues here:- 1. Both name ( node ) and port ( service ) are passed in but NI_NUMERICHOST is not supplied so the call will always return EAI_FAIL due to the "We don't support those" check. 2. getnameinfo ret...