I have installed wireshark version 1.10.6 in Ubuntu(14.04) And I have written sample lua file which i am trying to run in windows and ubuntu both.in windows7 it is working fine but in ubuntu it is creating problem see the picture my lua code is below
windows_wireshark ubuntu_wireshark I am using Lua 5.2 asked 09 Apr '15, 01:07 ankit edited 10 Apr '15, 14:06 Guy Harris ♦♦ |
One Answer:
I'm no Lua-for-Wireshark expert, but: I'd say that somewhere between 1.10 and 1.12 the append_text() API was modified to return the tree item. So if you want to use that exact code it'll only work in 1.12+. But, I think you probably don't really want/need to anyway. I think this should work in both versions:
answered 09 Apr '15, 10:46 JeffMorriss ♦ thanks jeffMorriss for looking into my problem. But here my problem is after append_text in parent tree it is giving me error for e.g in above same code and one more thing, according to you 1.12 is latest one for ubuntu. but when i am doing apt-get install wireshark after apt-get update. it is telling me that you have already latest version.... (09 Apr '15, 21:34) ankit You are using Ubuntu 14.04, the latest version of Wireshark for that release is 1.10.6. To get a newer version of Wireshark that has the functionality in the Lua API you require, you'll either have to; compile your own from the Wireshark sources (can build any version), move to a newer version of Ubuntu (at least utopic, 14.10) which will get you 1.12.1, or use the Wireshark development ppa which again gives you 1.12.1. (10 Apr '15, 02:26) grahamb ♦ Oh, sorry, I meant to provide another response (thanks, Graham, for answering the version problem). Why are you trying to add an item to the thing which is returned by append_text()? I think you should be able to do it as I had: create the top-level protocol item, append text to it, and then add an item the top-level protocol item ('t' in my sample code). There's no need for the 'st' variable in your (latest) code. (23 Apr '15, 14:59) JeffMorriss ♦ |
What version of Wireshark are you running on Windows? Is it also 1.10.6?
I am using 1.12.4 latest one in windows and when i did apt-get install wireshark command in ubuntu. It installed 1.10.6 wireshark version