lin
2025-08-01 633231e833e21d5b8b1c00cb15aedb62b3b78e8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* Generated by ./xlat/gen.sh from ./xlat/af_packet_versions.in; do not edit. */
 
#include "gcc_compat.h"
#include "static_assert.h"
 
#if defined(TPACKET_V1) || (defined(HAVE_DECL_TPACKET_V1) && HAVE_DECL_TPACKET_V1)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((TPACKET_V1) == (0), "TPACKET_V1 != 0");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define TPACKET_V1 0
#endif
#if defined(TPACKET_V2) || (defined(HAVE_DECL_TPACKET_V2) && HAVE_DECL_TPACKET_V2)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((TPACKET_V2) == (1), "TPACKET_V2 != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define TPACKET_V2 1
#endif
#if defined(TPACKET_V3) || (defined(HAVE_DECL_TPACKET_V3) && HAVE_DECL_TPACKET_V3)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((TPACKET_V3) == (2), "TPACKET_V3 != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define TPACKET_V3 2
#endif
 
#ifndef XLAT_MACROS_ONLY
 
# ifdef IN_MPERS
 
#  error static const struct xlat af_packet_versions in mpers mode
 
# else
 
static
const struct xlat af_packet_versions[] = {
 XLAT(TPACKET_V1),
 XLAT(TPACKET_V2),
 XLAT(TPACKET_V3),
 XLAT_END
};
 
# endif /* !IN_MPERS */
 
#endif /* !XLAT_MACROS_ONLY */