diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-04-15 19:56:15 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-04-15 19:56:15 +0000 |
commit | d9fcc8e05a334dca9b6e9986692037177d65569c (patch) | |
tree | d092666e93c8c9bea0d1846da7bb3764995fbf12 /print.c | |
parent | 77f9354bf76f2bb62b928299d93f3916901336f8 (diff) |
added print output option, to suppress dissection completely
(for raw packet hexdump)
svn path=/trunk/; revision=10607
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* print.c * Routines for printing packet analysis trees. * - * $Id: print.c,v 1.72 2004/04/15 19:05:42 ulfl Exp $ + * $Id: print.c,v 1.73 2004/04/15 19:56:15 ulfl Exp $ * * Gilbert Ramirez <gram@alumni.rice.edu> * @@ -178,7 +178,7 @@ void proto_tree_print_node(proto_node *node, gpointer data) if (!fi->visible) return; - /* was a free format label produced? */ + /* was a free format label produced? */ if (fi->rep) { label_ptr = fi->rep->representation; } @@ -187,7 +187,8 @@ void proto_tree_print_node(proto_node *node, gpointer data) proto_item_fill_label(fi, label_str); } - print_line(pdata->fh, pdata->level, pdata->format, label_ptr); + if (pdata->print_dissections != print_dissections_none) + print_line(pdata->fh, pdata->level, pdata->format, label_ptr); /* If it's uninterpreted data, dump it (unless our caller will be printing the entire packet in hex). */ |