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

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

#if defined(NLM_F_REQUEST) || (defined(HAVE_DECL_NLM_F_REQUEST) && HAVE_DECL_NLM_F_REQUEST)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLM_F_REQUEST) == (0x1), "NLM_F_REQUEST != 0x1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLM_F_REQUEST 0x1
#endif
#if defined(NLM_F_MULTI) || (defined(HAVE_DECL_NLM_F_MULTI) && HAVE_DECL_NLM_F_MULTI)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLM_F_MULTI) == (0x2), "NLM_F_MULTI != 0x2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLM_F_MULTI 0x2
#endif
#if defined(NLM_F_ACK) || (defined(HAVE_DECL_NLM_F_ACK) && HAVE_DECL_NLM_F_ACK)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLM_F_ACK) == (0x4), "NLM_F_ACK != 0x4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLM_F_ACK 0x4
#endif
#if defined(NLM_F_ECHO) || (defined(HAVE_DECL_NLM_F_ECHO) && HAVE_DECL_NLM_F_ECHO)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLM_F_ECHO) == (0x8), "NLM_F_ECHO != 0x8");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLM_F_ECHO 0x8
#endif
#if defined(NLM_F_DUMP_INTR) || (defined(HAVE_DECL_NLM_F_DUMP_INTR) && HAVE_DECL_NLM_F_DUMP_INTR)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLM_F_DUMP_INTR) == (0x10), "NLM_F_DUMP_INTR != 0x10");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLM_F_DUMP_INTR 0x10
#endif
#if defined(NLM_F_DUMP_FILTERED) || (defined(HAVE_DECL_NLM_F_DUMP_FILTERED) && HAVE_DECL_NLM_F_DUMP_FILTERED)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLM_F_DUMP_FILTERED) == (0x20), "NLM_F_DUMP_FILTERED != 0x20");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLM_F_DUMP_FILTERED 0x20
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat netlink_flags in mpers mode

# else

static const struct xlat_data netlink_flags_xdata[] = {
 XLAT(NLM_F_REQUEST),
 #define XLAT_VAL_0 ((unsigned) (NLM_F_REQUEST))
 #define XLAT_STR_0 STRINGIFY(NLM_F_REQUEST)
 XLAT(NLM_F_MULTI),
 #define XLAT_VAL_1 ((unsigned) (NLM_F_MULTI))
 #define XLAT_STR_1 STRINGIFY(NLM_F_MULTI)
 XLAT(NLM_F_ACK),
 #define XLAT_VAL_2 ((unsigned) (NLM_F_ACK))
 #define XLAT_STR_2 STRINGIFY(NLM_F_ACK)
 XLAT(NLM_F_ECHO),
 #define XLAT_VAL_3 ((unsigned) (NLM_F_ECHO))
 #define XLAT_STR_3 STRINGIFY(NLM_F_ECHO)
 XLAT(NLM_F_DUMP_INTR),
 #define XLAT_VAL_4 ((unsigned) (NLM_F_DUMP_INTR))
 #define XLAT_STR_4 STRINGIFY(NLM_F_DUMP_INTR)
 XLAT(NLM_F_DUMP_FILTERED),
 #define XLAT_VAL_5 ((unsigned) (NLM_F_DUMP_FILTERED))
 #define XLAT_STR_5 STRINGIFY(NLM_F_DUMP_FILTERED)
};
static
const struct xlat netlink_flags[1] = { {
 .data = netlink_flags_xdata,
 .size = ARRAY_SIZE(netlink_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 */
