This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

process traffic with Lua

0

Hi, I'm writing a program with Lua processing the captured data in real time. I need to process data collected at the end of each minute (I collect the data for a minute or any other suitable period and at the end of the period I will process the data collected withen this peroid only and start collecting the data for the next period) I'm afraid of losing data in the time between processing data and starting collecting data again in the new period,is it possible to happen? is there any hint can be given to make sure that all data are captured and processed carefully?
Also, I'm in need for a piece of code written in Lua that can check any octect in the IP address. Appreciating any help from everyone Regards

asked 12 Feb '12, 23:05

Leena's gravatar image

Leena
51171821
accept rate: 0%

Also, I'm in need for a piece of code written in Lua that can check any octect in the IP address.

I think you should ask that in a new question; not in this post.

(13 Feb '12, 20:16) helloworld

Thanks SYNbit for your answer, but I need the time of collecting to start processing also, just a part of the process will be at the time end

(14 Feb '12, 01:34) Leena

One Answer:

1

Since you kind of post-process each minute any way, I would say your best bet would be to use dumpcap with a duration limit of 1 minute. That will create files of one-minute intervals which you can then process individually.

answered 13 Feb '12, 02:57

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%