From cf1b9bc7e7e9d46153b91021ca1f102dc0c79ac5 Mon Sep 17 00:00:00 2001 From: Aaron Lipinski Date: Thu, 8 Apr 2021 07:46:26 +1200 Subject: [PATCH] export DEFAULT_AF --- ui/mtr.c | 7 ------- ui/mtr.h | 2 ++ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/ui/mtr.c b/ui/mtr.c index 8edca64..23411cb 100644 --- a/ui/mtr.c +++ b/ui/mtr.c @@ -63,13 +63,6 @@ #include "portability/getopt.h" #endif -#ifdef ENABLE_IPV6 -#define DEFAULT_AF AF_UNSPEC -#else -#define DEFAULT_AF AF_INET -#endif - - char *myname; const struct fields data_fields[MAXFLD] = { diff --git a/ui/mtr.h b/ui/mtr.h index 01536f5..92dd8a1 100644 --- a/ui/mtr.h +++ b/ui/mtr.h @@ -32,8 +32,10 @@ /* Typedefs */ #ifdef ENABLE_IPV6 +#define DEFAULT_AF AF_UNSPEC typedef struct in6_addr ip_t; #else +#define DEFAULT_AF AF_INET typedef struct in_addr ip_t; #endif