aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-01-03 00:08:40 +0000
committerGerald Combs <gerald@wireshark.org>2005-01-03 00:08:40 +0000
commit4aee782dfa150094a0ca3a215cb231f350df1e39 (patch)
tree1b7e48ba4c225cbb74ca2927a57d32f9392dc660 /epan
parent8dadc16642ca581e30c871bca9c409ca30859d30 (diff)
If the ICMP code is present, put it in the Info column.
svn path=/trunk/; revision=12934
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c
index fd09ea9d13..6f72b879aa 100644
--- a/epan/dissectors/packet-ip.c
+++ b/epan/dissectors/packet-ip.c
@@ -1404,8 +1404,11 @@ dissect_icmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
break;
}
- if (check_col(pinfo->cinfo, COL_INFO))
+ if (check_col(pinfo->cinfo, COL_INFO)) {
col_add_str(pinfo->cinfo, COL_INFO, type_str);
+ if (type_str[0] != '\0')
+ col_append_fstr(pinfo->cinfo, COL_INFO, " %s", code_str);
+ }
if (tree) {
length = tvb_length(tvb);