• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_rule_attrs.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(FRA_UNSPEC) || (defined(HAVE_DECL_FRA_UNSPEC) && HAVE_DECL_FRA_UNSPEC)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((FRA_UNSPEC) == (0), "FRA_UNSPEC != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define FRA_UNSPEC 0
12 #endif
13 #if defined(FRA_DST) || (defined(HAVE_DECL_FRA_DST) && HAVE_DECL_FRA_DST)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((FRA_DST) == (1), "FRA_DST != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define FRA_DST 1
19 #endif
20 #if defined(FRA_SRC) || (defined(HAVE_DECL_FRA_SRC) && HAVE_DECL_FRA_SRC)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((FRA_SRC) == (2), "FRA_SRC != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define FRA_SRC 2
26 #endif
27 #if defined(FRA_IIFNAME) || (defined(HAVE_DECL_FRA_IIFNAME) && HAVE_DECL_FRA_IIFNAME)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((FRA_IIFNAME) == (3), "FRA_IIFNAME != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define FRA_IIFNAME 3
33 #endif
34 #if defined(FRA_GOTO) || (defined(HAVE_DECL_FRA_GOTO) && HAVE_DECL_FRA_GOTO)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((FRA_GOTO) == (4), "FRA_GOTO != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define FRA_GOTO 4
40 #endif
41 #if defined(FRA_UNUSED2) || (defined(HAVE_DECL_FRA_UNUSED2) && HAVE_DECL_FRA_UNUSED2)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((FRA_UNUSED2) == (5), "FRA_UNUSED2 != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define FRA_UNUSED2 5
47 #endif
48 #if defined(FRA_PRIORITY) || (defined(HAVE_DECL_FRA_PRIORITY) && HAVE_DECL_FRA_PRIORITY)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((FRA_PRIORITY) == (6), "FRA_PRIORITY != 6");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define FRA_PRIORITY 6
54 #endif
55 #if defined(FRA_UNUSED3) || (defined(HAVE_DECL_FRA_UNUSED3) && HAVE_DECL_FRA_UNUSED3)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((FRA_UNUSED3) == (7), "FRA_UNUSED3 != 7");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define FRA_UNUSED3 7
61 #endif
62 #if defined(FRA_UNUSED4) || (defined(HAVE_DECL_FRA_UNUSED4) && HAVE_DECL_FRA_UNUSED4)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((FRA_UNUSED4) == (8), "FRA_UNUSED4 != 8");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define FRA_UNUSED4 8
68 #endif
69 #if defined(FRA_UNUSED5) || (defined(HAVE_DECL_FRA_UNUSED5) && HAVE_DECL_FRA_UNUSED5)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((FRA_UNUSED5) == (9), "FRA_UNUSED5 != 9");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define FRA_UNUSED5 9
75 #endif
76 #if defined(FRA_FWMARK) || (defined(HAVE_DECL_FRA_FWMARK) && HAVE_DECL_FRA_FWMARK)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((FRA_FWMARK) == (10), "FRA_FWMARK != 10");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define FRA_FWMARK 10
82 #endif
83 #if defined(FRA_FLOW) || (defined(HAVE_DECL_FRA_FLOW) && HAVE_DECL_FRA_FLOW)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((FRA_FLOW) == (11), "FRA_FLOW != 11");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define FRA_FLOW 11
89 #endif
90 #if defined(FRA_TUN_ID) || (defined(HAVE_DECL_FRA_TUN_ID) && HAVE_DECL_FRA_TUN_ID)
91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
92 static_assert((FRA_TUN_ID) == (12), "FRA_TUN_ID != 12");
93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
94 #else
95 # define FRA_TUN_ID 12
96 #endif
97 #if defined(FRA_SUPPRESS_IFGROUP) || (defined(HAVE_DECL_FRA_SUPPRESS_IFGROUP) && HAVE_DECL_FRA_SUPPRESS_IFGROUP)
98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
99 static_assert((FRA_SUPPRESS_IFGROUP) == (13), "FRA_SUPPRESS_IFGROUP != 13");
100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
101 #else
102 # define FRA_SUPPRESS_IFGROUP 13
103 #endif
104 #if defined(FRA_SUPPRESS_PREFIXLEN) || (defined(HAVE_DECL_FRA_SUPPRESS_PREFIXLEN) && HAVE_DECL_FRA_SUPPRESS_PREFIXLEN)
105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
106 static_assert((FRA_SUPPRESS_PREFIXLEN) == (14), "FRA_SUPPRESS_PREFIXLEN != 14");
107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
108 #else
109 # define FRA_SUPPRESS_PREFIXLEN 14
110 #endif
111 #if defined(FRA_TABLE) || (defined(HAVE_DECL_FRA_TABLE) && HAVE_DECL_FRA_TABLE)
112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
113 static_assert((FRA_TABLE) == (15), "FRA_TABLE != 15");
114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
115 #else
116 # define FRA_TABLE 15
117 #endif
118 #if defined(FRA_FWMASK) || (defined(HAVE_DECL_FRA_FWMASK) && HAVE_DECL_FRA_FWMASK)
119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
120 static_assert((FRA_FWMASK) == (16), "FRA_FWMASK != 16");
121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
122 #else
123 # define FRA_FWMASK 16
124 #endif
125 #if defined(FRA_OIFNAME) || (defined(HAVE_DECL_FRA_OIFNAME) && HAVE_DECL_FRA_OIFNAME)
126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
127 static_assert((FRA_OIFNAME) == (17), "FRA_OIFNAME != 17");
128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
129 #else
130 # define FRA_OIFNAME 17
131 #endif
132 #if defined(FRA_PAD) || (defined(HAVE_DECL_FRA_PAD) && HAVE_DECL_FRA_PAD)
133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
134 static_assert((FRA_PAD) == (18), "FRA_PAD != 18");
135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
136 #else
137 # define FRA_PAD 18
138 #endif
139 #if defined(FRA_L3MDEV) || (defined(HAVE_DECL_FRA_L3MDEV) && HAVE_DECL_FRA_L3MDEV)
140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
141 static_assert((FRA_L3MDEV) == (19), "FRA_L3MDEV != 19");
142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
143 #else
144 # define FRA_L3MDEV 19
145 #endif
146 #if defined(FRA_UID_RANGE) || (defined(HAVE_DECL_FRA_UID_RANGE) && HAVE_DECL_FRA_UID_RANGE)
147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
148 static_assert((FRA_UID_RANGE) == (20), "FRA_UID_RANGE != 20");
149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
150 #else
151 # define FRA_UID_RANGE 20
152 #endif
153 #if defined(FRA_PROTOCOL) || (defined(HAVE_DECL_FRA_PROTOCOL) && HAVE_DECL_FRA_PROTOCOL)
154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
155 static_assert((FRA_PROTOCOL) == (21), "FRA_PROTOCOL != 21");
156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
157 #else
158 # define FRA_PROTOCOL 21
159 #endif
160 #if defined(FRA_IP_PROTO) || (defined(HAVE_DECL_FRA_IP_PROTO) && HAVE_DECL_FRA_IP_PROTO)
161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
162 static_assert((FRA_IP_PROTO) == (22), "FRA_IP_PROTO != 22");
163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
164 #else
165 # define FRA_IP_PROTO 22
166 #endif
167 #if defined(FRA_SPORT_RANGE) || (defined(HAVE_DECL_FRA_SPORT_RANGE) && HAVE_DECL_FRA_SPORT_RANGE)
168 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
169 static_assert((FRA_SPORT_RANGE) == (23), "FRA_SPORT_RANGE != 23");
170 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
171 #else
172 # define FRA_SPORT_RANGE 23
173 #endif
174 #if defined(FRA_DPORT_RANGE) || (defined(HAVE_DECL_FRA_DPORT_RANGE) && HAVE_DECL_FRA_DPORT_RANGE)
175 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
176 static_assert((FRA_DPORT_RANGE) == (24), "FRA_DPORT_RANGE != 24");
177 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
178 #else
179 # define FRA_DPORT_RANGE 24
180 #endif
181 
182 #ifndef XLAT_MACROS_ONLY
183 
184 # ifdef IN_MPERS
185 
186 #  error static const struct xlat rtnl_rule_attrs in mpers mode
187 
188 # else
189 
190 static
191 const struct xlat rtnl_rule_attrs[] = {
192  XLAT(FRA_UNSPEC),
193  XLAT(FRA_DST),
194  XLAT(FRA_SRC),
195  XLAT(FRA_IIFNAME),
196  XLAT(FRA_GOTO),
197  XLAT(FRA_UNUSED2),
198  XLAT(FRA_PRIORITY),
199  XLAT(FRA_UNUSED3),
200  XLAT(FRA_UNUSED4),
201  XLAT(FRA_UNUSED5),
202  XLAT(FRA_FWMARK),
203  XLAT(FRA_FLOW),
204  XLAT(FRA_TUN_ID),
205  XLAT(FRA_SUPPRESS_IFGROUP),
206  XLAT(FRA_SUPPRESS_PREFIXLEN),
207  XLAT(FRA_TABLE),
208  XLAT(FRA_FWMASK),
209  XLAT(FRA_OIFNAME),
210  XLAT(FRA_PAD),
211  XLAT(FRA_L3MDEV),
212  XLAT(FRA_UID_RANGE),
213  XLAT(FRA_PROTOCOL),
214  XLAT(FRA_IP_PROTO),
215  XLAT(FRA_SPORT_RANGE),
216  XLAT(FRA_DPORT_RANGE),
217  XLAT_END
218 };
219 
220 # endif /* !IN_MPERS */
221 
222 #endif /* !XLAT_MACROS_ONLY */
223