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

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

#if defined(PACKET_ADD_MEMBERSHIP) || (defined(HAVE_DECL_PACKET_ADD_MEMBERSHIP) && HAVE_DECL_PACKET_ADD_MEMBERSHIP)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_ADD_MEMBERSHIP) == (1), "PACKET_ADD_MEMBERSHIP != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_ADD_MEMBERSHIP 1
#endif
#if defined(PACKET_DROP_MEMBERSHIP) || (defined(HAVE_DECL_PACKET_DROP_MEMBERSHIP) && HAVE_DECL_PACKET_DROP_MEMBERSHIP)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_DROP_MEMBERSHIP) == (2), "PACKET_DROP_MEMBERSHIP != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_DROP_MEMBERSHIP 2
#endif
#if defined(PACKET_RECV_OUTPUT) || (defined(HAVE_DECL_PACKET_RECV_OUTPUT) && HAVE_DECL_PACKET_RECV_OUTPUT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_RECV_OUTPUT) == (3), "PACKET_RECV_OUTPUT != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_RECV_OUTPUT 3
#endif
#if defined(PACKET_RX_RING) || (defined(HAVE_DECL_PACKET_RX_RING) && HAVE_DECL_PACKET_RX_RING)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_RX_RING) == (5), "PACKET_RX_RING != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_RX_RING 5
#endif
#if defined(PACKET_STATISTICS) || (defined(HAVE_DECL_PACKET_STATISTICS) && HAVE_DECL_PACKET_STATISTICS)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_STATISTICS) == (6), "PACKET_STATISTICS != 6");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_STATISTICS 6
#endif
#if defined(PACKET_COPY_THRESH) || (defined(HAVE_DECL_PACKET_COPY_THRESH) && HAVE_DECL_PACKET_COPY_THRESH)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_COPY_THRESH) == (7), "PACKET_COPY_THRESH != 7");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_COPY_THRESH 7
#endif
#if defined(PACKET_AUXDATA) || (defined(HAVE_DECL_PACKET_AUXDATA) && HAVE_DECL_PACKET_AUXDATA)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_AUXDATA) == (8), "PACKET_AUXDATA != 8");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_AUXDATA 8
#endif
#if defined(PACKET_ORIGDEV) || (defined(HAVE_DECL_PACKET_ORIGDEV) && HAVE_DECL_PACKET_ORIGDEV)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_ORIGDEV) == (9), "PACKET_ORIGDEV != 9");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_ORIGDEV 9
#endif
#if defined(PACKET_VERSION) || (defined(HAVE_DECL_PACKET_VERSION) && HAVE_DECL_PACKET_VERSION)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_VERSION) == (10), "PACKET_VERSION != 10");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_VERSION 10
#endif
#if defined(PACKET_HDRLEN) || (defined(HAVE_DECL_PACKET_HDRLEN) && HAVE_DECL_PACKET_HDRLEN)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_HDRLEN) == (11), "PACKET_HDRLEN != 11");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_HDRLEN 11
#endif
#if defined(PACKET_RESERVE) || (defined(HAVE_DECL_PACKET_RESERVE) && HAVE_DECL_PACKET_RESERVE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_RESERVE) == (12), "PACKET_RESERVE != 12");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_RESERVE 12
#endif
#if defined(PACKET_TX_RING) || (defined(HAVE_DECL_PACKET_TX_RING) && HAVE_DECL_PACKET_TX_RING)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_TX_RING) == (13), "PACKET_TX_RING != 13");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_TX_RING 13
#endif
#if defined(PACKET_LOSS) || (defined(HAVE_DECL_PACKET_LOSS) && HAVE_DECL_PACKET_LOSS)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_LOSS) == (14), "PACKET_LOSS != 14");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_LOSS 14
#endif
#if defined(PACKET_VNET_HDR) || (defined(HAVE_DECL_PACKET_VNET_HDR) && HAVE_DECL_PACKET_VNET_HDR)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_VNET_HDR) == (15), "PACKET_VNET_HDR != 15");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_VNET_HDR 15
#endif
#if defined(PACKET_TX_TIMESTAMP) || (defined(HAVE_DECL_PACKET_TX_TIMESTAMP) && HAVE_DECL_PACKET_TX_TIMESTAMP)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_TX_TIMESTAMP) == (16), "PACKET_TX_TIMESTAMP != 16");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_TX_TIMESTAMP 16
#endif
#if defined(PACKET_TIMESTAMP) || (defined(HAVE_DECL_PACKET_TIMESTAMP) && HAVE_DECL_PACKET_TIMESTAMP)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_TIMESTAMP) == (17), "PACKET_TIMESTAMP != 17");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_TIMESTAMP 17
#endif
#if defined(PACKET_FANOUT) || (defined(HAVE_DECL_PACKET_FANOUT) && HAVE_DECL_PACKET_FANOUT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_FANOUT) == (18), "PACKET_FANOUT != 18");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_FANOUT 18
#endif
#if defined(PACKET_TX_HAS_OFF) || (defined(HAVE_DECL_PACKET_TX_HAS_OFF) && HAVE_DECL_PACKET_TX_HAS_OFF)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_TX_HAS_OFF) == (19), "PACKET_TX_HAS_OFF != 19");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_TX_HAS_OFF 19
#endif
#if defined(PACKET_QDISC_BYPASS) || (defined(HAVE_DECL_PACKET_QDISC_BYPASS) && HAVE_DECL_PACKET_QDISC_BYPASS)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_QDISC_BYPASS) == (20), "PACKET_QDISC_BYPASS != 20");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_QDISC_BYPASS 20
#endif
#if defined(PACKET_ROLLOVER_STATS) || (defined(HAVE_DECL_PACKET_ROLLOVER_STATS) && HAVE_DECL_PACKET_ROLLOVER_STATS)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_ROLLOVER_STATS) == (21), "PACKET_ROLLOVER_STATS != 21");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_ROLLOVER_STATS 21
#endif
#if defined(PACKET_FANOUT_DATA) || (defined(HAVE_DECL_PACKET_FANOUT_DATA) && HAVE_DECL_PACKET_FANOUT_DATA)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_FANOUT_DATA) == (22), "PACKET_FANOUT_DATA != 22");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_FANOUT_DATA 22
#endif
#if defined(PACKET_IGNORE_OUTGOING) || (defined(HAVE_DECL_PACKET_IGNORE_OUTGOING) && HAVE_DECL_PACKET_IGNORE_OUTGOING)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_IGNORE_OUTGOING) == (23), "PACKET_IGNORE_OUTGOING != 23");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_IGNORE_OUTGOING 23
#endif
#if defined(PACKET_VNET_HDR_SZ) || (defined(HAVE_DECL_PACKET_VNET_HDR_SZ) && HAVE_DECL_PACKET_VNET_HDR_SZ)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PACKET_VNET_HDR_SZ) == (24), "PACKET_VNET_HDR_SZ != 24");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PACKET_VNET_HDR_SZ 24
#endif
#undef XLAT_PREV_VAL

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat sock_packet_options in mpers mode

# else

DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
static const struct xlat_data sock_packet_options_xdata[] = {
 [PACKET_ADD_MEMBERSHIP] = XLAT(PACKET_ADD_MEMBERSHIP),
 #define XLAT_VAL_0 ((unsigned) (PACKET_ADD_MEMBERSHIP))
 #define XLAT_STR_0 STRINGIFY(PACKET_ADD_MEMBERSHIP)
 [PACKET_DROP_MEMBERSHIP] = XLAT(PACKET_DROP_MEMBERSHIP),
 #define XLAT_VAL_1 ((unsigned) (PACKET_DROP_MEMBERSHIP))
 #define XLAT_STR_1 STRINGIFY(PACKET_DROP_MEMBERSHIP)
 [PACKET_RECV_OUTPUT] = XLAT(PACKET_RECV_OUTPUT),
 #define XLAT_VAL_2 ((unsigned) (PACKET_RECV_OUTPUT))
 #define XLAT_STR_2 STRINGIFY(PACKET_RECV_OUTPUT)
 [PACKET_RX_RING] = XLAT(PACKET_RX_RING),
 #define XLAT_VAL_3 ((unsigned) (PACKET_RX_RING))
 #define XLAT_STR_3 STRINGIFY(PACKET_RX_RING)
 [PACKET_STATISTICS] = XLAT(PACKET_STATISTICS),
 #define XLAT_VAL_4 ((unsigned) (PACKET_STATISTICS))
 #define XLAT_STR_4 STRINGIFY(PACKET_STATISTICS)
 [PACKET_COPY_THRESH] = XLAT(PACKET_COPY_THRESH),
 #define XLAT_VAL_5 ((unsigned) (PACKET_COPY_THRESH))
 #define XLAT_STR_5 STRINGIFY(PACKET_COPY_THRESH)
 [PACKET_AUXDATA] = XLAT(PACKET_AUXDATA),
 #define XLAT_VAL_6 ((unsigned) (PACKET_AUXDATA))
 #define XLAT_STR_6 STRINGIFY(PACKET_AUXDATA)
 [PACKET_ORIGDEV] = XLAT(PACKET_ORIGDEV),
 #define XLAT_VAL_7 ((unsigned) (PACKET_ORIGDEV))
 #define XLAT_STR_7 STRINGIFY(PACKET_ORIGDEV)
 [PACKET_VERSION] = XLAT(PACKET_VERSION),
 #define XLAT_VAL_8 ((unsigned) (PACKET_VERSION))
 #define XLAT_STR_8 STRINGIFY(PACKET_VERSION)
 [PACKET_HDRLEN] = XLAT(PACKET_HDRLEN),
 #define XLAT_VAL_9 ((unsigned) (PACKET_HDRLEN))
 #define XLAT_STR_9 STRINGIFY(PACKET_HDRLEN)
 [PACKET_RESERVE] = XLAT(PACKET_RESERVE),
 #define XLAT_VAL_10 ((unsigned) (PACKET_RESERVE))
 #define XLAT_STR_10 STRINGIFY(PACKET_RESERVE)
 [PACKET_TX_RING] = XLAT(PACKET_TX_RING),
 #define XLAT_VAL_11 ((unsigned) (PACKET_TX_RING))
 #define XLAT_STR_11 STRINGIFY(PACKET_TX_RING)
 [PACKET_LOSS] = XLAT(PACKET_LOSS),
 #define XLAT_VAL_12 ((unsigned) (PACKET_LOSS))
 #define XLAT_STR_12 STRINGIFY(PACKET_LOSS)
 [PACKET_VNET_HDR] = XLAT(PACKET_VNET_HDR),
 #define XLAT_VAL_13 ((unsigned) (PACKET_VNET_HDR))
 #define XLAT_STR_13 STRINGIFY(PACKET_VNET_HDR)
 [PACKET_TX_TIMESTAMP] = XLAT(PACKET_TX_TIMESTAMP),
 #define XLAT_VAL_14 ((unsigned) (PACKET_TX_TIMESTAMP))
 #define XLAT_STR_14 STRINGIFY(PACKET_TX_TIMESTAMP)
 [PACKET_TIMESTAMP] = XLAT(PACKET_TIMESTAMP),
 #define XLAT_VAL_15 ((unsigned) (PACKET_TIMESTAMP))
 #define XLAT_STR_15 STRINGIFY(PACKET_TIMESTAMP)
 [PACKET_FANOUT] = XLAT(PACKET_FANOUT),
 #define XLAT_VAL_16 ((unsigned) (PACKET_FANOUT))
 #define XLAT_STR_16 STRINGIFY(PACKET_FANOUT)
 [PACKET_TX_HAS_OFF] = XLAT(PACKET_TX_HAS_OFF),
 #define XLAT_VAL_17 ((unsigned) (PACKET_TX_HAS_OFF))
 #define XLAT_STR_17 STRINGIFY(PACKET_TX_HAS_OFF)
 [PACKET_QDISC_BYPASS] = XLAT(PACKET_QDISC_BYPASS),
 #define XLAT_VAL_18 ((unsigned) (PACKET_QDISC_BYPASS))
 #define XLAT_STR_18 STRINGIFY(PACKET_QDISC_BYPASS)
 [PACKET_ROLLOVER_STATS] = XLAT(PACKET_ROLLOVER_STATS),
 #define XLAT_VAL_19 ((unsigned) (PACKET_ROLLOVER_STATS))
 #define XLAT_STR_19 STRINGIFY(PACKET_ROLLOVER_STATS)
 [PACKET_FANOUT_DATA] = XLAT(PACKET_FANOUT_DATA),
 #define XLAT_VAL_20 ((unsigned) (PACKET_FANOUT_DATA))
 #define XLAT_STR_20 STRINGIFY(PACKET_FANOUT_DATA)
 [PACKET_IGNORE_OUTGOING] = XLAT(PACKET_IGNORE_OUTGOING),
 #define XLAT_VAL_21 ((unsigned) (PACKET_IGNORE_OUTGOING))
 #define XLAT_STR_21 STRINGIFY(PACKET_IGNORE_OUTGOING)
 [PACKET_VNET_HDR_SZ] = XLAT(PACKET_VNET_HDR_SZ),
 #define XLAT_VAL_22 ((unsigned) (PACKET_VNET_HDR_SZ))
 #define XLAT_STR_22 STRINGIFY(PACKET_VNET_HDR_SZ)
};
static
const struct xlat sock_packet_options[1] = { {
 .data = sock_packet_options_xdata,
 .size = ARRAY_SIZE(sock_packet_options_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
#  ifdef XLAT_VAL_11
  | XLAT_VAL_11
#  endif
#  ifdef XLAT_VAL_12
  | XLAT_VAL_12
#  endif
#  ifdef XLAT_VAL_13
  | XLAT_VAL_13
#  endif
#  ifdef XLAT_VAL_14
  | XLAT_VAL_14
#  endif
#  ifdef XLAT_VAL_15
  | XLAT_VAL_15
#  endif
#  ifdef XLAT_VAL_16
  | XLAT_VAL_16
#  endif
#  ifdef XLAT_VAL_17
  | XLAT_VAL_17
#  endif
#  ifdef XLAT_VAL_18
  | XLAT_VAL_18
#  endif
#  ifdef XLAT_VAL_19
  | XLAT_VAL_19
#  endif
#  ifdef XLAT_VAL_20
  | XLAT_VAL_20
#  endif
#  ifdef XLAT_VAL_21
  | XLAT_VAL_21
#  endif
#  ifdef XLAT_VAL_22
  | XLAT_VAL_22
#  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
#  ifdef XLAT_STR_11
  + sizeof(XLAT_STR_11)
#  endif
#  ifdef XLAT_STR_12
  + sizeof(XLAT_STR_12)
#  endif
#  ifdef XLAT_STR_13
  + sizeof(XLAT_STR_13)
#  endif
#  ifdef XLAT_STR_14
  + sizeof(XLAT_STR_14)
#  endif
#  ifdef XLAT_STR_15
  + sizeof(XLAT_STR_15)
#  endif
#  ifdef XLAT_STR_16
  + sizeof(XLAT_STR_16)
#  endif
#  ifdef XLAT_STR_17
  + sizeof(XLAT_STR_17)
#  endif
#  ifdef XLAT_STR_18
  + sizeof(XLAT_STR_18)
#  endif
#  ifdef XLAT_STR_19
  + sizeof(XLAT_STR_19)
#  endif
#  ifdef XLAT_STR_20
  + sizeof(XLAT_STR_20)
#  endif
#  ifdef XLAT_STR_21
  + sizeof(XLAT_STR_21)
#  endif
#  ifdef XLAT_STR_22
  + sizeof(XLAT_STR_22)
#  endif
  ,
} };
DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE

#  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
#  undef XLAT_STR_11
#  undef XLAT_VAL_11
#  undef XLAT_STR_12
#  undef XLAT_VAL_12
#  undef XLAT_STR_13
#  undef XLAT_VAL_13
#  undef XLAT_STR_14
#  undef XLAT_VAL_14
#  undef XLAT_STR_15
#  undef XLAT_VAL_15
#  undef XLAT_STR_16
#  undef XLAT_VAL_16
#  undef XLAT_STR_17
#  undef XLAT_VAL_17
#  undef XLAT_STR_18
#  undef XLAT_VAL_18
#  undef XLAT_STR_19
#  undef XLAT_VAL_19
#  undef XLAT_STR_20
#  undef XLAT_VAL_20
#  undef XLAT_STR_21
#  undef XLAT_VAL_21
#  undef XLAT_STR_22
#  undef XLAT_VAL_22
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
