From f7ead78827f4496fdd5de7c916a0cb189c21bfa4 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 7 Aug 2002 00:43:13 +0000 Subject: Display calling and called names in COL_INFO for session request. Display error string in COL_INFO for negative session response. svn path=/trunk/; revision=5961 --- packet-nbns.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packet-nbns.c b/packet-nbns.c index 717e26346e..284a15ece1 100644 --- a/packet-nbns.c +++ b/packet-nbns.c @@ -3,7 +3,7 @@ * to when it had only NBNS) * Guy Harris * - * $Id: packet-nbns.c,v 1.77 2002/08/02 23:35:54 jmayer Exp $ + * $Id: packet-nbns.c,v 1.78 2002/08/07 00:43:13 tpot Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -1467,12 +1467,18 @@ dissect_nbss_packet(tvbuff_t *tvb, int offset, packet_info *pinfo, "Called name", name, name_type); offset += len; + if (check_col(pinfo->cinfo, COL_INFO)) + col_append_fstr(pinfo->cinfo, COL_INFO, ", to %s ", name); + len = get_nbns_name(tvb, offset, offset, name, &name_type); if (tree) add_name_and_type(nbss_tree, tvb, offset, len, "Calling name", name, name_type); + if (check_col(pinfo->cinfo, COL_INFO)) + col_append_fstr(pinfo->cinfo, COL_INFO, "from %s", name); + break; case NEGATIVE_SESSION_RESPONSE: @@ -1481,6 +1487,12 @@ dissect_nbss_packet(tvbuff_t *tvb, int offset, packet_info *pinfo, "Error code: %s", val_to_str(tvb_get_guint8(tvb, offset), error_codes, "Unknown (%x)")); + + if (check_col(pinfo->cinfo, COL_INFO)) + col_append_fstr(pinfo->cinfo, COL_INFO, ", %s", + val_to_str(tvb_get_guint8(tvb, offset), + error_codes, "Unknown (%x)")); + break; case RETARGET_SESSION_RESPONSE: -- cgit v1.2.3