From: ts Date: 2003-07-13T19:19:55+09:00 Subject: Re: Getting my IP address >>>>> "D" == Daniel Berger writes: D> I tried with sys-host. I don't think I got it right, though. Shall I D> submit an RCR? Or does your code snippet mean that you've already got D> some code to commit Guy? The code snippet mean that actually I've problems. For IPv4, you just create a socket and call ioctl(SIOCGIFCONF). For IPv6, I dont know : * some systems (Solaris, HP/UX, ...) has SIOCGLIFCONF * for linux, probably you must use rtnetlink * for Kame, I don't know, but perhaps it will work with SIOCGIFCONF I don't know IPv6 and all implementations. If someone want to look at this, it's best first to write an extension and put it in RAA Guy Decoux