aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap_opttypes.h
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 /wiretap/wtap_opttypes.h
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 'wiretap/wtap_opttypes.h')
-rw-r--r--wiretap/wtap_opttypes.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/wiretap/wtap_opttypes.h b/wiretap/wtap_opttypes.h
index ade7079ad2..328cd60a3e 100644
--- a/wiretap/wtap_opttypes.h
+++ b/wiretap/wtap_opttypes.h
@@ -44,7 +44,9 @@ extern "C" {
*/
#define OPT_IDB_DESCR 3 /**< A UTF-8 string containing the description
* of the device used to capture data.
- * "Broadcom NetXtreme" / "First Ethernet Interface"
+ * "Wi-Fi" / "Local Area Connection" /
+ * "Wireless Network Connection" /
+ * "First Ethernet Interface"
*/
#define OPT_IDB_IP4ADDR 4 /**< XXX: if_IPv4addr Interface network address and netmask.
* This option can be repeated multiple times within the same Interface Description Block
@@ -98,6 +100,14 @@ extern "C" {
* option if_tzone. TODO: won't a if_tsoffset_low for fractional
* second offsets be useful for highly syncronized capture systems?
*/
+#define OPT_IDB_HARDWARE 15 /**< A UTF-8 string containing the description
+ * of the hardware of the device used
+ * to capture data.
+ * "Broadcom NetXtreme" /
+ * "Intel(R) PRO/1000 MT Network Connection" /
+ * "NETGEAR WNA1000Mv2 N150 Wireless USB Micro Adapter"
+ */
+
#define OPT_NS_DNSNAME 2
#define OPT_NS_DNSIP4ADDR 3