summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-06 21:51:35 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-06 21:51:35 +0000
commit028d20e90e4d686a603569865def01a74bf244d3 (patch)
tree18191df27ccd426371ce2bc5d1627649453c0af8
parentnot usefull (diff)
added fancy output to lua
-rw-r--r--wireshark-lua/satp.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/wireshark-lua/satp.lua b/wireshark-lua/satp.lua
index e10cdba..d6a8b76 100644
--- a/wireshark-lua/satp.lua
+++ b/wireshark-lua/satp.lua
@@ -7,7 +7,9 @@ do
-- create a function to dissect it
function satp_proto.dissector(buffer,pinfo,tree)
pinfo.cols.protocol = "SATP"
- local subtree = tree:add(satp_proto,buffer(),"SATP Protocol Data")
+
+ local subtree = tree:add(satp_proto,buffer(),"SATP, Sender Id: " .. buffer(4,2):uint() .. ", Mux: " .. buffer(6,2):uint() .. ", SeqNr: " .. buffer(0,4):uint())
+
subtree:add(buffer(0,4),"Sequence Number: " .. buffer(0,4):uint())
subtree:add(buffer(4,2),"Sender ID: " .. buffer(4,2):uint())
subtree:add(buffer(6,2),"Mux: " .. buffer(6,2):uint())