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

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

#if defined(RTNH_F_DEAD) || (defined(HAVE_DECL_RTNH_F_DEAD) && HAVE_DECL_RTNH_F_DEAD)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RTNH_F_DEAD) == (1), "RTNH_F_DEAD != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RTNH_F_DEAD 1
#endif
#if defined(RTNH_F_PERVASIVE) || (defined(HAVE_DECL_RTNH_F_PERVASIVE) && HAVE_DECL_RTNH_F_PERVASIVE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RTNH_F_PERVASIVE) == (2), "RTNH_F_PERVASIVE != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RTNH_F_PERVASIVE 2
#endif
#if defined(RTNH_F_ONLINK) || (defined(HAVE_DECL_RTNH_F_ONLINK) && HAVE_DECL_RTNH_F_ONLINK)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RTNH_F_ONLINK) == (4), "RTNH_F_ONLINK != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RTNH_F_ONLINK 4
#endif
#if defined(RTNH_F_OFFLOAD) || (defined(HAVE_DECL_RTNH_F_OFFLOAD) && HAVE_DECL_RTNH_F_OFFLOAD)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RTNH_F_OFFLOAD) == (8), "RTNH_F_OFFLOAD != 8");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RTNH_F_OFFLOAD 8
#endif
#if defined(RTNH_F_LINKDOWN) || (defined(HAVE_DECL_RTNH_F_LINKDOWN) && HAVE_DECL_RTNH_F_LINKDOWN)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RTNH_F_LINKDOWN) == (16), "RTNH_F_LINKDOWN != 16");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RTNH_F_LINKDOWN 16
#endif
#if defined(RTNH_F_UNRESOLVED) || (defined(HAVE_DECL_RTNH_F_UNRESOLVED) && HAVE_DECL_RTNH_F_UNRESOLVED)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RTNH_F_UNRESOLVED) == (32), "RTNH_F_UNRESOLVED != 32");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define RTNH_F_UNRESOLVED 32
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat route_nexthop_flags in mpers mode

# else

static const struct xlat_data route_nexthop_flags_xdata[] = {
 XLAT(RTNH_F_DEAD),
 #define XLAT_VAL_0 ((unsigned) (RTNH_F_DEAD))
 #define XLAT_STR_0 STRINGIFY(RTNH_F_DEAD)
 XLAT(RTNH_F_PERVASIVE),
 #define XLAT_VAL_1 ((unsigned) (RTNH_F_PERVASIVE))
 #define XLAT_STR_1 STRINGIFY(RTNH_F_PERVASIVE)
 XLAT(RTNH_F_ONLINK),
 #define XLAT_VAL_2 ((unsigned) (RTNH_F_ONLINK))
 #define XLAT_STR_2 STRINGIFY(RTNH_F_ONLINK)
 XLAT(RTNH_F_OFFLOAD),
 #define XLAT_VAL_3 ((unsigned) (RTNH_F_OFFLOAD))
 #define XLAT_STR_3 STRINGIFY(RTNH_F_OFFLOAD)
 XLAT(RTNH_F_LINKDOWN),
 #define XLAT_VAL_4 ((unsigned) (RTNH_F_LINKDOWN))
 #define XLAT_STR_4 STRINGIFY(RTNH_F_LINKDOWN)
 XLAT(RTNH_F_UNRESOLVED),
 #define XLAT_VAL_5 ((unsigned) (RTNH_F_UNRESOLVED))
 #define XLAT_STR_5 STRINGIFY(RTNH_F_UNRESOLVED)
};
static
const struct xlat route_nexthop_flags[1] = { {
 .data = route_nexthop_flags_xdata,
 .size = ARRAY_SIZE(route_nexthop_flags_xdata),
 .type = XT_NORMAL,
 .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
#  ifdef XLAT_VAL_4
  | XLAT_VAL_4
#  endif
#  ifdef XLAT_VAL_5
  | XLAT_VAL_5
#  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
#  ifdef XLAT_STR_4
  + sizeof(XLAT_STR_4)
#  endif
#  ifdef XLAT_STR_5
  + sizeof(XLAT_STR_5)
#  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
#  undef XLAT_STR_4
#  undef XLAT_VAL_4
#  undef XLAT_STR_5
#  undef XLAT_VAL_5
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
