aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap_opttypes.h
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 /wiretap/wtap_opttypes.h
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 'wiretap/wtap_opttypes.h')
-rw-r--r--wiretap/wtap_opttypes.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/wiretap/wtap_opttypes.h b/wiretap/wtap_opttypes.h
index 249f6482ab..87a71e27ba 100644
--- a/wiretap/wtap_opttypes.h
+++ b/wiretap/wtap_opttypes.h
@@ -47,7 +47,7 @@ extern "C" {
* of the device used to capture data.
* "eth0" / "\Device\NPF_{AD1CE675-96D0-47C5-ADD0-2504B9126B68}"
*/
-#define OPT_IDB_DESCR 3 /**< A UTF-8 string containing the description
+#define OPT_IDB_DESCRIPTION 3 /**< A UTF-8 string containing the description
* of the device used to capture data.
* "Wi-Fi" / "Local Area Connection" /
* "Wireless Network Connection" /
@@ -114,6 +114,15 @@ extern "C" {
* "NETGEAR WNA1000Mv2 N150 Wireless USB Micro Adapter"
*/
+/*
+ * These are the flags for an EPB, but we use them for all WTAP_BLOCK_PACKET
+ */
+#define OPT_PKT_FLAGS 2
+#define OPT_PKT_HASH 3
+#define OPT_PKT_DROPCOUNT 4
+#define OPT_PKT_PACKETID 5
+#define OPT_PKT_QUEUE 6
+#define OPT_PKT_VERDICT 7
/* Name Resolution Block (NRB) */
#define OPT_NS_DNSNAME 2
@@ -129,16 +138,6 @@ extern "C" {
#define OPT_ISB_OSDROP 7
#define OPT_ISB_USRDELIV 8
-/*
- * These are the flags for an EPB, but we use them for all WTAP_BLOCK_PACKET
- */
-#define OPT_PKT_FLAGS 2
-#define OPT_PKT_HASH 3
-#define OPT_PKT_DROPCOUNT 4
-#define OPT_PKT_PACKETID 5
-#define OPT_PKT_QUEUE 6
-#define OPT_PKT_VERDICT 7
-
struct wtap_block;
typedef struct wtap_block *wtap_block_t;