summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-11-18 23:30:25 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-11-18 23:30:25 +1100
commit878b5738c25bf378f7e9a801eca623af2abde2b1 (patch)
treea7cdf7a44b24e4e55585471a82a2ac96050f142c /src
parent86eba14ac5495cb031669b7e495d5e85653535f2 (diff)
downloadtor-878b5738c25bf378f7e9a801eca623af2abde2b1.tar.gz
tor-878b5738c25bf378f7e9a801eca623af2abde2b1.zip
Update comments in get_interface_addresses_ioctl
Comment-only change noting platforms that can return IPv6 addresses from SIOCGIFCONF (or SIOCGLIFCONF).
Diffstat (limited to 'src')
-rw-r--r--src/common/address.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c
index cfa8fd1dca..aef229b02c 100644
--- a/src/common/address.c
+++ b/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));