aboutsummaryrefslogtreecommitdiffstats
path: root/column.c
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-07-22 16:03:52 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-07-22 16:03:52 +0000
commitcb4201d5eb6fb7aafcd45cc3c3890e5befa0a0b4 (patch)
tree2e924a52528a566866e1a210493a6ae640e1197a /column.c
parentab8cc12c839efa2333fdbf16d156392df37ad695 (diff)
Added "Packet Length in bytes" as an optional column.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@375 f5534014-38df-0310-8fa8-9805f1628bb7
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++;
}