Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
traffic_table_ui.h
Go to the documentation of this file.
1 /* traffic_table_ui.h
2  * Copied from gtk/conversations_table.h 2003 Ronnie Sahlberg
3  * Helper routines common to all conversations taps.
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 #ifndef __CONVERSATION_UI_H__
13 #define __CONVERSATION_UI_H__
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
18 
23 typedef enum {
24  CONV_COLUMN_SRC_ADDR,
25  CONV_COLUMN_SRC_PORT,
26  CONV_COLUMN_DST_ADDR,
27  CONV_COLUMN_DST_PORT,
28  CONV_COLUMN_PACKETS,
29  CONV_COLUMN_BYTES,
30  CONV_COLUMN_PKT_AB,
31  CONV_COLUMN_BYTES_AB,
32  CONV_COLUMN_PKT_BA,
33  CONV_COLUMN_BYTES_BA,
34  CONV_COLUMN_START,
35  CONV_COLUMN_DURATION,
36  CONV_COLUMN_BPS_AB,
37  CONV_COLUMN_BPS_BA,
38  CONV_NUM_COLUMNS,
39  CONV_INDEX_COLUMN = CONV_NUM_COLUMNS
40 } conversation_column_type_e;
41 
42 extern const char *conv_column_titles[CONV_NUM_COLUMNS];
43 extern const char *conv_conn_a_title;
44 extern const char *conv_conn_b_title;
45 extern const char *conv_abs_start_title;
46 
47 typedef enum
48 {
49  ENDP_COLUMN_ADDR,
50  ENDP_COLUMN_PORT,
51  ENDP_COLUMN_PACKETS,
52  ENDP_COLUMN_BYTES,
53  ENDP_COLUMN_PKT_AB,
54  ENDP_COLUMN_BYTES_AB,
55  ENDP_COLUMN_PKT_BA,
56  ENDP_COLUMN_BYTES_BA,
57  ENDP_NUM_COLUMNS,
58  ENDP_COLUMN_GEO_COUNTRY = ENDP_NUM_COLUMNS,
59  ENDP_COLUMN_GEO_CITY,
60  ENDP_COLUMN_GEO_AS_NUM,
61  ENDP_COLUMN_GEO_AS_ORG,
62  ENDP_NUM_GEO_COLUMNS
63 } endpoint_column_type_e;
64 
65 extern const char *endp_column_titles[ENDP_NUM_GEO_COLUMNS];
66 
67 extern const char *endp_conn_title;
68 
69 #ifdef __cplusplus
70 }
71 #endif /* __cplusplus */
72 
73 #endif /* __CONVERSATION_UI_H__ */
74 
75 /*
76  * Editor modelines
77  *
78  * Local Variables:
79  * c-basic-offset: 4
80  * tab-width: 8
81  * indent-tabs-mode: nil
82  * End:
83  *
84  * ex: set shiftwidth=4 tabstop=8 expandtab:
85  * :indentSize=4:tabSize=8:noTabs=true:
86  */