/* Generated by ./xlat/gen.sh from ./xlat/in6_addr_gen_mode.in; do not edit. */

#include "gcc_compat.h"
#include "static_assert.h"

#if defined(IN6_ADDR_GEN_MODE_EUI64) || (defined(HAVE_DECL_IN6_ADDR_GEN_MODE_EUI64) && HAVE_DECL_IN6_ADDR_GEN_MODE_EUI64)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IN6_ADDR_GEN_MODE_EUI64) == (0), "IN6_ADDR_GEN_MODE_EUI64 != 0");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IN6_ADDR_GEN_MODE_EUI64 0
#endif
#if defined(IN6_ADDR_GEN_MODE_NONE) || (defined(HAVE_DECL_IN6_ADDR_GEN_MODE_NONE) && HAVE_DECL_IN6_ADDR_GEN_MODE_NONE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IN6_ADDR_GEN_MODE_NONE) == (1), "IN6_ADDR_GEN_MODE_NONE != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IN6_ADDR_GEN_MODE_NONE 1
#endif
#if defined(IN6_ADDR_GEN_MODE_STABLE_PRIVACY) || (defined(HAVE_DECL_IN6_ADDR_GEN_MODE_STABLE_PRIVACY) && HAVE_DECL_IN6_ADDR_GEN_MODE_STABLE_PRIVACY)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IN6_ADDR_GEN_MODE_STABLE_PRIVACY) == (2), "IN6_ADDR_GEN_MODE_STABLE_PRIVACY != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IN6_ADDR_GEN_MODE_STABLE_PRIVACY 2
#endif
#if defined(IN6_ADDR_GEN_MODE_RANDOM) || (defined(HAVE_DECL_IN6_ADDR_GEN_MODE_RANDOM) && HAVE_DECL_IN6_ADDR_GEN_MODE_RANDOM)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IN6_ADDR_GEN_MODE_RANDOM) == (3), "IN6_ADDR_GEN_MODE_RANDOM != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IN6_ADDR_GEN_MODE_RANDOM 3
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat in6_addr_gen_mode in mpers mode

# else

static const struct xlat_data in6_addr_gen_mode_xdata[] = {
 [IN6_ADDR_GEN_MODE_EUI64] = XLAT(IN6_ADDR_GEN_MODE_EUI64),
 #define XLAT_VAL_0 ((unsigned) (IN6_ADDR_GEN_MODE_EUI64))
 #define XLAT_STR_0 STRINGIFY(IN6_ADDR_GEN_MODE_EUI64)
 [IN6_ADDR_GEN_MODE_NONE] = XLAT(IN6_ADDR_GEN_MODE_NONE),
 #define XLAT_VAL_1 ((unsigned) (IN6_ADDR_GEN_MODE_NONE))
 #define XLAT_STR_1 STRINGIFY(IN6_ADDR_GEN_MODE_NONE)
 [IN6_ADDR_GEN_MODE_STABLE_PRIVACY] = XLAT(IN6_ADDR_GEN_MODE_STABLE_PRIVACY),
 #define XLAT_VAL_2 ((unsigned) (IN6_ADDR_GEN_MODE_STABLE_PRIVACY))
 #define XLAT_STR_2 STRINGIFY(IN6_ADDR_GEN_MODE_STABLE_PRIVACY)
 [IN6_ADDR_GEN_MODE_RANDOM] = XLAT(IN6_ADDR_GEN_MODE_RANDOM),
 #define XLAT_VAL_3 ((unsigned) (IN6_ADDR_GEN_MODE_RANDOM))
 #define XLAT_STR_3 STRINGIFY(IN6_ADDR_GEN_MODE_RANDOM)
};
static
const struct xlat in6_addr_gen_mode[1] = { {
 .data = in6_addr_gen_mode_xdata,
 .size = ARRAY_SIZE(in6_addr_gen_mode_xdata),
 .type = XT_INDEXED,
 .flags_mask = 0
#  ifdef XLAT_VAL_0
  | XLAT_VAL_0
#  endif
#  ifdef XLAT_VAL_1
  | XLAT_VAL_1
#  endif
#  ifdef XLAT_VAL_2
  | XLAT_VAL_2
#  endif
#  ifdef XLAT_VAL_3
  | XLAT_VAL_3
#  endif
  ,
 .flags_strsz = 0
#  ifdef XLAT_STR_0
  + sizeof(XLAT_STR_0)
#  endif
#  ifdef XLAT_STR_1
  + sizeof(XLAT_STR_1)
#  endif
#  ifdef XLAT_STR_2
  + sizeof(XLAT_STR_2)
#  endif
#  ifdef XLAT_STR_3
  + sizeof(XLAT_STR_3)
#  endif
  ,
} };

#  undef XLAT_STR_0
#  undef XLAT_VAL_0
#  undef XLAT_STR_1
#  undef XLAT_VAL_1
#  undef XLAT_STR_2
#  undef XLAT_VAL_2
#  undef XLAT_STR_3
#  undef XLAT_VAL_3
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
