diff options
author | Olivier Abad <oabad@noos.fr> | 1999-12-12 13:25:54 +0000 |
---|---|---|
committer | Olivier Abad <oabad@noos.fr> | 1999-12-12 13:25:54 +0000 |
commit | 8b339e902c7159cd75a8997a0df158444aaa4ee3 (patch) | |
tree | 61250b108de5a2161c1aabbced8983ce8261e2a2 | |
parent | 5bc8a989b9062f4034c8889c00cd59a774abf4d8 (diff) |
Copy the pseudo_header from frame_data to the wtap_pkthdr structure before
passing it to wtap_dump()
It allows to save correct "from_dce/from_dte" flags in ngsniffer_dump.
svn path=/trunk/; revision=1301
-rw-r--r-- | file.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.136 1999/12/09 20:41:24 oabad Exp $ + * $Id: file.c,v 1.137 1999/12/12 13:25:54 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -1741,6 +1741,7 @@ save_cap_file(char *fname, capture_file *cf, gboolean save_filtered, hdr.caplen = fd->cap_len; hdr.len = fd->pkt_len; hdr.pkt_encap = fd->lnk_t; + hdr.pseudo_header = fd->pseudo_header; wtap_seek_read(cf->cd_t, cf->fh, fd->file_off, pd, fd->cap_len); if (!wtap_dump(pdh, &hdr, pd, &err)) { |