diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-11-06 22:45:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-11-06 22:45:28 +0000 |
commit | 0543fbd427461af29f8899f652ef6cedaa84b6f5 (patch) | |
tree | f02f5e4844da923eff6e73e7d83d93404ee67444 /wiretap/netmon.c | |
parent | de247df4e5aec096390e43ea52f56e28a7794959 (diff) |
From Scott Emberley: support for writing Network Instruments Observer
files.
svn path=/trunk/; revision=8900
Diffstat (limited to 'wiretap/netmon.c')
-rw-r--r-- | wiretap/netmon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c index c5a2e96504..897ca5d669 100644 --- a/wiretap/netmon.c +++ b/wiretap/netmon.c @@ -1,6 +1,6 @@ /* netmon.c * - * $Id: netmon.c,v 1.65 2003/10/01 07:11:48 guy Exp $ + * $Id: netmon.c,v 1.66 2003/11/06 22:45:28 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -619,9 +619,6 @@ gboolean netmon_dump_open(wtap_dumper *wdh, gboolean cant_seek, int *err) return FALSE; } - wdh->subtype_write = netmon_dump; - wdh->subtype_close = netmon_dump_close; - /* 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 @@ -631,6 +628,9 @@ gboolean netmon_dump_open(wtap_dumper *wdh, gboolean cant_seek, int *err) return FALSE; } + wdh->subtype_write = netmon_dump; + wdh->subtype_close = netmon_dump_close; + wdh->dump.netmon = g_malloc(sizeof(netmon_dump_t)); wdh->dump.netmon->frame_table_offset = CAPTUREFILE_HEADER_SIZE; wdh->dump.netmon->got_first_record_time = FALSE; |