aboutsummaryrefslogtreecommitdiffstats
path: root/capinfos.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-01-09 13:21:10 -0800
committerGuy Harris <guy@alum.mit.edu>2019-01-09 21:21:56 +0000
commitfd93f5490c6a29d01e5cd11f14679641300469f9 (patch)
tree4f64fc24239fa7c1fe9b337c352624a69f30b0e6 /capinfos.c
parentc8f87206738f6cfe5328026addc6630b7525c4ad (diff)
Clarify the name and description for a link-layer encapsulation type.
What we were calling the "name" is actually a description to show to users; what were calling the "short name" is just the name to use on the command line. Rename some routines and structure members, and put the name first and description second in the table. Expand some descriptions to give more details (e.g., to be more than just a capitalized version of the name). Fix the CamelCase capitalization of InfiniBand. Change-Id: I060b8bd86573880efd0fab044401b449469563eb Reviewed-on: https://code.wireshark.org/review/31472 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/capinfos.c b/capinfos.c
index 9bdb961984..0b0e8ad4d1 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -576,7 +576,7 @@ print_stats(const gchar *filename, capture_info *cf_info)
/* Build printable strings for various stats */
file_type_string = wtap_file_type_subtype_string(cf_info->file_type);
- file_encap_string = wtap_encap_string(cf_info->file_encap);
+ file_encap_string = wtap_encap_description(cf_info->file_encap);
if (filename) printf ("File name: %s\n", filename);
if (cap_file_type) {
@@ -597,7 +597,7 @@ print_stats(const gchar *filename, capture_info *cf_info)
for (i=0; i<WTAP_NUM_ENCAP_TYPES; i++) {
if (cf_info->encap_counts[i] > 0)
printf(" %s (%d)\n",
- wtap_encap_string(i), cf_info->encap_counts[i]);
+ wtap_encap_description(i), cf_info->encap_counts[i]);
}
}
}
@@ -799,7 +799,7 @@ print_stats_table(const gchar *filename, capture_info *cf_info)
/* Build printable strings for various stats */
file_type_string = wtap_file_type_subtype_string(cf_info->file_type);
- file_encap_string = wtap_encap_string(cf_info->file_encap);
+ file_encap_string = wtap_encap_description(cf_info->file_encap);
if (filename) {
putquote();