2 * Definitions for column structures and routines
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #ifndef __COLUMN_INFO_H__
26 #define __COLUMN_INFO_H__
32 #endif /* __cplusplus */
34 #define COL_MAX_LEN 256
35 #define COL_MAX_INFO_LEN 4096
37 typedef struct _column_info {
38 gint num_cols; /* Number of columns */
39 gint *col_fmt; /* Format of column */
40 gboolean **fmt_matx; /* Specifies which formats apply to a column */
41 gint *col_first; /* First column number with a given format */
42 gint *col_last; /* Last column number with a given format */
43 gchar **col_title; /* Column titles */
44 const gchar **col_data; /* Column data */
45 gchar **col_buf; /* Buffer into which to copy data for column */
46 int *col_fence; /* Stuff in column buffer before this index is immutable */
47 gchar **col_expr; /* Filter expression */
48 gchar **col_expr_val; /* Value for filter expression */
49 gboolean writable; /* Are we still writing to the columns? */
53 * All of the possible columns in summary listing.
55 * NOTE: The SRC and DST entries MUST remain in this order, or else you
56 * need to fix the offset #defines before get_column_format!
59 COL_NUMBER, /* Packet list item number */
60 COL_CLS_TIME, /* Command line-specified time (default relative) */
61 COL_REL_TIME, /* Relative time */
62 COL_ABS_TIME, /* Absolute time */
63 COL_ABS_DATE_TIME, /* Absolute date and time */
64 COL_DELTA_TIME, /* Delta time */
65 COL_DEF_SRC, /* Source address */
66 COL_RES_SRC, /* Resolved source */
67 COL_UNRES_SRC, /* Unresolved source */
68 COL_DEF_DL_SRC, /* Data link layer source address */
69 COL_RES_DL_SRC, /* Resolved DL source */
70 COL_UNRES_DL_SRC, /* Unresolved DL source */
71 COL_DEF_NET_SRC, /* Network layer source address */
72 COL_RES_NET_SRC, /* Resolved net source */
73 COL_UNRES_NET_SRC, /* Unresolved net source */
74 COL_DEF_DST, /* Destination address */
75 COL_RES_DST, /* Resolved dest */
76 COL_UNRES_DST, /* Unresolved dest */
77 COL_DEF_DL_DST, /* Data link layer dest address */
78 COL_RES_DL_DST, /* Resolved DL dest */
79 COL_UNRES_DL_DST, /* Unresolved DL dest */
80 COL_DEF_NET_DST, /* Network layer dest address */
81 COL_RES_NET_DST, /* Resolved net dest */
82 COL_UNRES_NET_DST, /* Unresolved net dest */
83 COL_DEF_SRC_PORT, /* Source port */
84 COL_RES_SRC_PORT, /* Resolved source port */
85 COL_UNRES_SRC_PORT, /* Unresolved source port */
86 COL_DEF_DST_PORT, /* Destination port */
87 COL_RES_DST_PORT, /* Resolved dest port */
88 COL_UNRES_DST_PORT, /* Unresolved dest port */
89 COL_PROTOCOL, /* Protocol */
90 COL_INFO, /* Description */
91 COL_PACKET_LENGTH, /* Packet length in bytes */
92 COL_CUMULATIVE_BYTES, /* Cumulative number of bytes */
93 COL_OXID, /* Fibre Channel OXID */
94 COL_RXID, /* Fibre Channel RXID */
95 COL_IF_DIR, /* FW-1 monitor interface/direction */
96 COL_CIRCUIT_ID, /* Circuit ID */
97 COL_SRCIDX, /* Src port idx - Cisco MDS-specific */
98 COL_DSTIDX, /* Dst port idx - Cisco MDS-specific */
99 COL_VSAN, /* VSAN - Cisco MDS-specific */
100 COL_TX_RATE, /* IEEE 802.11 - TX rate in Mbps */
101 COL_RSSI, /* IEEE 802.11 - received signal strength */
102 COL_HPUX_SUBSYS, /* HP-UX Nettl Subsystem */
103 COL_HPUX_DEVID, /* HP-UX Nettl Device ID */
104 COL_DCE_CALL, /* DCE/RPC connection oriented call id OR datagram sequence number */
105 COL_DCE_CTX, /* DCE/RPC connection oriented context id */
106 COL_8021Q_VLAN_ID, /* 802.1Q vlan ID */
107 COL_DSCP_VALUE, /* IP DSCP Value */
108 COL_COS_VALUE, /* L2 COS Value */
109 COL_TEI, /* Q.921 TEI */
110 COL_FR_DLCI, /* Frame Relay DLCI */
111 COL_BSSGP_TLLI, /* GPRS BSSGP IE TLLI */
112 NUM_COL_FMTS /* Should always be last */
117 #endif /* __cplusplus */
119 #endif /* __COLUMN_INFO_H__ */