浏览代码

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 年之前
父节点
当前提交
2c151d8082
共有 1 个文件被更改,包括 2 次插入1 次删除
  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));