aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2006-09-27 09:48:42 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2006-09-27 09:48:42 +0000
commit9a47cb27c711c0c37ecb0ffbb97c1c3958e4173f (patch)
tree9774490f1c87ec2c90950fc601b2eaf09d7ce155 /print.c
parent10091ebdaafef73a3cc5e5b6cc8c12bc547641e7 (diff)
Fix PDML export problem for FT_NONE fields (bug 1110)
svn path=/trunk/; revision=19334
Diffstat (limited to 'print.c')
-rw-r--r--print.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/print.c b/print.c
index f0fdff8722..323ce2f75b 100644
--- a/print.c
+++ b/print.c
@@ -330,9 +330,15 @@ proto_tree_write_node_pdml(proto_node *node, gpointer data)
fprintf(pdata->fh, "\" pos=\"%d", fi->start);
/* fprintf(pdata->fh, "\" id=\"%d", fi->hfinfo->id);*/
- if (fi->hfinfo->type != FT_PROTOCOL) {
- /* Field */
-
+ /* show, value, and unmaskedvalue attributes */
+ switch (fi->hfinfo->type)
+ {
+ case FT_PROTOCOL:
+ break;
+ case FT_NONE:
+ fputs("\" show=\"\" value=\"\"", pdata->fh);
+ break;
+ default:
/* XXX - this is a hack until we can just call
* fvalue_to_string_repr() for *all* FT_* types. */
dfilter_string = proto_construct_dfilter_string(fi,