Prechádzať zdrojové kódy

Update comments in get_interface_addresses_ioctl

Comment-only change noting platforms that can return IPv6
addresses from SIOCGIFCONF (or SIOCGLIFCONF).
teor (Tim Wilson-Brown) 8 rokov pred
rodič
commit
878b5738c2
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      src/common/address.c

+ 2 - 1
src/common/address.c

@@ -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));