Message209568
getaddrinfo is a thin wrapper around the system call. Have you tried the same thing in a C program and had it work?
My guess would be that the all-numeric 'hostname' is being treated as the integer form of an IP address. I can't immediately find any documentation that addresses this for getaddrinfo, but the impression I get from googling is that turning numbers into ip addresses is not specified behavior but is what (most?) libc implementations do. |
|
Date |
User |
Action |
Args |
2014-01-28 17:36:18 | r.david.murray | set | recipients:
+ r.david.murray, ariel-wikimedia |
2014-01-28 17:36:18 | r.david.murray | set | messageid: <1390930578.34.0.113270690574.issue20418@psf.upfronthosting.co.za> |
2014-01-28 17:36:18 | r.david.murray | link | issue20418 messages |
2014-01-28 17:36:18 | r.david.murray | create | |
|