Update comments in get_interface_addresses_ioctl

Comment-only change noting platforms that can return IPv6
addresses from SIOCGIFCONF (or SIOCGLIFCONF).
This commit is contained in:
teor (Tim Wilson-Brown) 2015-11-18 23:30:25 +11:00
parent 86eba14ac5
commit 878b5738c2

View File

@ -1469,7 +1469,8 @@ get_interface_addresses_ioctl(int severity)
int fd; int fd;
smartlist_t *result = NULL; 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); fd = socket(AF_INET, SOCK_DGRAM, 0);
if (fd < 0) { if (fd < 0) {
tor_log(severity, LD_NET, "socket failed: %s", strerror(errno)); tor_log(severity, LD_NET, "socket failed: %s", strerror(errno));