Ask Your Question
0

Can a packet be marked as a time reference from a Lua script?

asked 2019-10-01 14:01:13 +0000

Hatherol gravatar image

updated 2019-11-29 20:03:20 +0000

Guy Harris gravatar image

In Wireshark one can set a packet as time reference via Ctrl-T (EditSet/Unset Time Reference).

I would like to do the same from a Lua script, e.g. from a tap.

Is there a function available in Lua to do that? Preferably also usable in tshark.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2019-12-02 14:14:49 +0000

SYN-bit gravatar image

Another solution might be to add a new time field in your Lua script that follows the timestamps, but can be reset to zero on the frame(s) you want it to be reset on. After those frames, you only need to add the delta time to your own timestamp. Then add the new fields as a column and you are all set :-)

edit flag offensive delete link more
0

answered 2019-11-29 20:02:57 +0000

Guy Harris gravatar image

Is there a function available in Lua to do that?

Currently, no. You'd have to file an enhancement request on the Wireshark Bugzilla.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-10-01 14:01:13 +0000

Seen: 311 times

Last updated: Dec 02 '19