]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update comments in get_interface_addresses_ioctl
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Wed, 18 Nov 2015 12:30:25 +0000 (23:30 +1100)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Wed, 18 Nov 2015 13:41:06 +0000 (00:41 +1100)
Comment-only change noting platforms that can return IPv6
addresses from SIOCGIFCONF (or SIOCGLIFCONF).

src/common/address.c

index cfa8fd1dca255a6e7b07574ce19160ca0682436e..aef229b02cd6c3dc4baed7edccb8be5e783f9e64 100644 (file)
@@ -1469,7 +1469,8 @@ get_interface_addresses_ioctl(int severity)
   int fd;
   smartlist_t *result = NULL;
 
-  /* This interface, AFAICT, only supports AF_INET addresses */
+  /* This interface, AFAICT, only supports AF_INET addresses,
+   * except on AIX. For Solaris, we could use SIOCGLIFCONF. */
   fd = socket(AF_INET, SOCK_DGRAM, 0);
   if (fd < 0) {
     tor_log(severity, LD_NET, "socket failed: %s", strerror(errno));