Improve a comment.

Note that the WTAP_OPTTYPE_ values don't correspond to particular
options, they correspond to data types for options (some options
correspond to options with structured types defined in the pcapng
specification, but most correspond to generic types). I needed to remind
*myself* of that, so I'm adding it for the benefit of others.
This commit is contained in:
Guy Harris 2023-09-24 00:48:09 -07:00
parent dd78c2f08a
commit eb19d08413
1 changed files with 7 additions and 1 deletions

View File

@ -279,7 +279,13 @@ typedef struct wtapng_ft_specific_mandatory_s {
guint record_type; /* the type of record this is - file type-specific value */
} wtapng_ft_specific_mandatory_t;
/* Currently supported option types */
/*
* Currently supported option types. These are not option types
* in the sense that each one corresponds to a particular option,
* they are data types for the data of an option, so, for example,
* all options with a 32-bit unsigned integer value have the type
* WTAP_OPTTYPE_UINT32.
*/
typedef enum {
WTAP_OPTTYPE_UINT8,
WTAP_OPTTYPE_UINT32,