Browse Source

changes in hm_dissector

priyadharsan 4 months ago
parent
commit
d6a9821c26
2 changed files with 9 additions and 9 deletions
  1. 1 1
      Dissector/hm_dissector.lua
  2. 8 8
      Dissector/tc_tm_protocols.lua

+ 1 - 1
Dissector/hm_dissector.lua

@@ -89,7 +89,7 @@ TC_TM_PROTOCOL.fields = { f_sub_mod_id, f_Queue_id, f_num_of_instance, f_Health_
          end
        end  
      
-     local array = {data1, data2, data3}
+     local array = {submodule_id, queue_id, num_of_instance}
      
      return array
 

+ 8 - 8
Dissector/tc_tm_protocols.lua

@@ -234,7 +234,7 @@ end
               
                  require("hm_dissector")
 
-                data = HM_dissector(buffer, pinfo, tree, TC_TM_PROTOCOL, offset)
+                data = HM_TC_dissector(buffer, pinfo, tree, TC_TM_PROTOCOL, offset)
                 offset = offset + tc_len   
               else
 	              for i=0,tc_len - 1 do
@@ -438,12 +438,12 @@ function TM_dissector(buffer, pinfo, tree)  -- OBC to GS
       				require("hm_dissector")
         			array = HM_TM_dissector(buffer, pinfo, tree, TC_TM_PROTOCOL, add, tm_len)
         			add = add + tm_len
-			end
-			if tm_id == 815  then
- 				require("bcon")
+			      end
+ 			      if tm_id == 815  then
+ 				      require("bcon")
         			bcon_dissector(buffer, pinfo, tree, TC_TM_PROTOCOL, add, tm_len)
         			add = add + tm_len
-			end      
+			      end      
       else
         for i=0,magic-1 do
 	        subtree:add(f_tm_data, buffer(add, 1):le_uint())
@@ -499,12 +499,12 @@ function TM_dissector(buffer, pinfo, tree)  -- OBC to GS
     	info_display= {buffer(11, 2):le_uint(),buffer(7, 4):le_uint() ,tm_id, string, array[2], array[3]} --- for info display in wireshark
 
 	 
-	pinfo.cols.info ="Seq_no = " ..info_display[1] .." TS = " ..info_display[2].." TM ID = "..info_display[3].." Module = "..info_display[4].." Queue id = "..info_display[5].." Number of instance = "..info_display[6] -- for info display in wireshark
+	pinfo.cols.info ="Seq_no = " ..info_display[1].." TS = " ..info_display[2].." TM ID = "..info_display[3].." Module = "..info_display[4].." Queue id = "..info_display[5].." Number of instance = "..info_display[6] -- for info display in wireshark
     else
         info_display= {buffer(11, 2):le_uint(),buffer(7, 4):le_uint() ,tm_id} --- for info display in wireshark
-
+    
 	 
-	pinfo.cols.info ="Seq_no = " ..info_display[1] .." TS = " ..info_display[2].." TM ID = "..info_display[3] -- for info display in wireshark
+	pinfo.cols.info ="Seq_no = " ..info_display[1].." TS = " ..info_display[2].." TM ID = "..info_display[3] -- for info display in wireshark
     end
     -- Check if the buffer contains enough data for the expected total length
    --if buffer:len() < 38 + buffer(21, 2):uint() then