Browse Source

changes in uhf dissector

priyadharsan 3 months ago
parent
commit
27c12754e7
2 changed files with 45 additions and 8 deletions
  1. 8 8
      Dissector/uhf_dissector.lua
  2. 37 0
      new.patch

+ 8 - 8
Dissector/uhf_dissector.lua

@@ -56,16 +56,16 @@ for i = 0, data3 - 1 do
     --offset = offset + 8
     local subtree1 = subtree:add(TC_TM_PROTOCOL, buffer(), "Instance "..i)
 	
-    local a = buffer(offset, 1):le_uint()
-    subtree1:add(f_cnt_hk_str, a)
-    offset = offset + 1
+    --local a = buffer(offset, 1):le_uint()
+    --subtree1:add(f_cnt_hk_str, a)
+    --offset = offset + 1
     
     local b = buffer(offset, 4):le_uint()
     subtree1:add(f_timestamp, b)
-    offset = offset + 4
-    b = buffer(offset, 4):le_uint()
-    subtree1:add(f_timestamp, b)
-    offset = offset + 4
+    offset = offset + 8
+    --b = buffer(offset, 4):le_uint()
+    --subtree1:add(f_timestamp, b)
+    --offset = offset + 4
 
     -- dissect uptime
     local uptime = buffer(offset, 4):le_uint()
@@ -147,7 +147,7 @@ for i = 0, data3 - 1 do
     -- dissect reserved0
     local reserved0 = buffer(offset, 4):le_uint()
     subtree1:add(f_reserved0, reserved0)
-    offset = offset + 4
+    offset = offset + 9
 
     -- dissect customo
     --local customo = buffer(offset, 4):le_uint()

+ 37 - 0
new.patch

@@ -0,0 +1,37 @@
+diff --git a/Dissector/uhf_dissector.lua b/Dissector/uhf_dissector.lua
+index 389b682..fb0acd0 100644
+--- a/Dissector/uhf_dissector.lua
++++ b/Dissector/uhf_dissector.lua
+@@ -56,16 +56,16 @@ for i = 0, data3 - 1 do
+     --offset = offset + 8
+     local subtree1 = subtree:add(TC_TM_PROTOCOL, buffer(), "Instance "..i)
+ 	
+-    local a = buffer(offset, 1):le_uint()
+-    subtree1:add(f_cnt_hk_str, a)
+-    offset = offset + 1
++    --local a = buffer(offset, 1):le_uint()
++    --subtree1:add(f_cnt_hk_str, a)
++    --offset = offset + 1
+     
+     local b = buffer(offset, 4):le_uint()
+     subtree1:add(f_timestamp, b)
+-    offset = offset + 4
+-    b = buffer(offset, 4):le_uint()
+-    subtree1:add(f_timestamp, b)
+-    offset = offset + 4
++    offset = offset + 8
++    --b = buffer(offset, 4):le_uint()
++    --subtree1:add(f_timestamp, b)
++    --offset = offset + 4
+ 
+     -- dissect uptime
+     local uptime = buffer(offset, 4):le_uint()
+@@ -147,7 +147,7 @@ for i = 0, data3 - 1 do
+     -- dissect reserved0
+     local reserved0 = buffer(offset, 4):le_uint()
+     subtree1:add(f_reserved0, reserved0)
+-    offset = offset + 4
++    offset = offset + 9
+ 
+     -- dissect customo
+     --local customo = buffer(offset, 4):le_uint()