diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-02-15 19:44:16 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-02-15 19:44:16 +0000 |
commit | 0b6b3937abfbeaf9c01e6923c57f3cfbeaf9b787 (patch) | |
tree | ed5f7e2f78c45a16aabd673d65b67782d42f56fa /file.c | |
parent | f75ef6be38cefb716847393da2bd2d9532ea4d3f (diff) |
Make it possible to get inforamtion from the read SHB to the one to write out.
svn path=/trunk/; revision=41032
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -3786,8 +3786,12 @@ cf_save(capture_file *cf, const char *fname, packet_range_t *range, guint save_f /* Either we're filtering packets, or we're saving in a different format; we can't do that by copying or moving the capture file, we have to do it by writing the packets out in Wiretap. */ - pdh = wtap_dump_open(fname, save_format, cf->lnk_t, cf->snap, - compressed, &err); + + wtapng_section_t *shb_hdr; + + shb_hdr = wtap_file_get_shb_info(cf->wth); + pdh = wtap_dump_open_ng(fname, save_format, cf->lnk_t, cf->snap, + compressed, shb_hdr, &err); if (pdh == NULL) { cf_open_failure_alert_box(fname, err, NULL, TRUE, save_format); goto fail; |