summaryrefslogtreecommitdiff
path: root/packet-netbios.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-03 00:24:40 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-03 00:24:40 +0000
commit3d7691d43286e38b4011a8f19c5abf69c87eac9d (patch)
tree1c347671aee4355eb6a90cf5483f5c4f8518da63 /packet-netbios.h
parentf9a1fea17cf070118b0ba4661720c4e3eea1007f (diff)
downloadwireshark-3d7691d43286e38b4011a8f19c5abf69c87eac9d.tar.gz
Add a bunch more NetBIOS name types.
That makes the space of name types even more sparse; use "val_to_str()" to decode them, rather than an indexed table. Make a "process_netbios_name()" routine that shows non-printable characters in NetBIOS names as <XX>, where "XX" is the value of the character in hex (the way Network Monitor does), and have "get_netbios_name()" use it (NetBIOS-over-TCP will be made to use it in the future). When displaying NetBIOS names, include the name type character at the end, in angle brackets, the way Network Monitor does (show it in hex even if it *is* printable - 0x20 is 0x20, not "space", in that context). svn path=/trunk/; revision=628
Diffstat (limited to 'packet-netbios.h')
-rw-r--r--packet-netbios.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/packet-netbios.h b/packet-netbios.h
index f9cd1c1161..1cca017d7e 100644
--- a/packet-netbios.h
+++ b/packet-netbios.h
@@ -5,7 +5,7 @@
*
* derived from the packet-nbns.c
*
- * $Id: packet-netbios.h,v 1.1 1999/09/02 23:17:57 guy Exp $
+ * $Id: packet-netbios.h,v 1.2 1999/09/03 00:24:40 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -26,6 +26,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+
+/* Length of NetBIOS names */
+#define NETBIOS_NAME_LEN 16
+
+extern int process_netbios_name(const u_char *name_ptr, char *name_ret);
+extern guint get_netbios_name(const u_char *data_ptr, int offset,
+ char *name_ret);
extern void netbios_add_name( char* label, const u_char *pd, int offset,
int nb_offset, proto_tree *tree);