Message78716
Senthil,
I don't think your gethost_addrinfo() function will work. On a v6-
enabled machine, it will only return v6 or v4 names. Shouldn't it
return both (since a machine could have both v4 and v6 addresses)? For
example, on my machine, I have the following addresses for
"localhost": ::1, fe80::1%lo0, 127.0.0.1.
Also, why is the AI_CANONNAME flag set? The canonname field isn't used.
And you only appear to take the last IP address returned (sa[0]).
Shouldn't you return all the addresses? |
|
Date |
User |
Action |
Args |
2009-01-01 18:49:05 | dmorr | set | recipients:
+ dmorr, skip.montanaro, facundobatista, jjlee, orsenthil, dcantrell-rh |
2009-01-01 18:49:05 | dmorr | set | messageid: <1230835745.38.0.984602760083.issue1675455@psf.upfronthosting.co.za> |
2009-01-01 18:49:04 | dmorr | link | issue1675455 messages |
2009-01-01 18:49:03 | dmorr | create | |
|