diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-09-12 06:11:51 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-09-12 06:11:51 +0000 |
commit | 55dff94484c61dce121553db3e0b0a709b7fa89b (patch) | |
tree | 54d4019a09a818e5bb4040336fd2a36bd0e9a2f3 /print.c | |
parent | 0041a76bfcd5098595c7991001b09665a36943cd (diff) | |
download | wireshark-55dff94484c61dce121553db3e0b0a709b7fa89b.tar.gz wireshark-55dff94484c61dce121553db3e0b0a709b7fa89b.tar.bz2 wireshark-55dff94484c61dce121553db3e0b0a709b7fa89b.zip |
Add summary-vs-detail radio buttons to the print dialog box; detail
prints the protocol tree, and summary prints the fields in the summary
clist, with a header line at the beginning of the printout.
Print only packets selected by the current packet filter.
Just have "ARP" and "RARP" in the "Protocol" field for ARP packets;
whether it's a request or a reply can be seen in the "Info" field.
Add to the "Frame" section of the protocol tree the time between the
current packet and the previous displayed packet, and the packet number.
Have FT_RELATIVE_TIME fields be a "struct timeval", and display them as
seconds and fractional seconds (we didn't have any fields of that type,
and that type of time fits the delta time above).
Add an FT_DOUBLE field type (although we don't yet have anything using
it).
svn path=/trunk/; revision=666
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -1,7 +1,7 @@ /* print.c * Routines for printing packet analysis trees. * - * $Id: print.c,v 1.18 1999/09/09 02:42:25 gram Exp $ + * $Id: print.c,v 1.19 1999/09/12 06:11:37 guy Exp $ * * Gilbert Ramirez <gram@verdict.uthscsa.edu> * @@ -92,7 +92,7 @@ void print_finale(FILE *fh) print_ps_finale(fh); } -void proto_tree_print(int frame_num, GNode *protocol_tree, +void proto_tree_print(gboolean print_one, GNode *protocol_tree, const u_char *pd, frame_data *fd, FILE *fh) { print_data data; @@ -107,22 +107,12 @@ void proto_tree_print(int frame_num, GNode *protocol_tree, and I'll have to spend some time learning enough about PostScript to figure it out, so, for now, we only print multiple frames as text. */ - if (prefs.pr_format == PR_FMT_TEXT || frame_num != -1) { - if (frame_num != -1) - fprintf(fh, "Frame %d:\n\n", frame_num); + if (prefs.pr_format == PR_FMT_TEXT || !print_one) { g_node_children_foreach((GNode*) protocol_tree, G_TRAVERSE_ALL, proto_tree_print_node_text, &data); - if (frame_num != -1) - fprintf(fh, "\n"); } else { - if (frame_num != -1) { - fprintf(fh, "0 (Frame %d:) putline\n", frame_num); - fprintf(fh, "0 () putline\n"); - } g_node_children_foreach((GNode*) protocol_tree, G_TRAVERSE_ALL, proto_tree_print_node_ps, &data); - if (frame_num != -1) - fprintf(fh, "0 () putline\n"); } } |