summaryrefslogtreecommitdiff
path: root/mergecap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-05-09 05:18:49 +0000
committerGuy Harris <guy@alum.mit.edu>2014-05-09 05:21:01 +0000
commita1b1c8bed54b1576e4f0e9e7f583844a12d142bf (patch)
treefcadd72c61f9d936451163e83cc1be843073f3b4 /mergecap.c
parenta651f3e5edb2f148a0e5f495b5cba0e7fa43e002 (diff)
downloadwireshark-a1b1c8bed54b1576e4f0e9e7f583844a12d142bf.tar.gz
Revert "Refactor Wiretap"
This reverts commit 1abeb277f5e6bd27fbaebfecc8184e37ba9d008a. This isn't building, and looks as if it requires significant work to fix. Change-Id: I622b1bb243e353e874883a302ab419532b7601f2 Reviewed-on: https://code.wireshark.org/review/1568 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'mergecap.c')
-rw-r--r--mergecap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mergecap.c b/mergecap.c
index 14ecca8e22..a9c1ef9e08 100644
--- a/mergecap.c
+++ b/mergecap.c
@@ -225,7 +225,7 @@ main(int argc, char *argv[])
merge_in_file_t *in_files = NULL, *in_file;
int i;
struct wtap_pkthdr *phdr, snap_phdr;
- wftap_dumper *pdh;
+ wtap_dumper *pdh;
int open_err, read_err = 0, write_err, close_err;
gchar *err_info;
int err_fileno;
@@ -333,7 +333,7 @@ main(int argc, char *argv[])
if (verbose) {
for (i = 0; i < in_file_count; i++)
fprintf(stderr, "mergecap: %s is type %s.\n", argv[optind + i],
- wtap_file_type_subtype_string(wftap_file_type_subtype(in_files[i].wfth)));
+ wtap_file_type_subtype_string(wtap_file_type_subtype(in_files[i].wth)));
}
if (snaplen == 0) {
@@ -357,9 +357,9 @@ main(int argc, char *argv[])
*/
int first_frame_type, this_frame_type;
- first_frame_type = wftap_file_encap(in_files[0].wfth);
+ first_frame_type = wtap_file_encap(in_files[0].wth);
for (i = 1; i < in_file_count; i++) {
- this_frame_type = wftap_file_encap(in_files[i].wfth);
+ this_frame_type = wtap_file_encap(in_files[i].wth);
if (first_frame_type != this_frame_type) {
fprintf(stderr, "mergecap: multiple frame encapsulation types detected\n");
fprintf(stderr, " defaulting to WTAP_ENCAP_PER_PACKET\n");
@@ -452,14 +452,14 @@ main(int argc, char *argv[])
/* We simply write it, perhaps after truncating it; we could do other
* things, like modify it. */
- phdr = wtap_phdr(in_file->wfth);
+ phdr = wtap_phdr(in_file->wth);
if (snaplen != 0 && phdr->caplen > snaplen) {
snap_phdr = *phdr;
snap_phdr.caplen = snaplen;
phdr = &snap_phdr;
}
- if (!wtap_dump(pdh, phdr, wftap_buf_ptr(in_file->wfth), &write_err)) {
+ if (!wtap_dump(pdh, phdr, wtap_buf_ptr(in_file->wth), &write_err)) {
got_write_error = TRUE;
break;
}
@@ -467,7 +467,7 @@ main(int argc, char *argv[])
merge_close_in_files(in_file_count, in_files);
if (!got_write_error) {
- if (!wftap_dump_close(pdh, &write_err))
+ if (!wtap_dump_close(pdh, &write_err))
got_write_error = TRUE;
} else {
/*
@@ -476,7 +476,7 @@ main(int argc, char *argv[])
*
* Don't overwrite the earlier write error.
*/
- (void)wftap_dump_close(pdh, &close_err);
+ (void)wtap_dump_close(pdh, &close_err);
}
if (got_read_error) {