diff options
author | Christian Pointner <equinox@anytun.org> | 2008-02-06 21:51:35 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-02-06 21:51:35 +0000 |
commit | 028d20e90e4d686a603569865def01a74bf244d3 (patch) | |
tree | 18191df27ccd426371ce2bc5d1627649453c0af8 /wireshark-lua | |
parent | not usefull (diff) |
added fancy output to lua
Diffstat (limited to 'wireshark-lua')
-rw-r--r-- | wireshark-lua/satp.lua | 4 |
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()) |