From 08cbe559b3c82c4e152c3b8df2f6f6f1fe3d51a0 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 10 Aug 2018 19:08:40 -0700 Subject: 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 --- file_packet_provider.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'file_packet_provider.c') 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"; } -- cgit v1.2.3