Mike Hearn wrote:
On Fri, 2003-10-31 at 00:51, Dan Kegel wrote:
getifaddrs() is indeed the right beast, though who knows, maybe you'll have to filter out 127.0.0.1. Hitch is, Linux doesn't provide it.
I think it does as of the latest glibc, at least it's marked as "done" on their TODO list.
Hey, you're right. It's there on Red Hat 8 even.
So you could use that when present, and fall back on the current hack (or my implementation) if the system doesn't provide it. - Dan