diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-01-03 00:08:40 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-01-03 00:08:40 +0000 |
commit | 4aee782dfa150094a0ca3a215cb231f350df1e39 (patch) | |
tree | 1b7e48ba4c225cbb74ca2927a57d32f9392dc660 /epan | |
parent | 8dadc16642ca581e30c871bca9c409ca30859d30 (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.c | 5 |
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); |