Ask Your Question
0

LUA dissector - combine data from 2 UDP packets, display issue

asked 2020-07-14 16:32:18 +0000

BMWE gravatar image

updated 2020-07-16 06:07:57 +0000

Hello,

Following my previous question on the issue, every time I select a packet that is based on combining data from previous packet and current packet, I'm getting an error on the packet details on the custom protocol section.

Only when I select previous packet and then the current packet, I can see the dissection as I expect and without any error

How to solve the issue?

(Unfortunately, I can't provide the screenshots as it is in my private network).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-01 10:04:40 +0000

TalH gravatar image

The wireshark dissector runs every time the packet need to be dissected (so every time you click the packet). Use pinfo.visted to check if the packet was visited or manage your memory and variable with your own system (depends on what you are trying to do, you can create a hash table using pinfo.number as the keys for example).

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: 2020-07-14 16:32:18 +0000

Seen: 5,945 times

Last updated: Mar 01 '21