Hi, I'm writing a program with lua. I have data that organized in the following way: t= {i1{p1{,,,},p2{,,,},...pm{,,,}},i2{p1{,,,},p2{,,,},...pm{,,,}},...,in{p1{,,,},p2{,,,},...pm{,,,}}} (inner tables) In another way each group of data is indexed by two variables i&p,I am sure that the data is kept correctly but I want a way to print the data from their tables because I won't know the values of i and p to iterate over them or even the numbers n & m any body know how to do this with lua? asked 17 Feb '12, 19:24 Leena closed 25 Feb '12, 17:07 helloworld |
Unfortunately off topic. You've asked a general Lua programming question as opposed to a Wireshark Lua question. Skilled Lua developers at stackoverflow are waiting to answer your question. :-)
the program process data that coming from wireshark, the i is a source ip address and p is the port number and the data in the innermost table are destination ips
Ok, I see, but it's still off topic unless the data can only be printed with the help of Wireshark Lua, which isn't true in your case because the source IP is just a string, and the port number is just an integer. (Hint: you're looking to dump a Lua table...it's rather trivial to do...just Google it)
http://stackoverflow.com/questions/9339268/how-to-access-data-in-such-table