diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-03-11 20:19:20 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-03-11 20:19:20 +0000 |
commit | 297ed538fc77cf282f17fba412fcad815fae6feb (patch) | |
tree | f6716cc00b05bcf51304de46a56f524428ac2463 | |
parent | db279bee85755d739d5d457869390978a4d74d69 (diff) | |
download | wireshark-297ed538fc77cf282f17fba412fcad815fae6feb.tar.gz |
mark parser error messages as Ethereal generated
svn path=/trunk/; revision=17593
-rw-r--r-- | epan/dissectors/packet-snmp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index 4599299fd7..6680548ca7 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -686,16 +686,18 @@ dissect_snmp_parse_error(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, const char *field_name, int ret) { const char *errstr; + proto_item *item; errstr = asn1_err_to_str(ret); if (check_col(pinfo->cinfo, COL_INFO)) { col_add_fstr(pinfo->cinfo, COL_INFO, - "ERROR: Couldn't parse %s: %s", field_name, errstr); + "[ERROR: Couldn't parse %s: %s]", field_name, errstr); } if (tree != NULL) { - proto_tree_add_text(tree, tvb, offset, 0, + item = proto_tree_add_text(tree, tvb, offset, 0, "ERROR: Couldn't parse %s: %s", field_name, errstr); + PROTO_ITEM_SET_GENERATED(item); call_dissector(data_handle, tvb_new_subset(tvb, offset, -1, -1), pinfo, tree); } |