1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/inet_diag_bpf_storages_attrs.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
7 static_assert((SK_DIAG_BPF_STORAGE_REP_NONE) == (0), "SK_DIAG_BPF_STORAGE_REP_NONE != 0");
8 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
9 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
10 static_assert((SK_DIAG_BPF_STORAGE) == (1), "SK_DIAG_BPF_STORAGE != 1");
11 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
12 #undef XLAT_PREV_VAL
13
14 #ifndef XLAT_MACROS_ONLY
15
16 # ifdef IN_MPERS
17
18 # error static const struct xlat inet_diag_bpf_storages_attrs in mpers mode
19
20 # else
21
22 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
23 static const struct xlat_data inet_diag_bpf_storages_attrs_xdata[] = {
24 [SK_DIAG_BPF_STORAGE_REP_NONE] = XLAT(SK_DIAG_BPF_STORAGE_REP_NONE),
25 #define XLAT_VAL_0 ((unsigned) (SK_DIAG_BPF_STORAGE_REP_NONE))
26 #define XLAT_STR_0 STRINGIFY(SK_DIAG_BPF_STORAGE_REP_NONE)
27 [SK_DIAG_BPF_STORAGE] = XLAT(SK_DIAG_BPF_STORAGE),
28 #define XLAT_VAL_1 ((unsigned) (SK_DIAG_BPF_STORAGE))
29 #define XLAT_STR_1 STRINGIFY(SK_DIAG_BPF_STORAGE)
30 };
31 static
32 const struct xlat inet_diag_bpf_storages_attrs[1] = { {
33 .data = inet_diag_bpf_storages_attrs_xdata,
34 .size = ARRAY_SIZE(inet_diag_bpf_storages_attrs_xdata),
35 .type = XT_INDEXED,
36 .flags_mask = 0
37 # ifdef XLAT_VAL_0
38 | XLAT_VAL_0
39 # endif
40 # ifdef XLAT_VAL_1
41 | XLAT_VAL_1
42 # endif
43 ,
44 .flags_strsz = 0
45 # ifdef XLAT_STR_0
46 + sizeof(XLAT_STR_0)
47 # endif
48 # ifdef XLAT_STR_1
49 + sizeof(XLAT_STR_1)
50 # endif
51 ,
52 } };
53 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
54
55 # undef XLAT_STR_0
56 # undef XLAT_VAL_0
57 # undef XLAT_STR_1
58 # undef XLAT_VAL_1
59 # endif /* !IN_MPERS */
60
61 #endif /* !XLAT_MACROS_ONLY */