typedef struct tor_addr { sa_family_t tin_family; struct in6_addr ip6; #define ip4 ip6.in6_u.u6_addr32[3] } tor_addr;