summaryrefslogtreecommitdiff
path: root/wiretap/5views.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-04-12 00:44:44 +0000
committerGuy Harris <guy@alum.mit.edu>2011-04-12 00:44:44 +0000
commit2b8ebd389bf1d706d6922940e69b89ff038bf9df (patch)
tree598ee6dae4cbe95a2d65910302f56df5c2dbf832 /wiretap/5views.c
parent793d683575966d990ce2e819bac5e1c214c6a9fa (diff)
downloadwireshark-2b8ebd389bf1d706d6922940e69b89ff038bf9df.tar.gz
"This file format can't be written to a pipe" and "this file format
can't be saved in compress form" are both equivalent to "this file file format requires seeking when writing it". Change the "can compress" Boolean in the file format table to "writing requires seeking", give all the entries the proper value, and do the checks for attempting to write a file format to a pipe or write it in compressed format to common code. This means we don't need to pass the "can't seek" flag to the dump open routines. svn path=/trunk/; revision=36575
Diffstat (limited to 'wiretap/5views.c')
-rw-r--r--wiretap/5views.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/wiretap/5views.c b/wiretap/5views.c
index 8cfff5e15d..5352a7be4c 100644
--- a/wiretap/5views.c
+++ b/wiretap/5views.c
@@ -377,18 +377,10 @@ int _5views_dump_can_write_encap(int encap)
/* Returns TRUE on success, FALSE on failure; sets "*err" to an error code on
failure */
-gboolean _5views_dump_open(wtap_dumper *wdh, gboolean cant_seek, int *err)
+gboolean _5views_dump_open(wtap_dumper *wdh, int *err)
{
_5views_dump_t *_5views;
- /* This is a 5Views file. We can't fill in some fields in the
- header until all the packets have been written, so we can't
- write to a pipe. */
- if (cant_seek) {
- *err = WTAP_ERR_CANT_WRITE_TO_PIPE;
- return FALSE;
- }
-
/* We can't fill in all the fields in the file header, as we
haven't yet written any packets. As we'll have to rewrite
the header when we've written out all the packets, we just