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 <[email protected]> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:[email protected]?subject=unsubscribe
