use tor_inet_aton instead of inet_aton (for portability)