aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index c1fbd13eb5..6747cb49ee 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1586,7 +1586,12 @@ main(int argc, char *argv[])
output_only_tables = g_hash_table_new (g_str_hash, g_str_equal);
for (ps = strtok (output_only, ","); ps; ps = strtok (NULL, ",")) {
- g_hash_table_insert(output_only_tables, (gpointer)ps, (gpointer)ps);
+ const char *name = ps;
+ header_field_info *hfi = proto_registrar_get_byalias(name);
+ if (hfi) {
+ name = hfi->abbrev;
+ }
+ g_hash_table_insert(output_only_tables, (gpointer)name, (gpointer)name);
}
}