summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2012-12-22 20:38:08 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2012-12-22 20:38:08 +0000
commit6af6ce5ee02423d1b27c338b5e2c10df87f5d460 (patch)
treef92bf5f44bf19a98ff1725428606e26753847719 /file.c
parent1f2b8a904c527be21f40857c0aaf90f0f54f34b3 (diff)
downloadwireshark-6af6ce5ee02423d1b27c338b5e2c10df87f5d460.tar.gz
Add support for writing the packet block flags for pcapng.
While there, do some minor cleanup. svn path=/trunk/; revision=46699
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.c b/file.c
index d0daf37918..f762a17dad 100644
--- a/file.c
+++ b/file.c
@@ -3920,6 +3920,8 @@ save_packet(capture_file *cf _U_, frame_data *fdata,
hdr.presence_flags |= WTAP_HAS_TS;
if (fdata->flags.has_if_id)
hdr.presence_flags |= WTAP_HAS_INTERFACE_ID;
+ if (fdata->flags.has_pack_flags)
+ hdr.presence_flags |= WTAP_HAS_PACK_FLAGS;
hdr.ts.secs = fdata->abs_ts.secs;
hdr.ts.nsecs = fdata->abs_ts.nsecs;
hdr.caplen = fdata->cap_len;
@@ -3928,6 +3930,7 @@ save_packet(capture_file *cf _U_, frame_data *fdata,
/* pcapng */
hdr.interface_id = fdata->interface_id; /* identifier of the interface. */
/* options */
+ hdr.pack_flags = fdata->pack_flags;
hdr.opt_comment = fdata->opt_comment; /* NULL if not available */
/* pseudo */
hdr.pseudo_header = phdr->pseudo_header;