IMF: preserve carrying protocol (e.g. SMTP, POP, IMAP) in protocol column

Change-Id: I8331040bbc9866878e74ad4c5f6b986dd94603fc
Reviewed-on: https://code.wireshark.org/review/23381
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Martin Mathieson 2017-09-03 20:50:40 +01:00 committed by Anders Broman
parent a2b084f6c5
commit 8bd04c8be3
1 changed files with 4 additions and 0 deletions

View File

@ -752,7 +752,11 @@ dissect_imf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
eo_info->subject_data = "";
}
/* Want to preserve existing protocol name and show that it is carrying IMF */
col_append_str(pinfo->cinfo, COL_PROTOCOL, "|");
col_set_fence(pinfo->cinfo, COL_PROTOCOL);
col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME);
col_clear(pinfo->cinfo, COL_INFO);
item = proto_tree_add_item(tree, proto_imf, tvb, 0, -1, ENC_NA);