diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2012-12-22 20:38:08 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2012-12-22 20:38:08 +0000 |
commit | 6af6ce5ee02423d1b27c338b5e2c10df87f5d460 (patch) | |
tree | f92bf5f44bf19a98ff1725428606e26753847719 /file.c | |
parent | 1f2b8a904c527be21f40857c0aaf90f0f54f34b3 (diff) | |
download | wireshark-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |