added some options and enhancements to the print output:
[obnox/wireshark/wip.git] / packet-smb-browse.c
index 26bba10705b423a4854a4db4066e163efe3eb309..d5c78339e3f398724a611fd139c9c37ba8aa5a5f 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for SMB Browser packet dissection
  * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
  *
- * $Id: packet-smb-browse.c,v 1.34 2003/11/19 03:53:32 guy Exp $
+ * $Id: packet-smb-browse.c,v 1.36 2004/01/19 20:10:36 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -37,7 +37,6 @@
 #include <ctype.h>
 #include <epan/packet.h>
 #include "smb.h"
-#include "alignment.h"
 
 #include "packet-smb-browse.h"
 #include "packet-dcerpc.h"
@@ -464,7 +463,7 @@ dissect_election_criterion(tvbuff_t *tvb, proto_tree *parent_tree, int offset)
  */
 int
 dissect_smb_server_type_flags(tvbuff_t *tvb, int offset, packet_info *pinfo,
-                             proto_tree *parent_tree, char *drep, 
+                             proto_tree *parent_tree, guint8 *drep, 
                              gboolean infoflag)
 {
        proto_tree *tree = NULL;
@@ -571,8 +570,8 @@ dissect_mailslot_browse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
        proto_tree *tree = NULL;
        proto_item *item = NULL;
        guint32 periodicity;
-       char host_name[17];
-       guint namelen;
+       guint8 host_name[17];
+       gint namelen;
        guint8 server_count, reset_cmd;
        int i;
        guint32 uptime;
@@ -681,7 +680,7 @@ dissect_mailslot_browse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
                break;
        }
        case BROWSE_REQUEST_ANNOUNCE: {
-               char *computer_name;
+               guint8 *computer_name;
 
                /* unused/unknown flags */
                proto_tree_add_item(tree, hf_unused_flags,
@@ -820,7 +819,7 @@ dissect_mailslot_lanman(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
        proto_tree *tree = NULL;
        proto_item *item = NULL;
        guint32 periodicity;
-       const char *host_name;
+       const guint8 *host_name;
        guint namelen;
 
        if (check_col(pinfo->cinfo, COL_PROTOCOL)) {