ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] [Patch] SCSI persistent reserve in - service action

From: Patrick vd Lageweg <patrick@xxxxxxxxxxxx>
Date: Thu, 1 Feb 2007 11:26:03 +0100
Hi all,

In the PERSISTENT RESERVE IN command the service action is located on offset 0 and not 1.

	Patrick
Index: epan/dissectors/packet-scsi.c
===================================================================
--- epan/dissectors/packet-scsi.c	(revision 20666)
+++ epan/dissectors/packet-scsi.c	(working copy)
@@ -3038,7 +3038,7 @@
                                     "Vendor Unique = %u, NACA = %u, Link = %u",
                                     flags & 0xC0, flags & 0x4, flags & 0x1);
         /* We store the service action since we want to interpret the data */
-        cdata->itlq->flags = tvb_get_guint8 (tvb, offset+1);
+        cdata->itlq->flags = tvb_get_guint8 (tvb, offset);
     }
     else {
         if (cdata) {