From b9960e08d8e607ef86d16fe44d587b1675533d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 25 May 2009 21:10:22 +0000 Subject: [PATCH] Added an expert info for "IP port reused". svn path=/trunk/; revision=28472 --- epan/dissectors/packet-afp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-afp.c b/epan/dissectors/packet-afp.c index 8f47d7953d..ea71a489f4 100644 --- a/epan/dissectors/packet-afp.c +++ b/epan/dissectors/packet-afp.c @@ -38,6 +38,7 @@ #include #include #include +#include #include "packet-afp.h" @@ -4161,7 +4162,7 @@ dissect_afp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } if (!aspinfo->reply) { - proto_tree_add_uint(afp_tree, hf_afp_command, tvb,offset, 1, afp_command); + ti = proto_tree_add_uint(afp_tree, hf_afp_command, tvb,offset, 1, afp_command); if (afp_command != tvb_get_guint8(tvb, offset)) { /* we have the same conversation for different connections eg: @@ -4173,6 +4174,8 @@ dissect_afp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (col_info) { col_set_str(pinfo->cinfo, COL_INFO, "[Error!IP port reused, you need to split the capture file]"); + expert_add_info_format(pinfo, ti, PI_SEQUENCE, PI_WARN, + "IP port reused, you need to split the capture file"); return; } }