2 * Definitions for column structures and routines
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@ethereal.com>
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__
30 #define COL_MAX_LEN 256
31 #define COL_MAX_INFO_LEN 4096
33 typedef struct _column_info {
34 gint num_cols; /* Number of columns */
35 gint *col_fmt; /* Format of column */
36 gboolean **fmt_matx; /* Specifies which formats apply to a column */
37 gint *col_first; /* First column number with a given format */
38 gint *col_last; /* Last column number with a given format */
39 gchar **col_title; /* Column titles */
40 const gchar **col_data; /* Column data */
41 gchar **col_buf; /* Buffer into which to copy data for column */
42 int *col_fence; /* Stuff in column buffer before this index is immutable */
43 gchar **col_expr; /* Filter expression */
44 gchar **col_expr_val; /* Value for filter expression */
45 gboolean writable; /* Are we stil writing to the columns? */
49 * All of the possible columns in summary listing.
51 * NOTE: The SRC and DST entries MUST remain in this order, or else you
52 * need to fix the offset #defines before get_column_format!
55 COL_NUMBER, /* Packet list item number */
56 COL_CLS_TIME, /* Command line-specified time (default relative) */
57 COL_REL_TIME, /* Relative time */
58 COL_ABS_TIME, /* Absolute time */
59 COL_ABS_DATE_TIME, /* Absolute date and time */
60 COL_DELTA_TIME, /* Delta time */
61 COL_DEF_SRC, /* Source address */
62 COL_RES_SRC, /* Resolved source */
63 COL_UNRES_SRC, /* Unresolved source */
64 COL_DEF_DL_SRC, /* Data link layer source address */
65 COL_RES_DL_SRC, /* Resolved DL source */
66 COL_UNRES_DL_SRC, /* Unresolved DL source */
67 COL_DEF_NET_SRC, /* Network layer source address */
68 COL_RES_NET_SRC, /* Resolved net source */
69 COL_UNRES_NET_SRC, /* Unresolved net source */
70 COL_DEF_DST, /* Destination address */
71 COL_RES_DST, /* Resolved dest */
72 COL_UNRES_DST, /* Unresolved dest */
73 COL_DEF_DL_DST, /* Data link layer dest address */
74 COL_RES_DL_DST, /* Resolved DL dest */
75 COL_UNRES_DL_DST, /* Unresolved DL dest */
76 COL_DEF_NET_DST, /* Network layer dest address */
77 COL_RES_NET_DST, /* Resolved net dest */
78 COL_UNRES_NET_DST, /* Unresolved net dest */
79 COL_DEF_SRC_PORT, /* Source port */
80 COL_RES_SRC_PORT, /* Resolved source port */
81 COL_UNRES_SRC_PORT, /* Unresolved source port */
82 COL_DEF_DST_PORT, /* Destination port */
83 COL_RES_DST_PORT, /* Resolved dest port */
84 COL_UNRES_DST_PORT, /* Unresolved dest port */
85 COL_PROTOCOL, /* Protocol */
86 COL_INFO, /* Description */
87 COL_PACKET_LENGTH, /* Packet length in bytes */
88 COL_CUMULATIVE_BYTES, /* Cumulative number of bytes */
89 COL_OXID, /* Fibre Channel OXID */
90 COL_RXID, /* Fibre Channel RXID */
91 COL_IF_DIR, /* FW-1 monitor interface/direction */
92 COL_CIRCUIT_ID, /* Circuit ID */
93 COL_SRCIDX, /* Src port idx - Cisco MDS-specific */
94 COL_DSTIDX, /* Dst port idx - Cisco MDS-specific */
95 COL_VSAN, /* VSAN - Cisco MDS-specific */
96 COL_TX_RATE, /* IEEE 802.11 - TX rate in Mbps */
97 COL_RSSI, /* IEEE 802.11 - received signal strength */
98 COL_HPUX_SUBSYS, /* HP-UX Nettl Subsystem */
99 COL_HPUX_DEVID, /* HP-UX Nettl Device ID */
100 COL_DCE_CALL, /* DCE/RPC call id OR datagram sequence number */
101 NUM_COL_FMTS /* Should always be last */
104 #endif /* __COLUMN_INFO_H__ */