aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-08-07 00:43:13 +0000
committerTim Potter <tpot@samba.org>2002-08-07 00:43:13 +0000
commitf7ead78827f4496fdd5de7c916a0cb189c21bfa4 (patch)
tree69c3214d8f127f97be3fb2d86a0fec18e15fd4af
parentfc7030bc24c1a8e7f4af996a133b754d5367f788 (diff)
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
-rw-r--r--packet-nbns.c14
1 files changed, 13 insertions, 1 deletions
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 <guy@alum.mit.edu>
*
- * $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 <gerald@ethereal.com>
@@ -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: