diff options
author | Guy Harris <gharris@sonic.net> | 2021-02-13 00:03:51 -0800 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-02-13 01:25:39 -0800 |
commit | 24acef08857f97928db5f6de8a91370dd404f0da (patch) | |
tree | 5cd2a8bdb8c341be189c305989830f553ce46f51 /tshark.c | |
parent | 28dbff322be940edab90e25a2bc1ded3d6d0ad8b (diff) |
wiretap: file types have a name and a description.
The "short name" is really just the name, used to look it up. The
"name" is really a description intended solely for human consumption.
Rename the fields, and the functions that access them, to match.
The "description" maintained by Lua for file type handlers is used
*only* for one debugging message; we should probably just eliminate it.
Call it an "internal description" for now.
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -298,8 +298,8 @@ list_capture_types(void) { fprintf(stderr, "tshark: The available capture file types for the \"-F\" flag are:\n"); for (i = 0; i < WTAP_NUM_FILE_TYPES_SUBTYPES; i++) { if (wtap_dump_can_open(i)) { - captypes[i].sstr = wtap_file_type_subtype_short_string(i); - captypes[i].lstr = wtap_file_type_subtype_string(i); + captypes[i].sstr = wtap_file_type_subtype_name(i); + captypes[i].lstr = wtap_file_type_subtype_description(i); list = g_slist_insert_sorted(list, &captypes[i], string_compare); } } @@ -1195,7 +1195,7 @@ main(int argc, char *argv[]) } break; case 'F': - out_file_type = wtap_short_string_to_file_type_subtype(optarg); + out_file_type = wtap_name_to_file_type_subtype(optarg); if (out_file_type < 0) { cmdarg_err("\"%s\" isn't a valid capture file type", optarg); list_capture_types(); @@ -3743,7 +3743,7 @@ process_cap_file(capture_file *cf, char *save_file, int out_file_type, if (pdh && out_file_name_res) { if (!wtap_dump_set_addrinfo_list(pdh, get_addrinfo_list())) { cmdarg_err("The file format \"%s\" doesn't support name resolution information.", - wtap_file_type_subtype_short_string(out_file_type)); + wtap_file_type_subtype_name(out_file_type)); } } /* Now close the capture file. */ |