diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-05-27 09:47:03 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-05-27 09:47:03 +0200 |
commit | 7a7de83892dd657a0d5627ce62aeb2e7d3c78005 (patch) | |
tree | 96c9d7c3ce0e3fdd1d5b53234338cd807de68d48 | |
parent | cb781a609f22e6b9e049d68026b0dbe07db0eae5 (diff) |
findalldevstest: Print also Address Family numerically
-rw-r--r-- | testprogs/findalldevstest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testprogs/findalldevstest.c b/testprogs/findalldevstest.c index bb9e018b..1aacfd93 100644 --- a/testprogs/findalldevstest.c +++ b/testprogs/findalldevstest.c @@ -258,7 +258,7 @@ static int ifprint(pcap_if_t *d) if (a->addr != NULL) switch(a->addr->sa_family) { case AF_INET: - printf("\tAddress Family: AF_INET\n"); + printf("\tAddress Family: AF_INET (%d)\n", a->addr->sa_family); if (a->addr) printf("\t\tAddress: %s\n", inet_ntop(AF_INET, @@ -282,7 +282,7 @@ static int ifprint(pcap_if_t *d) break; #ifdef INET6 case AF_INET6: - printf("\tAddress Family: AF_INET6\n"); + printf("\tAddress Family: AF_INET6 (%d)\n", a->addr->sa_family); if (a->addr) printf("\t\tAddress: %s\n", inet_ntop(AF_INET6, |