aboutsummaryrefslogtreecommitdiffstats
path: root/file_packet_provider.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-08-10 19:08:40 -0700
committerGuy Harris <guy@alum.mit.edu>2018-08-11 02:09:15 +0000
commit08cbe559b3c82c4e152c3b8df2f6f6f1fe3d51a0 (patch)
tree69312aaa10e79c42055b5ae69d803b97e6cf34ca /file_packet_provider.c
parentf4ac2635647d389db83b369ed72054627ddab1af (diff)
Add support for reading and writing the new if_hardware IDB option.
Support for writing it in live captures will come later; this change, but not that one, will be backported so older versions of Wireshark won't remove it when writing a file out. Change-Id: I9fd4067991acfd2d18c03d0a373ce8337a9f3a76 Reviewed-on: https://code.wireshark.org/review/29064 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'file_packet_provider.c')
-rw-r--r--file_packet_provider.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file_packet_provider.c b/file_packet_provider.c
index 3a0531388a..826e275a49 100644
--- a/file_packet_provider.c
+++ b/file_packet_provider.c
@@ -42,6 +42,8 @@ cap_file_provider_get_interface_name(struct packet_provider_data *prov, guint32
return interface_name;
if (wtap_block_get_string_option_value(wtapng_if_descr, OPT_IDB_DESCR, &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;
}
return "unknown";
}