diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2006-09-27 09:48:42 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2006-09-27 09:48:42 +0000 |
commit | 9a47cb27c711c0c37ecb0ffbb97c1c3958e4173f (patch) | |
tree | 9774490f1c87ec2c90950fc601b2eaf09d7ce155 /print.c | |
parent | 10091ebdaafef73a3cc5e5b6cc8c12bc547641e7 (diff) | |
download | wireshark-9a47cb27c711c0c37ecb0ffbb97c1c3958e4173f.tar.gz wireshark-9a47cb27c711c0c37ecb0ffbb97c1c3958e4173f.tar.bz2 wireshark-9a47cb27c711c0c37ecb0ffbb97c1c3958e4173f.zip |
Fix PDML export problem for FT_NONE fields (bug 1110)
svn path=/trunk/; revision=19334
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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, |