aboutsummaryrefslogtreecommitdiffstats
path: root/column.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-07-22 16:03:52 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-07-22 16:03:52 +0000
commit4dcaf2d853d3cc33fff380b827a55475f753c0b2 (patch)
tree2e924a52528a566866e1a210493a6ae640e1197a /column.c
parent7e9230a0bd7f7f0d3dd5a1d1f08d3a43c16ba174 (diff)
Added "Packet Length in bytes" as an optional column.
svn path=/trunk/; revision=375
Diffstat (limited to 'column.c')
-rw-r--r--column.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/column.c b/column.c
index 87b6476c9e..783ed1e8ab 100644
--- a/column.c
+++ b/column.c
@@ -1,7 +1,7 @@
/* column.c
* Routines for handling column preferences
*
- * $Id: column.c,v 1.16 1999/07/13 03:08:03 gram Exp $
+ * $Id: column.c,v 1.17 1999/07/22 16:03:51 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -76,7 +76,7 @@ col_format_to_string(gint fmt) {
"%hs", "%rhs", "%uhs", "%ns", "%rns", "%uns", "%d",
"%rd", "%ud", "%hd", "%rhd", "%uhd", "%nd", "%rnd",
"%und", "%S", "%rS", "%uS", "%D", "%rD", "%uD", "%p",
- "%i" };
+ "%i", "%L" };
if (fmt < 0 || fmt > NUM_COL_FMTS)
return NULL;
@@ -102,7 +102,7 @@ col_format_desc(gint fmt) {
"Source port", "Src port (resolved)",
"Src port (unresolved)", "Destination port",
"Dest port (resolved)", "Dest port (unresolved)",
- "Protocol", "Information" };
+ "Protocol", "Information", "Packet length (bytes)" };
if (fmt < 0 || fmt > NUM_COL_FMTS)
return NULL;
@@ -246,6 +246,9 @@ get_column_format_from_str(gchar *str) {
case 'T':
time_off = TIME_DEL;
break;
+ case 'L':
+ return COL_PACKET_LENGTH;
+ break;
}
cptr++;
}