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

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

#if defined(IFA_UNSPEC) || (defined(HAVE_DECL_IFA_UNSPEC) && HAVE_DECL_IFA_UNSPEC)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_UNSPEC) == (0), "IFA_UNSPEC != 0");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_UNSPEC 0
#endif
#if defined(IFA_ADDRESS) || (defined(HAVE_DECL_IFA_ADDRESS) && HAVE_DECL_IFA_ADDRESS)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_ADDRESS) == (1), "IFA_ADDRESS != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_ADDRESS 1
#endif
#if defined(IFA_LOCAL) || (defined(HAVE_DECL_IFA_LOCAL) && HAVE_DECL_IFA_LOCAL)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_LOCAL) == (2), "IFA_LOCAL != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_LOCAL 2
#endif
#if defined(IFA_LABEL) || (defined(HAVE_DECL_IFA_LABEL) && HAVE_DECL_IFA_LABEL)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_LABEL) == (3), "IFA_LABEL != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_LABEL 3
#endif
#if defined(IFA_BROADCAST) || (defined(HAVE_DECL_IFA_BROADCAST) && HAVE_DECL_IFA_BROADCAST)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_BROADCAST) == (4), "IFA_BROADCAST != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_BROADCAST 4
#endif
#if defined(IFA_ANYCAST) || (defined(HAVE_DECL_IFA_ANYCAST) && HAVE_DECL_IFA_ANYCAST)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_ANYCAST) == (5), "IFA_ANYCAST != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_ANYCAST 5
#endif
#if defined(IFA_CACHEINFO) || (defined(HAVE_DECL_IFA_CACHEINFO) && HAVE_DECL_IFA_CACHEINFO)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_CACHEINFO) == (6), "IFA_CACHEINFO != 6");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_CACHEINFO 6
#endif
#if defined(IFA_MULTICAST) || (defined(HAVE_DECL_IFA_MULTICAST) && HAVE_DECL_IFA_MULTICAST)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_MULTICAST) == (7), "IFA_MULTICAST != 7");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_MULTICAST 7
#endif
#if defined(IFA_FLAGS) || (defined(HAVE_DECL_IFA_FLAGS) && HAVE_DECL_IFA_FLAGS)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_FLAGS) == (8), "IFA_FLAGS != 8");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_FLAGS 8
#endif
#if defined(IFA_RT_PRIORITY) || (defined(HAVE_DECL_IFA_RT_PRIORITY) && HAVE_DECL_IFA_RT_PRIORITY)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_RT_PRIORITY) == (9), "IFA_RT_PRIORITY != 9");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_RT_PRIORITY 9
#endif
#if defined(IFA_TARGET_NETNSID) || (defined(HAVE_DECL_IFA_TARGET_NETNSID) && HAVE_DECL_IFA_TARGET_NETNSID)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((IFA_TARGET_NETNSID) == (10), "IFA_TARGET_NETNSID != 10");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define IFA_TARGET_NETNSID 10
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat rtnl_addr_attrs in mpers mode

# else

static const struct xlat_data rtnl_addr_attrs_xdata[] = {
 [IFA_UNSPEC] = XLAT(IFA_UNSPEC),
 #define XLAT_VAL_0 ((unsigned) (IFA_UNSPEC))
 #define XLAT_STR_0 STRINGIFY(IFA_UNSPEC)
 [IFA_ADDRESS] = XLAT(IFA_ADDRESS),
 #define XLAT_VAL_1 ((unsigned) (IFA_ADDRESS))
 #define XLAT_STR_1 STRINGIFY(IFA_ADDRESS)
 [IFA_LOCAL] = XLAT(IFA_LOCAL),
 #define XLAT_VAL_2 ((unsigned) (IFA_LOCAL))
 #define XLAT_STR_2 STRINGIFY(IFA_LOCAL)
 [IFA_LABEL] = XLAT(IFA_LABEL),
 #define XLAT_VAL_3 ((unsigned) (IFA_LABEL))
 #define XLAT_STR_3 STRINGIFY(IFA_LABEL)
 [IFA_BROADCAST] = XLAT(IFA_BROADCAST),
 #define XLAT_VAL_4 ((unsigned) (IFA_BROADCAST))
 #define XLAT_STR_4 STRINGIFY(IFA_BROADCAST)
 [IFA_ANYCAST] = XLAT(IFA_ANYCAST),
 #define XLAT_VAL_5 ((unsigned) (IFA_ANYCAST))
 #define XLAT_STR_5 STRINGIFY(IFA_ANYCAST)
 [IFA_CACHEINFO] = XLAT(IFA_CACHEINFO),
 #define XLAT_VAL_6 ((unsigned) (IFA_CACHEINFO))
 #define XLAT_STR_6 STRINGIFY(IFA_CACHEINFO)
 [IFA_MULTICAST] = XLAT(IFA_MULTICAST),
 #define XLAT_VAL_7 ((unsigned) (IFA_MULTICAST))
 #define XLAT_STR_7 STRINGIFY(IFA_MULTICAST)
 [IFA_FLAGS] = XLAT(IFA_FLAGS),
 #define XLAT_VAL_8 ((unsigned) (IFA_FLAGS))
 #define XLAT_STR_8 STRINGIFY(IFA_FLAGS)
 [IFA_RT_PRIORITY] = XLAT(IFA_RT_PRIORITY),
 #define XLAT_VAL_9 ((unsigned) (IFA_RT_PRIORITY))
 #define XLAT_STR_9 STRINGIFY(IFA_RT_PRIORITY)
 [IFA_TARGET_NETNSID] = XLAT(IFA_TARGET_NETNSID),
 #define XLAT_VAL_10 ((unsigned) (IFA_TARGET_NETNSID))
 #define XLAT_STR_10 STRINGIFY(IFA_TARGET_NETNSID)
};
static
const struct xlat rtnl_addr_attrs[1] = { {
 .data = rtnl_addr_attrs_xdata,
 .size = ARRAY_SIZE(rtnl_addr_attrs_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
#  ifdef XLAT_VAL_4
  | XLAT_VAL_4
#  endif
#  ifdef XLAT_VAL_5
  | XLAT_VAL_5
#  endif
#  ifdef XLAT_VAL_6
  | XLAT_VAL_6
#  endif
#  ifdef XLAT_VAL_7
  | XLAT_VAL_7
#  endif
#  ifdef XLAT_VAL_8
  | XLAT_VAL_8
#  endif
#  ifdef XLAT_VAL_9
  | XLAT_VAL_9
#  endif
#  ifdef XLAT_VAL_10
  | XLAT_VAL_10
#  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
#  ifdef XLAT_STR_6
  + sizeof(XLAT_STR_6)
#  endif
#  ifdef XLAT_STR_7
  + sizeof(XLAT_STR_7)
#  endif
#  ifdef XLAT_STR_8
  + sizeof(XLAT_STR_8)
#  endif
#  ifdef XLAT_STR_9
  + sizeof(XLAT_STR_9)
#  endif
#  ifdef XLAT_STR_10
  + sizeof(XLAT_STR_10)
#  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
#  undef XLAT_STR_6
#  undef XLAT_VAL_6
#  undef XLAT_STR_7
#  undef XLAT_VAL_7
#  undef XLAT_STR_8
#  undef XLAT_VAL_8
#  undef XLAT_STR_9
#  undef XLAT_VAL_9
#  undef XLAT_STR_10
#  undef XLAT_VAL_10
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
