[Mono-bugs] [Bug 63265][Nor] Changed - When the AddressList for a machine is requested only loopback address is returned
Wed, 19 Jan 2005 11:49:03 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by firstname.lastname@example.org.
--- shadow/63265 2005-01-18 20:54:50.000000000 -0500
+++ shadow/63265.tmp.348 2005-01-19 11:49:03.000000000 -0500
@@ -149,6 +149,12 @@
correct; but I can see why people will be using this API.
The only portable thing we can do on Unix to find out the IP
address being used is to connect to a system; and then query the
credentials to extract the ip address that the kernel used to
connect (this is what FTP clients do when they send the PORT command)
+------- Additional Comments From email@example.com 2005-01-19 11:49 -------
+Getting the interface list can be done reasonably portably on unixy
+machines with a SIOCGIFCONF ioctl. It has issues with buffer sizes
+when the buffer passed to the kernel isnt big enough - some systems
+return EINVAL, some just give as much info as there is space.