1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_ifla_af_spec_inet6_attrs.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(IFLA_INET6_UNSPEC) || (defined(HAVE_DECL_IFLA_INET6_UNSPEC) && HAVE_DECL_IFLA_INET6_UNSPEC)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((IFLA_INET6_UNSPEC) == (0), "IFLA_INET6_UNSPEC != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define IFLA_INET6_UNSPEC 0
12 #endif
13 #if defined(IFLA_INET6_FLAGS) || (defined(HAVE_DECL_IFLA_INET6_FLAGS) && HAVE_DECL_IFLA_INET6_FLAGS)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((IFLA_INET6_FLAGS) == (1), "IFLA_INET6_FLAGS != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define IFLA_INET6_FLAGS 1
19 #endif
20 #if defined(IFLA_INET6_CONF) || (defined(HAVE_DECL_IFLA_INET6_CONF) && HAVE_DECL_IFLA_INET6_CONF)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((IFLA_INET6_CONF) == (2), "IFLA_INET6_CONF != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define IFLA_INET6_CONF 2
26 #endif
27 #if defined(IFLA_INET6_STATS) || (defined(HAVE_DECL_IFLA_INET6_STATS) && HAVE_DECL_IFLA_INET6_STATS)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((IFLA_INET6_STATS) == (3), "IFLA_INET6_STATS != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define IFLA_INET6_STATS 3
33 #endif
34 #if defined(IFLA_INET6_MCAST) || (defined(HAVE_DECL_IFLA_INET6_MCAST) && HAVE_DECL_IFLA_INET6_MCAST)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((IFLA_INET6_MCAST) == (4), "IFLA_INET6_MCAST != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define IFLA_INET6_MCAST 4
40 #endif
41 #if defined(IFLA_INET6_CACHEINFO) || (defined(HAVE_DECL_IFLA_INET6_CACHEINFO) && HAVE_DECL_IFLA_INET6_CACHEINFO)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((IFLA_INET6_CACHEINFO) == (5), "IFLA_INET6_CACHEINFO != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define IFLA_INET6_CACHEINFO 5
47 #endif
48 #if defined(IFLA_INET6_ICMP6STATS) || (defined(HAVE_DECL_IFLA_INET6_ICMP6STATS) && HAVE_DECL_IFLA_INET6_ICMP6STATS)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((IFLA_INET6_ICMP6STATS) == (6), "IFLA_INET6_ICMP6STATS != 6");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define IFLA_INET6_ICMP6STATS 6
54 #endif
55 #if defined(IFLA_INET6_TOKEN) || (defined(HAVE_DECL_IFLA_INET6_TOKEN) && HAVE_DECL_IFLA_INET6_TOKEN)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((IFLA_INET6_TOKEN) == (7), "IFLA_INET6_TOKEN != 7");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define IFLA_INET6_TOKEN 7
61 #endif
62 #if defined(IFLA_INET6_ADDR_GEN_MODE) || (defined(HAVE_DECL_IFLA_INET6_ADDR_GEN_MODE) && HAVE_DECL_IFLA_INET6_ADDR_GEN_MODE)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((IFLA_INET6_ADDR_GEN_MODE) == (8), "IFLA_INET6_ADDR_GEN_MODE != 8");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define IFLA_INET6_ADDR_GEN_MODE 8
68 #endif
69 
70 #ifndef XLAT_MACROS_ONLY
71 
72 # ifdef IN_MPERS
73 
74 #  error static const struct xlat rtnl_ifla_af_spec_inet6_attrs in mpers mode
75 
76 # else
77 
78 static
79 const struct xlat rtnl_ifla_af_spec_inet6_attrs[] = {
80  [IFLA_INET6_UNSPEC] = XLAT(IFLA_INET6_UNSPEC),
81  [IFLA_INET6_FLAGS] = XLAT(IFLA_INET6_FLAGS),
82  [IFLA_INET6_CONF] = XLAT(IFLA_INET6_CONF),
83  [IFLA_INET6_STATS] = XLAT(IFLA_INET6_STATS),
84  [IFLA_INET6_MCAST] = XLAT(IFLA_INET6_MCAST),
85  [IFLA_INET6_CACHEINFO] = XLAT(IFLA_INET6_CACHEINFO),
86  [IFLA_INET6_ICMP6STATS] = XLAT(IFLA_INET6_ICMP6STATS),
87  [IFLA_INET6_TOKEN] = XLAT(IFLA_INET6_TOKEN),
88  [IFLA_INET6_ADDR_GEN_MODE] = XLAT(IFLA_INET6_ADDR_GEN_MODE),
89  XLAT_END
90 };
91 
92 # endif /* !IN_MPERS */
93 
94 #endif /* !XLAT_MACROS_ONLY */
95