Ethereal-dev: [Ethereal-dev] Update to the NDPS dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Greg Morris" <gmorris@xxxxxxxxxx>
Date: Wed, 11 Jan 2006 11:30:55 +0100
The attached patch fixes a couple of bind replies to report proper session id.
 
Please apply,
Greg
Index: packet-ndps.c
===================================================================
--- packet-ndps.c	(revision 16998)
+++ packet-ndps.c	(working copy)
@@ -4626,7 +4626,7 @@
             foffset = qualifiedname(tvb, ndps_tree, foffset);
             break;
         case 0x00000003:    /* Unbind */
-            proto_tree_add_item(ndps_tree, hf_ndps_object, tvb, foffset, 
+            proto_tree_add_item(ndps_tree, hf_ndps_session, tvb, foffset, 
             4, FALSE);
             break;
         case 0x00000004:    /* Print */
@@ -7070,7 +7070,7 @@
         switch(ndps_func)
         {
         case 0x00000001:    /* Bind PSM */
-            proto_tree_add_item(ndps_tree, hf_ndps_oid, tvb, foffset, 4, FALSE);
+            proto_tree_add_item(ndps_tree, hf_ndps_session, tvb, foffset, 4, FALSE);
             foffset += 4;
             if(error_val != 0)
             {
@@ -7088,7 +7088,7 @@
             proto_item_set_end(aitem, tvb, foffset);
             break;
         case 0x00000002:    /* Bind PA */
-            proto_tree_add_item(ndps_tree, hf_ndps_oid, tvb, foffset, 4, FALSE);
+            proto_tree_add_item(ndps_tree, hf_ndps_session, tvb, foffset, 4, FALSE);
             foffset += 4;
             if(error_val != 0)
             {