aboutsummaryrefslogtreecommitdiffstats
path: root/packet-netbios.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-03 00:24:40 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-03 00:24:40 +0000
commit68585540738f81a1f160fe8dc8a694c84e95671d (patch)
tree1c347671aee4355eb6a90cf5483f5c4f8518da63 /packet-netbios.h
parent3ceef727c4f4d419726d47c2f970e1de25e02f86 (diff)
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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@628 f5534014-38df-0310-8fa8-9805f1628bb7
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);