--- embedaddon/iftop/addr_hash.h 2012/02/21 16:57:34 1.1.1.1 +++ embedaddon/iftop/addr_hash.h 2016/10/18 14:04:50 1.1.1.2 @@ -12,11 +12,18 @@ #include "hash.h" typedef struct { + int af; unsigned short int protocol; unsigned short int src_port; - struct in_addr src; + union { + struct in_addr src; + struct in6_addr src6; + }; unsigned short int dst_port; - struct in_addr dst; + union { + struct in_addr dst; + struct in6_addr dst6; + }; } addr_pair; typedef addr_pair key_type; /* index into hash table */