blob: 9e9b3f768cdca07621f3f9bc2ac5ed4c38e937af [file] [log] [blame]
Willy Tarreau074d65b2015-12-20 23:21:57 +01001#include <stdio.h>
2#include <stdlib.h>
3
4#include <types/channel.h>
5#include <types/connection.h>
6#include <types/proto_http.h>
7#include <types/stream.h>
8#include <types/stream_interface.h>
9#include <types/task.h>
10
11#define SHOW_FLAG(f,n) \
12 do { \
13 if (!((f) & (n))) break; \
14 (f) &= ~(n); \
15 printf(#n"%s", (f) ? " | " : ""); \
16 } while (0)
17
18void show_chn_ana(unsigned int f)
19{
20 printf("chn->ana = ");
21
22 if (!f) {
23 printf("0\n");
24 return;
25 }
26
Christopher Fauletf4cfcf92017-11-10 14:10:35 +010027 SHOW_FLAG(f, AN_REQ_FLT_START_FE);
Willy Tarreau074d65b2015-12-20 23:21:57 +010028 SHOW_FLAG(f, AN_REQ_INSPECT_FE);
29 SHOW_FLAG(f, AN_REQ_WAIT_HTTP);
30 SHOW_FLAG(f, AN_REQ_HTTP_BODY);
31 SHOW_FLAG(f, AN_REQ_HTTP_PROCESS_FE);
32 SHOW_FLAG(f, AN_REQ_SWITCHING_RULES);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +010033 SHOW_FLAG(f, AN_REQ_FLT_START_BE);
Willy Tarreau074d65b2015-12-20 23:21:57 +010034 SHOW_FLAG(f, AN_REQ_INSPECT_BE);
35 SHOW_FLAG(f, AN_REQ_HTTP_PROCESS_BE);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +010036 SHOW_FLAG(f, AN_REQ_HTTP_TARPIT);
Willy Tarreau074d65b2015-12-20 23:21:57 +010037 SHOW_FLAG(f, AN_REQ_SRV_RULES);
38 SHOW_FLAG(f, AN_REQ_HTTP_INNER);
Willy Tarreau074d65b2015-12-20 23:21:57 +010039 SHOW_FLAG(f, AN_REQ_PRST_RDP_COOKIE);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +010040 SHOW_FLAG(f, AN_REQ_STICKING_RULES);
41 SHOW_FLAG(f, AN_REQ_FLT_HTTP_HDRS);
Willy Tarreau074d65b2015-12-20 23:21:57 +010042 SHOW_FLAG(f, AN_REQ_HTTP_XFER_BODY);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +010043 SHOW_FLAG(f, AN_REQ_FLT_XFER_DATA);
44 SHOW_FLAG(f, AN_REQ_FLT_END);
45
Willy Tarreau260bf5c2018-01-15 18:59:16 +010046 SHOW_FLAG(f, AN_RES_FLT_START_FE);
47 SHOW_FLAG(f, AN_RES_FLT_START_BE);
Willy Tarreau074d65b2015-12-20 23:21:57 +010048 SHOW_FLAG(f, AN_RES_INSPECT);
49 SHOW_FLAG(f, AN_RES_WAIT_HTTP);
Willy Tarreau074d65b2015-12-20 23:21:57 +010050 SHOW_FLAG(f, AN_RES_STORE_RULES);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +010051 SHOW_FLAG(f, AN_RES_HTTP_PROCESS_FE);
52 SHOW_FLAG(f, AN_RES_HTTP_PROCESS_BE);
53 SHOW_FLAG(f, AN_RES_FLT_HTTP_HDRS);
Willy Tarreau074d65b2015-12-20 23:21:57 +010054 SHOW_FLAG(f, AN_RES_HTTP_XFER_BODY);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +010055 SHOW_FLAG(f, AN_RES_FLT_XFER_DATA);
56 SHOW_FLAG(f, AN_RES_FLT_END);
Willy Tarreau074d65b2015-12-20 23:21:57 +010057
58 if (f) {
59 printf("EXTRA(0x%08x)", f);
60 }
61 putchar('\n');
62}
63
64void show_chn_flags(unsigned int f)
65{
66 printf("chn->flags = ");
67
68 if (!f) {
69 printf("0\n");
70 return;
71 }
72
73 SHOW_FLAG(f, CF_ISRESP);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +010074 SHOW_FLAG(f, CF_FLT_ANALYZE);
Willy Tarreau074d65b2015-12-20 23:21:57 +010075 SHOW_FLAG(f, CF_WAKE_ONCE);
76 SHOW_FLAG(f, CF_NEVER_WAIT);
77 SHOW_FLAG(f, CF_SEND_DONTWAIT);
78 SHOW_FLAG(f, CF_EXPECT_MORE);
79 SHOW_FLAG(f, CF_DONT_READ);
80 SHOW_FLAG(f, CF_AUTO_CONNECT);
81 SHOW_FLAG(f, CF_READ_DONTWAIT);
82 SHOW_FLAG(f, CF_KERN_SPLICING);
83 SHOW_FLAG(f, CF_READ_ATTACHED);
84 SHOW_FLAG(f, CF_ANA_TIMEOUT);
85 SHOW_FLAG(f, CF_WROTE_DATA);
86 SHOW_FLAG(f, CF_STREAMER_FAST);
87 SHOW_FLAG(f, CF_STREAMER);
88 SHOW_FLAG(f, CF_AUTO_CLOSE);
89 SHOW_FLAG(f, CF_SHUTW_NOW);
90 SHOW_FLAG(f, CF_SHUTW);
91 SHOW_FLAG(f, CF_WAKE_WRITE);
92 SHOW_FLAG(f, CF_WRITE_ERROR);
93 SHOW_FLAG(f, CF_WRITE_TIMEOUT);
94 SHOW_FLAG(f, CF_WRITE_PARTIAL);
95 SHOW_FLAG(f, CF_WRITE_NULL);
96 SHOW_FLAG(f, CF_READ_NOEXP);
97 SHOW_FLAG(f, CF_SHUTR_NOW);
98 SHOW_FLAG(f, CF_SHUTR);
99 SHOW_FLAG(f, CF_WAKE_CONNECT);
100 SHOW_FLAG(f, CF_READ_ERROR);
101 SHOW_FLAG(f, CF_READ_TIMEOUT);
102 SHOW_FLAG(f, CF_READ_PARTIAL);
103 SHOW_FLAG(f, CF_READ_NULL);
104
105 if (f) {
106 printf("EXTRA(0x%08x)", f);
107 }
108 putchar('\n');
109}
110
111void show_conn_flags(unsigned int f)
112{
113 printf("conn->flags = ");
114 if (!f) {
115 printf("0\n");
116 return;
117 }
118
119 SHOW_FLAG(f, CO_FL_XPRT_TRACKED);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +0100120 SHOW_FLAG(f, CO_FL_RCVD_PROXY);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100121 SHOW_FLAG(f, CO_FL_PRIVATE);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +0100122 SHOW_FLAG(f, CO_FL_ACCEPT_CIP);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100123 SHOW_FLAG(f, CO_FL_ACCEPT_PROXY);
124 SHOW_FLAG(f, CO_FL_SSL_WAIT_HS);
125 SHOW_FLAG(f, CO_FL_SEND_PROXY);
126 SHOW_FLAG(f, CO_FL_WAIT_L6_CONN);
127 SHOW_FLAG(f, CO_FL_WAIT_L4_CONN);
128 SHOW_FLAG(f, CO_FL_CONNECTED);
129 SHOW_FLAG(f, CO_FL_ERROR);
130 SHOW_FLAG(f, CO_FL_SOCK_WR_SH);
131 SHOW_FLAG(f, CO_FL_SOCK_RD_SH);
Christopher Fauletf4cfcf92017-11-10 14:10:35 +0100132 SHOW_FLAG(f, CO_FL_EARLY_DATA);
133 SHOW_FLAG(f, CO_FL_EARLY_SSL_HS);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100134 SHOW_FLAG(f, CO_FL_ADDR_TO_SET);
135 SHOW_FLAG(f, CO_FL_ADDR_FROM_SET);
136 SHOW_FLAG(f, CO_FL_WAIT_ROOM);
Christopher Fauletaff93282018-02-27 15:41:10 +0100137 SHOW_FLAG(f, CO_FL_WILL_UPDATE);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100138 SHOW_FLAG(f, CO_FL_XPRT_READY);
139 SHOW_FLAG(f, CO_FL_CTRL_READY);
140 SHOW_FLAG(f, CO_FL_CURR_WR_ENA);
Olivier Houchard1a0545f2017-09-13 18:30:23 +0200141 SHOW_FLAG(f, CO_FL_XPRT_WR_ENA);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100142 SHOW_FLAG(f, CO_FL_SOCK_WR_ENA);
143 SHOW_FLAG(f, CO_FL_CURR_RD_ENA);
Olivier Houchard1a0545f2017-09-13 18:30:23 +0200144 SHOW_FLAG(f, CO_FL_XPRT_RD_ENA);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100145 SHOW_FLAG(f, CO_FL_SOCK_RD_ENA);
146
147 if (f) {
148 printf("EXTRA(0x%08x)", f);
149 }
150 putchar('\n');
151}
Christopher Faulet5f8ef132018-03-01 08:55:21 +0100152void show_cs_flags(unsigned int f)
153{
154 printf("cs->flags = ");
155 if (!f) {
156 printf("0\n");
157 return;
158 }
Willy Tarreaud5016462018-11-16 10:37:20 +0100159 SHOW_FLAG(f, CS_FL_NOT_FIRST);
Christopher Faulet5f8ef132018-03-01 08:55:21 +0100160 SHOW_FLAG(f, CS_FL_WAIT_FOR_HS);
161 SHOW_FLAG(f, CS_FL_REOS);
162 SHOW_FLAG(f, CS_FL_EOS);
Willy Tarreau121c4e02018-12-17 21:58:03 +0100163 SHOW_FLAG(f, CS_FL_ERR_PENDING);
164 SHOW_FLAG(f, CS_FL_WANT_ROOM);
Christopher Faulet5f8ef132018-03-01 08:55:21 +0100165 SHOW_FLAG(f, CS_FL_RCV_MORE);
166 SHOW_FLAG(f, CS_FL_ERROR);
167 SHOW_FLAG(f, CS_FL_SHWS);
168 SHOW_FLAG(f, CS_FL_SHWN);
169 SHOW_FLAG(f, CS_FL_SHRR);
170 SHOW_FLAG(f, CS_FL_SHRD);
Christopher Faulet5f8ef132018-03-01 08:55:21 +0100171
172 if (f) {
173 printf("EXTRA(0x%08x)", f);
174 }
175 putchar('\n');
176}
Willy Tarreau074d65b2015-12-20 23:21:57 +0100177
178void show_si_et(unsigned int f)
179{
180 printf("si->et = ");
181 if (!f) {
182 printf("SI_ET_NONE\n");
183 return;
184 }
185
186 SHOW_FLAG(f, SI_ET_QUEUE_TO);
187 SHOW_FLAG(f, SI_ET_QUEUE_ERR);
188 SHOW_FLAG(f, SI_ET_QUEUE_ABRT);
189 SHOW_FLAG(f, SI_ET_CONN_TO);
190 SHOW_FLAG(f, SI_ET_CONN_ERR);
191 SHOW_FLAG(f, SI_ET_CONN_ABRT);
192 SHOW_FLAG(f, SI_ET_CONN_RES);
193 SHOW_FLAG(f, SI_ET_CONN_OTHER);
194 SHOW_FLAG(f, SI_ET_DATA_TO);
195 SHOW_FLAG(f, SI_ET_DATA_ERR);
196 SHOW_FLAG(f, SI_ET_DATA_ABRT);
197
198 if (f) {
199 printf("EXTRA(0x%08x)", f);
200 }
201 putchar('\n');
202}
203
204void show_si_flags(unsigned int f)
205{
Willy Tarreau074d65b2015-12-20 23:21:57 +0100206 printf("si->flags = ");
207 if (!f) {
208 printf("SI_FL_NONE\n");
209 return;
210 }
211
212 SHOW_FLAG(f, SI_FL_EXP);
213 SHOW_FLAG(f, SI_FL_ERR);
Willy Tarreaud0f5bbc2018-11-14 11:10:26 +0100214 SHOW_FLAG(f, SI_FL_RXBLK_ROOM);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100215 SHOW_FLAG(f, SI_FL_WAIT_DATA);
216 SHOW_FLAG(f, SI_FL_ISBACK);
217 SHOW_FLAG(f, SI_FL_DONT_WAKE);
218 SHOW_FLAG(f, SI_FL_INDEP_STR);
219 SHOW_FLAG(f, SI_FL_NOLINGER);
220 SHOW_FLAG(f, SI_FL_NOHALF);
221 SHOW_FLAG(f, SI_FL_SRC_ADDR);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100222 SHOW_FLAG(f, SI_FL_WANT_GET);
Willy Tarreauf2ddd872018-12-18 09:54:22 +0100223 SHOW_FLAG(f, SI_FL_CLEAN_ABRT);
Willy Tarreau94f79072018-11-14 11:24:08 +0100224 SHOW_FLAG(f, SI_FL_RXBLK_CHAN);
225 SHOW_FLAG(f, SI_FL_RXBLK_BUFF);
226 SHOW_FLAG(f, SI_FL_RXBLK_ROOM);
227 SHOW_FLAG(f, SI_FL_RXBLK_SHUT);
228 SHOW_FLAG(f, SI_FL_RX_WAIT_EP);
229
Willy Tarreau074d65b2015-12-20 23:21:57 +0100230 if (f) {
Willy Tarreau94f79072018-11-14 11:24:08 +0100231 printf("EXTRA(0x%08x)", f);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100232 }
233 putchar('\n');
234}
235
236void show_task_state(unsigned int f)
237{
238 printf("task->state = ");
239
240 if (!f) {
241 printf("TASK_SLEEPING\n");
242 return;
243 }
244
245 SHOW_FLAG(f, TASK_WOKEN_OTHER);
246 SHOW_FLAG(f, TASK_WOKEN_RES);
247 SHOW_FLAG(f, TASK_WOKEN_MSG);
248 SHOW_FLAG(f, TASK_WOKEN_SIGNAL);
249 SHOW_FLAG(f, TASK_WOKEN_IO);
250 SHOW_FLAG(f, TASK_WOKEN_TIMER);
251 SHOW_FLAG(f, TASK_WOKEN_INIT);
252 SHOW_FLAG(f, TASK_RUNNING);
253
254 if (f) {
255 printf("EXTRA(0x%08x)", f);
256 }
257 putchar('\n');
258}
259
260void show_txn_flags(unsigned int f)
261{
262 printf("txn->flags = ");
263
264 if (!f) {
265 printf("0\n");
266 return;
267 }
268
269 SHOW_FLAG(f, TX_NOT_FIRST);
270 SHOW_FLAG(f, TX_USE_PX_CONN);
271 SHOW_FLAG(f, TX_HDR_CONN_KAL);
272 SHOW_FLAG(f, TX_HDR_CONN_CLO);
273 SHOW_FLAG(f, TX_HDR_CONN_PRS);
274 SHOW_FLAG(f, TX_WAIT_NEXT_RQ);
275 SHOW_FLAG(f, TX_HDR_CONN_UPG);
276 SHOW_FLAG(f, TX_PREFER_LAST);
277 SHOW_FLAG(f, TX_CON_KAL_SET);
278 SHOW_FLAG(f, TX_CON_CLO_SET);
279
280 //printf("%s", f ? "" : " | ");
281 switch (f & TX_CON_WANT_MSK) {
282 case TX_CON_WANT_KAL: /*f &= ~TX_CON_WANT_MSK ; printf("TX_CON_WANT_KAL%s", f ? " | " : "");*/ break;
283 case TX_CON_WANT_TUN: f &= ~TX_CON_WANT_MSK ; printf("TX_CON_WANT_TUN%s", f ? " | " : ""); break;
284 case TX_CON_WANT_SCL: f &= ~TX_CON_WANT_MSK ; printf("TX_CON_WANT_SCL%s", f ? " | " : ""); break;
285 case TX_CON_WANT_CLO: f &= ~TX_CON_WANT_MSK ; printf("TX_CON_WANT_CLO%s", f ? " | " : ""); break;
286 }
287
288 SHOW_FLAG(f, TX_CACHE_COOK);
289 SHOW_FLAG(f, TX_CACHEABLE);
290 SHOW_FLAG(f, TX_SCK_PRESENT);
291
292 //printf("%s", f ? "" : " | ");
293 switch (f & TX_SCK_MASK) {
294 case TX_SCK_NONE: f &= ~TX_SCK_MASK ; /*printf("TX_SCK_NONE%s", f ? " | " : "");*/ break;
295 case TX_SCK_FOUND: f &= ~TX_SCK_MASK ; printf("TX_SCK_FOUND%s", f ? " | " : ""); break;
296 case TX_SCK_DELETED: f &= ~TX_SCK_MASK ; printf("TX_SCK_DELETED%s", f ? " | " : ""); break;
297 case TX_SCK_INSERTED: f &= ~TX_SCK_MASK ; printf("TX_SCK_INSERTED%s", f ? " | " : ""); break;
298 case TX_SCK_REPLACED: f &= ~TX_SCK_MASK ; printf("TX_SCK_REPLACED%s", f ? " | " : ""); break;
299 case TX_SCK_UPDATED: f &= ~TX_SCK_MASK ; printf("TX_SCK_UPDATED%s", f ? " | " : ""); break;
300 default: printf("TX_SCK_MASK(%02x)", f); f &= ~TX_SCK_MASK ; printf("%s", f ? " | " : ""); break;
301 }
302
303 //printf("%s", f ? "" : " | ");
304 switch (f & TX_CK_MASK) {
305 case TX_CK_NONE: f &= ~TX_CK_MASK ; /*printf("TX_CK_NONE%s", f ? " | " : "");*/ break;
306 case TX_CK_INVALID: f &= ~TX_CK_MASK ; printf("TX_CK_INVALID%s", f ? " | " : ""); break;
307 case TX_CK_DOWN: f &= ~TX_CK_MASK ; printf("TX_CK_DOWN%s", f ? " | " : ""); break;
308 case TX_CK_VALID: f &= ~TX_CK_MASK ; printf("TX_CK_VALID%s", f ? " | " : ""); break;
309 case TX_CK_EXPIRED: f &= ~TX_CK_MASK ; printf("TX_CK_EXPIRED%s", f ? " | " : ""); break;
310 case TX_CK_OLD: f &= ~TX_CK_MASK ; printf("TX_CK_OLD%s", f ? " | " : ""); break;
311 case TX_CK_UNUSED: f &= ~TX_CK_MASK ; printf("TX_CK_UNUSED%s", f ? " | " : ""); break;
312 default: printf("TX_CK_MASK(%02x)", f); f &= ~TX_CK_MASK ; printf("%s", f ? " | " : ""); break;
313 }
314
315 SHOW_FLAG(f, TX_CLTARPIT);
316 SHOW_FLAG(f, TX_SVALLOW);
317 SHOW_FLAG(f, TX_SVDENY);
318 SHOW_FLAG(f, TX_CLALLOW);
319 SHOW_FLAG(f, TX_CLDENY);
320
321 if (f) {
322 printf("EXTRA(0x%08x)", f);
323 }
324 putchar('\n');
325}
326
327void show_strm_flags(unsigned int f)
328{
329 printf("strm->flags = ");
330
331 if (!f) {
332 printf("0\n");
333 return;
334 }
335
336 SHOW_FLAG(f, SF_SRV_REUSED);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100337 SHOW_FLAG(f, SF_IGNORE_PRST);
338
339 //printf("%s", f ? "" : " | ");
340 switch (f & SF_FINST_MASK) {
341 case SF_FINST_R: f &= ~SF_FINST_MASK ; printf("SF_FINST_R%s", f ? " | " : ""); break;
342 case SF_FINST_C: f &= ~SF_FINST_MASK ; printf("SF_FINST_C%s", f ? " | " : ""); break;
343 case SF_FINST_H: f &= ~SF_FINST_MASK ; printf("SF_FINST_H%s", f ? " | " : ""); break;
344 case SF_FINST_D: f &= ~SF_FINST_MASK ; printf("SF_FINST_D%s", f ? " | " : ""); break;
345 case SF_FINST_L: f &= ~SF_FINST_MASK ; printf("SF_FINST_L%s", f ? " | " : ""); break;
346 case SF_FINST_Q: f &= ~SF_FINST_MASK ; printf("SF_FINST_Q%s", f ? " | " : ""); break;
347 case SF_FINST_T: f &= ~SF_FINST_MASK ; printf("SF_FINST_T%s", f ? " | " : ""); break;
348 }
349
350 switch (f & SF_ERR_MASK) {
351 case SF_ERR_LOCAL: f &= ~SF_ERR_MASK ; printf("SF_ERR_LOCAL%s", f ? " | " : ""); break;
352 case SF_ERR_CLITO: f &= ~SF_ERR_MASK ; printf("SF_ERR_CLITO%s", f ? " | " : ""); break;
353 case SF_ERR_CLICL: f &= ~SF_ERR_MASK ; printf("SF_ERR_CLICL%s", f ? " | " : ""); break;
354 case SF_ERR_SRVTO: f &= ~SF_ERR_MASK ; printf("SF_ERR_SRVTO%s", f ? " | " : ""); break;
355 case SF_ERR_SRVCL: f &= ~SF_ERR_MASK ; printf("SF_ERR_SRVCL%s", f ? " | " : ""); break;
356 case SF_ERR_PRXCOND: f &= ~SF_ERR_MASK ; printf("SF_ERR_PRXCOND%s", f ? " | " : ""); break;
357 case SF_ERR_RESOURCE: f &= ~SF_ERR_MASK ; printf("SF_ERR_RESOURCE%s", f ? " | " : ""); break;
358 case SF_ERR_INTERNAL: f &= ~SF_ERR_MASK ; printf("SF_ERR_INTERNAL%s", f ? " | " : ""); break;
359 case SF_ERR_DOWN: f &= ~SF_ERR_MASK ; printf("SF_ERR_DOWN%s", f ? " | " : ""); break;
360 case SF_ERR_KILLED: f &= ~SF_ERR_MASK ; printf("SF_ERR_KILLED%s", f ? " | " : ""); break;
361 case SF_ERR_UP: f &= ~SF_ERR_MASK ; printf("SF_ERR_UP%s", f ? " | " : ""); break;
Willy Tarreaua7da4d22016-11-11 08:05:34 +0100362 case SF_ERR_CHK_PORT: f &= ~SF_ERR_MASK ; printf("SF_ERR_CHK_PORT%s", f ? " | " : ""); break;
Willy Tarreau074d65b2015-12-20 23:21:57 +0100363 }
364
Willy Tarreau074d65b2015-12-20 23:21:57 +0100365 SHOW_FLAG(f, SF_REDIRECTABLE);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100366 SHOW_FLAG(f, SF_REDISP);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100367 SHOW_FLAG(f, SF_CURR_SESS);
368 SHOW_FLAG(f, SF_MONITOR);
369 SHOW_FLAG(f, SF_FORCE_PRST);
370 SHOW_FLAG(f, SF_BE_ASSIGNED);
371 SHOW_FLAG(f, SF_ADDR_SET);
372 SHOW_FLAG(f, SF_ASSIGNED);
373 SHOW_FLAG(f, SF_DIRECT);
374
375 if (f) {
376 printf("EXTRA(0x%08x)", f);
377 }
378 putchar('\n');
379}
380
381int main(int argc, char **argv)
382{
383 unsigned int flags;
384
385 if (argc < 2) {
386 fprintf(stderr, "Usage: %s 0x<flags|state>\n", argv[0]);
387 exit(1);
388 }
389
390 flags = strtoul(argv[1], NULL, 0);
391
392 show_task_state(flags);
393 show_txn_flags(flags);
394 show_strm_flags(flags);
395 show_si_et(flags);
396 show_si_flags(flags);
Christopher Faulet5f8ef132018-03-01 08:55:21 +0100397 show_cs_flags(flags);
Willy Tarreau074d65b2015-12-20 23:21:57 +0100398 show_conn_flags(flags);
399 show_chn_flags(flags);
400 show_chn_ana(flags);
401
402 return 0;
403}