diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2015-02-12 13:59:31 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2015-02-12 14:54:39 +0100 |
commit | 87a95b02363508dd6d9ce4094801c55d3b364ebf (patch) | |
tree | a5d52ac0f3e71a3189dbb5c4b2ed68b2426f9f84 /src/common/address.h | |
parent | 9667b2b88a1f8e9af08704c8bc95b8399a6e4145 (diff) | |
download | tor-87a95b02363508dd6d9ce4094801c55d3b364ebf.tar.gz tor-87a95b02363508dd6d9ce4094801c55d3b364ebf.zip |
Actually get all interface addresses
If we guessed a buffer size too small, we never increased the buffer and
tried again
Also simplify the interface of ifreq_to_smartlist a little
Diffstat (limited to 'src/common/address.h')
-rw-r--r-- | src/common/address.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/address.h b/src/common/address.h index 8c6ee5abbb..df835e917a 100644 --- a/src/common/address.h +++ b/src/common/address.h @@ -287,7 +287,7 @@ STATIC smartlist_t *get_interface_addresses_win32(int severity); #endif #ifdef HAVE_IFCONF_TO_SMARTLIST -STATIC smartlist_t *ifreq_to_smartlist(const struct ifreq *ifr, +STATIC smartlist_t *ifreq_to_smartlist(char *ifr, size_t buflen); STATIC smartlist_t *get_interface_addresses_ioctl(int severity); #endif |