diff options
author | Gerald Combs <gerald@wireshark.org> | 2023-09-12 18:26:52 -0700 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2023-09-28 05:40:58 +0000 |
commit | b261f2a7eba657b4b26ad4fe8ad4e3195a0f325c (patch) | |
tree | 2e32b8ae64619d5c49b1cfe2ec162b39211a0880 /wiretap/file_access.c | |
parent | bd07966d3a3579636f6ba0a30b76273694fda3b4 (diff) |
pcapng: Add Sysdig meta event types
Add support for Sysdig meta events. In file-pcapng.c, use the blocks
defined in pcapng_module.h and expand the block name list.
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r-- | wiretap/file_access.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c index e7834990f6..1aa5a53fe4 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -2377,6 +2377,8 @@ wtap_dump_init_dumper(int file_type_subtype, wtap_compression_type compression_t /* Set Decryption Secrets Blocks */ wdh->dsbs_initial = params->dsbs_initial; wdh->dsbs_growing = params->dsbs_growing; + /* Set Sysdig meta events */ + wdh->sysdig_mev_growing = params->sysdig_mev_growing; return wdh; } @@ -2749,6 +2751,18 @@ wtap_dump_discard_decryption_secrets(wtap_dumper *wdh) } } +void +wtap_dump_discard_sysdig_meta_events(wtap_dumper *wdh) +{ + /* As above for DSBs. */ + if (wdh->sysdig_mev_growing) { + /* + * Pretend we've written all of them. + */ + wdh->sysdig_mev_growing_written = wdh->sysdig_mev_growing->len; + } +} + /* internally open a file for writing (compressed or not) */ #ifdef HAVE_ZLIB static WFILE_T |