commit 878b5738c25bf378f7e9a801eca623af2abde2b1 Author: teor (Tim Wilson-Brown) teor2345@gmail.com Date: Wed Nov 18 23:30:25 2015 +1100
Update comments in get_interface_addresses_ioctl
Comment-only change noting platforms that can return IPv6 addresses from SIOCGIFCONF (or SIOCGLIFCONF). --- src/common/address.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/common/address.c b/src/common/address.c index cfa8fd1..aef229b 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));