Note in comments that the dct2000_file_externals_t structure is used for

more than just dumping, indicate what stuff is used for dumping, and
note that it probably shouldn't be used for that (one should not have to
have a Catapult 2000 input file in order to write a Catapult 2000 output
file).

svn path=/trunk/; revision=30719
This commit is contained in:
Guy Harris 2009-10-26 19:20:50 +00:00
parent 6d6fc060cd
commit ce6bcff318
1 changed files with 13 additions and 6 deletions

View File

@ -73,9 +73,21 @@ typedef struct
/*******************************************************************/
/* Information stored external to a file (wtap) needed for dumping */
/* Information stored external to a file (wtap) needed for reading and dumping */
typedef struct dct2000_file_externals
{
/* Remember the time at the start of capture */
time_t start_secs;
guint32 start_usecs;
/*
* The following information is needed only for dumping.
*
* XXX - Wiretap is not *supposed* to require that a packet being
* dumped come from a file of the same type that you currently have
* open; this should be fixed.
*/
/* Buffer to hold first line, including magic and format number */
gchar firstline[MAX_FIRST_LINE_LENGTH];
gint firstline_length;
@ -84,13 +96,8 @@ typedef struct dct2000_file_externals
gchar secondline[MAX_TIMESTAMP_LINE_LENGTH];
gint secondline_length;
/* Remember the time at the start of capture */
time_t start_secs;
guint32 start_usecs;
/* Hash table to store text prefix data part of displayed packets.
Records (file offset -> line_prefix_info_t)
N.B. This is only needed for dumping
*/
GHashTable *packet_prefix_table;
} dct2000_file_externals_t;