diff options
author | Dr. Lars Völker <lars.voelker@technica-engineering.de> | 2022-08-04 09:53:13 +0200 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2022-08-21 01:02:48 +0000 |
commit | 3167105e2f6e70b94ae1b6b5d7f2f29f8d988cbd (patch) | |
tree | 5236fb458466a0017492113dd83d3cae75c75117 /wiretap/blf.h | |
parent | 9c3dee4bb46e1435715be83828df6d3c6d3fa010 (diff) |
BLF: Adding ObjectHeader format 2 and 3
This patch adds the format 2 and 3 of the ObjectHeader, so that the blf
code does not stop reading the file, when one of these header formats is
present.
Minor refactoring was necessary.
Diffstat (limited to 'wiretap/blf.h')
-rw-r--r-- | wiretap/blf.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/wiretap/blf.h b/wiretap/blf.h index b88fa8d8f0..76203d41f2 100644 --- a/wiretap/blf.h +++ b/wiretap/blf.h @@ -23,6 +23,9 @@ wtap_open_return_val blf_open(wtap *wth, int *err, gchar **err_info); #define BLF_HEADER_TYPE_DEFAULT 1 +#define BLF_HEADER_TYPE_2 2 +#define BLF_HEADER_TYPE_3 3 + #define BLF_COMPRESSION_NONE 0 #define BLF_COMPRESSION_ZLIB 2 @@ -84,6 +87,27 @@ typedef struct blf_logobjectheader { guint64 object_timestamp; } blf_logobjectheader_t; +#define BLF_TS_STATUS_ORIG_TS_VALID 0x01 +#define BLF_TS_STATUS_SW_TS 0x02 +#define BLF_TS_STATUS_PROTO_SPECIFIC 0x10 + +typedef struct blf_logobjectheader2 { + guint32 flags; + guint8 timestamp_status; + guint8 res1; + guint16 object_version; + guint64 object_timestamp; + guint64 original_timestamp; +} blf_logobjectheader2_t; + +typedef struct blf_logobjectheader3 { + guint32 flags; + guint16 static_size; + guint16 object_version; + guint64 object_timestamp; +} blf_logobjectheader3_t; + + #define BLF_DIR_RX 0 #define BLF_DIR_TX 1 #define BLF_DIR_TX_RQ 2 |