aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap_opttypes.h
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-02-09 13:40:59 -0800
committerGuy Harris <gharris@sonic.net>2021-02-09 22:32:57 +0000
commit09684644ee676078e593acbcce2c3467239a9778 (patch)
treec2da722b0bf232cd0cfd07a987d891780b005b72 /wiretap/wtap_opttypes.h
parentd67b856d62fc8340c4584ce40bedb7c7ba1794f2 (diff)
wiretap: clean up WTAP_BLOCK_ names.
Remove NG from the names - it adds nothing. Don't use the abbreviations for pcapng block names, spell out what the block does (e.g. "WTAP_BLOCK_DECRYPTION_SECRETS" rather than "WTAP_BLOCK_DSB"), to make it more obvious what the block does. Spell out some other abbreviations. Add WTAP_BLOCK_PACKET for future use for packet blocks; there's no need to distinguish between the Enhanced Packet Block, the Simple Packet Block, and the deprecated Packet Block here.
Diffstat (limited to 'wiretap/wtap_opttypes.h')
-rw-r--r--wiretap/wtap_opttypes.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/wiretap/wtap_opttypes.h b/wiretap/wtap_opttypes.h
index d2e4a39f10..252e1718c1 100644
--- a/wiretap/wtap_opttypes.h
+++ b/wiretap/wtap_opttypes.h
@@ -126,14 +126,20 @@ typedef struct wtap_block *wtap_block_t;
/*
* Currently supported blocks; these are not the pcapng block type values
- * for them, they're identifiers used internally.
+ * for them, they're identifiers used internally, and more than one
+ * pcapng block type may use a given block type.
+ *
+ * WTAP_BLOCK_PACKET (which corresponds to the Enhanced Packet Block,
+ * the Simple Packet Block, and the deprecated Packet Block) is not
+ * currently used; it's reserved for future use.
*/
typedef enum {
- WTAP_BLOCK_NG_SECTION = 0,
- WTAP_BLOCK_IF_DESCR,
- WTAP_BLOCK_NG_NRB,
- WTAP_BLOCK_IF_STATS,
- WTAP_BLOCK_DSB,
+ WTAP_BLOCK_SECTION = 0,
+ WTAP_BLOCK_IF_DESCRIPTION,
+ WTAP_BLOCK_NAME_RESOLUTION,
+ WTAP_BLOCK_IF_STATISTICS,
+ WTAP_BLOCK_DECRYPTION_SECRETS,
+ WTAP_BLOCK_PACKET,
WTAP_BLOCK_END_OF_LIST
} wtap_block_type_t;