|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Holds a single extracted field value from a sinsp syscall event. More...
#include <sinsp-span.h>
Public Attributes | ||
| union { | ||
| uint8_t * bytes | ||
| const char * str | ||
| int32_t i32 | ||
| int64_t i64 | ||
| uint32_t u32 | ||
| uint64_t u64 | ||
| double dbl | ||
| bool boolean | ||
| char small_str [8] | ||
| uint8_t small_bytes [8] | ||
| } | res | |
| Extracted value; the active member depends on the field type. | ||
| int | res_len | |
| uint16_t | field_idx | |
Holds a single extracted field value from a sinsp syscall event.
The active union member is determined by the field's ftenum type. res_len and field_idx are output parameters populated by the extraction routine.
| bool sinsp_field_extract_t::boolean |
Boolean value.
| uint8_t* sinsp_field_extract_t::bytes |
Raw byte buffer (FT_BYTES / FT_UINT_BYTES).
| double sinsp_field_extract_t::dbl |
Double-precision float.
| uint16_t sinsp_field_extract_t::field_idx |
[out] Index of the matched field, populated for syscall events.
| int32_t sinsp_field_extract_t::i32 |
Signed 32-bit integer.
| int64_t sinsp_field_extract_t::i64 |
Signed 64-bit integer.
| int sinsp_field_extract_t::res_len |
[out] Byte length of the extracted value (meaningful for bytes/string types).
| uint8_t sinsp_field_extract_t::small_bytes[8] |
Inline byte array for short values (≤ SFE_SMALL_BUF_SIZE bytes).
| char sinsp_field_extract_t::small_str[8] |
Inline string for short values (≤ SFE_SMALL_BUF_SIZE bytes).
| const char* sinsp_field_extract_t::str |
NUL-terminated string pointer (FT_STRING).
| uint32_t sinsp_field_extract_t::u32 |
Unsigned 32-bit integer.
| uint64_t sinsp_field_extract_t::u64 |
Unsigned 64-bit integer.