Hello,
Today I compiled iftop-1.0pre1 if a FreeBSD system. I had to make the following changes:
- config/int_ghba_r.c uses AF_INET, which is defined in <sys/socket.h>, without #include'ing it ;
- add « #define define s6_addr32 __u6_addr.__u6_addr32 » in config.h (this is used in addr_hash and ns_hash.c). FreeBSD has a note in <netinet6/in6.h> saying it is not standard ;
- in resolver.c, only the getnameinfo() method tries to resolve ip6 addresses. I ported the AF guessing to the gethostbyaddr{,_r} methods, as I am not familiar with the libresolv or the ares librairies. This enables reverse ip6 resolution.
The patch is attached. Could you please review it, and apply it if it DTRT ?