Wireshark mailing list archives

Re: How to print longs from Lua?


From: philippe alarcon <philippe.alarcon () live fr>
Date: Tue, 30 Mar 2010 21:06:01 +0200


Hello again,


Another solution could be to display the information byte by byte with a loop :


64bits_data = "Address (hex)   : "
for k=1, 8, 1 do
                                        64bits_data =  64bits_data .. string.format('%02X ',tvbuffer(b_offset,1):uint())
                                 end
64bits_data = 64bits_data .. " h"
               subtreeitem:add(tvbuffer(b_offset,8), 64bits_data)



Regards
Philippe


                                          
_________________________________________________________________
Découvrez comment SURFER DISCRETEMENT sur un site de rencontres !
http://clk.atdmt.com/FRM/go/206608211/direct/01/
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: