aboutsummaryrefslogtreecommitdiffstats
path: root/epan/frame_data.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-09-10 16:49:36 -0700
committerGerald Combs <gerald@wireshark.org>2018-09-26 21:31:13 +0000
commit123bcb0362a21ee1b498328e0be7fcad2a14f133 (patch)
tree761846e3f76363fa57f57edd158d04cbc42fd06d /epan/frame_data.c
parent56086e20b0c7de7eddb8db7901ad760a9139900b (diff)
Make systemd journal entries events.
Treat systemd journal entries filetype-specific events instead of packets. Add support for reading and writing systemd journal entries to pcapng. Note that pcapng IDBs should be optional. Add support for REC_TYPE_FT_SPECIFIC_EVENT where needed. Change-Id: Ided999b1732108f480c6c75323a0769a9d9ef09f Reviewed-on: https://code.wireshark.org/review/29611 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/frame_data.c')
-rw-r--r--epan/frame_data.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/frame_data.c b/epan/frame_data.c
index 4d95c07c8c..4cbb60f802 100644
--- a/epan/frame_data.c
+++ b/epan/frame_data.c
@@ -179,8 +179,9 @@ frame_data_init(frame_data *fdata, guint32 num, const wtap_rec *rec,
/*
* XXX
*/
- fdata->pkt_len = 0;
- fdata->cap_len = 0;
+ fdata->pkt_len = rec->rec_header.ft_specific_header.record_len;
+ fdata->cum_bytes = cum_bytes + rec->rec_header.ft_specific_header.record_len;
+ fdata->cap_len = rec->rec_header.ft_specific_header.record_len;
break;
case REC_TYPE_SYSCALL: