export DEFAULT_AF

This commit is contained in:
Aaron Lipinski 2021-04-08 07:46:26 +12:00 committed by Aaron Lipinski
parent 6a8471e48d
commit cf1b9bc7e7
2 changed files with 2 additions and 7 deletions

View File

@ -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] = {

View File

@ -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