In a ChangeHosts request, display 4-byte Internet addresses as IPv4
[obnox/wireshark/wip.git] / packet-smb-pipe.c
index c3f55c7b17fb48ff95b286123da00fe4378f4046..5cc10204655fadcf2f7d80cd189f756e1bf6e679 100644 (file)
@@ -8,7 +8,7 @@ XXX  Fixme : shouldnt show [malformed frame] for long packets
  * significant rewrite to tvbuffify the dissector, Ronnie Sahlberg and
  * Guy Harris 2001
  *
- * $Id: packet-smb-pipe.c,v 1.69 2002/02/18 01:08:36 guy Exp $
+ * $Id: packet-smb-pipe.c,v 1.72 2002/03/27 04:27:03 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -3102,7 +3102,7 @@ proto_register_pipe_lanman(void)
                /* XXX - we should have a value_string table for this */
                { &hf_country_code,
                        { "Country Code", "lanman.country_code", FT_UINT16, BASE_DEC,
-                       NULL, 0, "LANMAN Country Code", HFILL }},
+                       VALS(ms_country_codes), 0, "LANMAN Country Code", HFILL }},
 
                { &hf_workstations,
                        { "Workstations", "lanman.workstations", FT_STRING, BASE_NONE,
@@ -3157,7 +3157,7 @@ proto_register_pipe_lanman(void)
 
 static heur_dissector_list_t smb_transact_heur_subdissector_list;
 
-static gboolean
+gboolean
 dissect_pipe_dcerpc(tvbuff_t *d_tvb, packet_info *pinfo, proto_tree *parent_tree,
     proto_tree *tree, guint32 fid)
 {
@@ -3203,11 +3203,13 @@ dissect_pipe_dcerpc(tvbuff_t *d_tvb, packet_info *pinfo, proto_tree *parent_tree
                        d_tvb=new_tvb;
 
                        /* list what segments we have */
-                       it = proto_tree_add_text(tree, d_tvb, 0, 0, "Fragments");
+                       it = proto_tree_add_text(tree, d_tvb, 0, -1, "Fragments");
                        tr = proto_item_add_subtree(it, ett_smb_pipe_fragments);
                        for(fd=fd_head->next;fd;fd=fd->next){
-                               proto_tree_add_text(tr, d_tvb, 0, 0, "Frame:%u Data:%u-%u",
-                                           fd->frame, fd->offset, fd->offset+fd->len-1);
+                               proto_tree_add_text(tr, d_tvb, fd->offset, fd->len,
+                                           "Frame:%u Data:%u-%u",
+                                           fd->frame, fd->offset,
+                                           fd->offset+fd->len-1);
                        }
                }
        }