From a6c88aa19667504034bd6045b31d5a563ee696e6 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 13 Nov 2000 03:52:16 +0000 Subject: - Fix the hex pane offsets for hf_netb_local_ses_no, hf_netb_remote_ses_no, and hf_netb_data2. - Change hf_netb_local_ses_no and hf_netb_remote_ses_no from FT_UINT16 to FT_UINT8. - Add hf_netb_data2 to hf_netb. svn path=/trunk/; revision=2626 --- packet-netbios.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'packet-netbios.c') diff --git a/packet-netbios.c b/packet-netbios.c index 45ccf6575b..c242f028d4 100644 --- a/packet-netbios.c +++ b/packet-netbios.c @@ -5,7 +5,7 @@ * * derived from the packet-nbns.c * - * $Id: packet-netbios.c,v 1.24 2000/11/11 06:47:07 guy Exp $ + * $Id: packet-netbios.c,v 1.25 2000/11/13 03:52:16 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -469,7 +469,7 @@ static void nb_local_session( tvbuff_t *tvb, int offset, proto_tree *tree) {/* add the local session to tree */ - proto_tree_add_uint( tree, hf_netb_local_ses_no, tvb, offset, 1, + proto_tree_add_uint( tree, hf_netb_local_ses_no, tvb, offset + NB_LOCAL_SES, 1, tvb_get_guint8( tvb, offset + NB_LOCAL_SES)); } @@ -479,7 +479,7 @@ static void nb_remote_session( tvbuff_t *tvb, int offset, proto_tree *tree) {/* add the remote session to tree */ - proto_tree_add_uint( tree, hf_netb_remote_ses_no, tvb, offset, 1, + proto_tree_add_uint( tree, hf_netb_remote_ses_no, tvb, offset + NB_RMT_SES, 1, tvb_get_guint8( tvb, offset + NB_RMT_SES)); } @@ -493,7 +493,7 @@ static void nb_data2(char *label, int len, tvbuff_t *tvb, int offset, int value = (len == 1 ? tvb_get_guint8( tvb, offset + NB_DATA2) : tvb_get_letohs( tvb, offset + NB_DATA2)); - proto_tree_add_uint( tree, hf_netb_data2, tvb, offset, 1, value); + proto_tree_add_uint( tree, hf_netb_data2, tvb, offset + NB_DATA2, 2, value); } @@ -1149,11 +1149,15 @@ void proto_register_netbios(void) "" }}, { &hf_netb_local_ses_no, - { "Local Session No. ", "netbios.local_session", FT_UINT16, BASE_HEX, NULL, 0x0, + { "Local Session No. ", "netbios.local_session", FT_UINT8, BASE_HEX, NULL, 0x0, "" }}, { &hf_netb_remote_ses_no, - { "Remote Session No. ", "netbios.remote_session", FT_UINT16, BASE_HEX, NULL, 0x0, + { "Remote Session No. ", "netbios.remote_session", FT_UINT8, BASE_HEX, NULL, 0x0, + "" }}, + + { &hf_netb_data2, + { "DATA2 value ", "netbios.data2", FT_UINT16, BASE_HEX, NULL, 0x0, "" }}, }; -- cgit v1.2.3