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

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

#if defined(NLM_F_CAPPED) || (defined(HAVE_DECL_NLM_F_CAPPED) && HAVE_DECL_NLM_F_CAPPED)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLM_F_CAPPED) == (0x100), "NLM_F_CAPPED != 0x100");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLM_F_CAPPED 0x100
#endif
#if defined(NLM_F_ACK_TLVS) || (defined(HAVE_DECL_NLM_F_ACK_TLVS) && HAVE_DECL_NLM_F_ACK_TLVS)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((NLM_F_ACK_TLVS) == (0x200), "NLM_F_ACK_TLVS != 0x200");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define NLM_F_ACK_TLVS 0x200
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat netlink_ack_flags in mpers mode

# else

static const struct xlat_data netlink_ack_flags_xdata[] = {
 XLAT(NLM_F_CAPPED),
 #define XLAT_VAL_0 ((unsigned) (NLM_F_CAPPED))
 #define XLAT_STR_0 STRINGIFY(NLM_F_CAPPED)
 XLAT(NLM_F_ACK_TLVS),
 #define XLAT_VAL_1 ((unsigned) (NLM_F_ACK_TLVS))
 #define XLAT_STR_1 STRINGIFY(NLM_F_ACK_TLVS)
};
static
const struct xlat netlink_ack_flags[1] = { {
 .data = netlink_ack_flags_xdata,
 .size = ARRAY_SIZE(netlink_ack_flags_xdata),
 .type = XT_NORMAL,
 .flags_mask = 0
#  ifdef XLAT_VAL_0
  | XLAT_VAL_0
#  endif
#  ifdef XLAT_VAL_1
  | XLAT_VAL_1
#  endif
  ,
 .flags_strsz = 0
#  ifdef XLAT_STR_0
  + sizeof(XLAT_STR_0)
#  endif
#  ifdef XLAT_STR_1
  + sizeof(XLAT_STR_1)
#  endif
  ,
} };

#  undef XLAT_STR_0
#  undef XLAT_VAL_0
#  undef XLAT_STR_1
#  undef XLAT_VAL_1
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
