aboutsummaryrefslogtreecommitdiffstats
path: root/file_packet_provider.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-07-13 23:48:19 -0700
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-07-14 06:55:12 +0000
commit7b0c4950a53beeb2d42d72cf683b1862a99f63ea (patch)
tree36093e5201eda4cbd70250922a3a45bc7d54c3e8 /file_packet_provider.c
parentb531a6aa61041647b7ba727b49d3622bee9e01e9 (diff)
wiretap: clean up option definitions a bit.
Spell out "DESCRIPTION" for the IDB description option, as it's spelled out in the pcapng spec. Put the #defines for various options in the same order as the block types for them are in the pcapng spec.
Diffstat (limited to 'file_packet_provider.c')
-rw-r--r--file_packet_provider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file_packet_provider.c b/file_packet_provider.c
index 147ab4eb2c..4fd768060a 100644
--- a/file_packet_provider.c
+++ b/file_packet_provider.c
@@ -40,7 +40,7 @@ cap_file_provider_get_interface_name(struct packet_provider_data *prov, guint32
if (wtapng_if_descr) {
if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_NAME, &interface_name) == WTAP_OPTTYPE_SUCCESS)
return interface_name;
- if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_DESCR, &interface_name) == WTAP_OPTTYPE_SUCCESS)
+ if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_DESCRIPTION, &interface_name) == WTAP_OPTTYPE_SUCCESS)
return interface_name;
if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_HARDWARE, &interface_name) == WTAP_OPTTYPE_SUCCESS)
return interface_name;
@@ -63,7 +63,7 @@ cap_file_provider_get_interface_description(struct packet_provider_data *prov, g
g_free(idb_info);
if (wtapng_if_descr) {
- if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_DESCR, &interface_name) == WTAP_OPTTYPE_SUCCESS)
+ if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_DESCRIPTION, &interface_name) == WTAP_OPTTYPE_SUCCESS)
return interface_name;
}
return NULL;