Wireshark mailing list archives
Re: How to show ip address by Lua in wireshark
From: Beth <beth.tridium () gmail com>
Date: Tue, 24 Nov 2009 15:01:07 -0500
In Lua, userdata is a different type from a string. The %s tells Wireshark to expect a string, but the ipv4() method returns a specialized format that is not necessarily printable. To print the address in the display tree, you need to find a way to convert those bytes to a string, or else find a different datatree:add() method that accepts the ipv4 format data. (If you can find the latter, that would be the better solution.) BTW, you may need to upgrade to a newer version than 1.1.1 to get all the latest Lua functionality. b.
___________________________________________________________________________ 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:
- How to show ip address by Lua in wireshark chenhui zhang (Nov 24)
- Re: How to show ip address by Lua in wireshark Beth (Nov 24)