Ethereal-dev: [Ethereal-dev] need help with writing plugins that makes connection between pack

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ravid Gabbay <ravid@xxxxxxxxxxxx>
Date: Thu, 20 Apr 2006 10:08:09 +0300
Hi,
I'm trying to write a plugin for my purposes, and as I understand, when a packet is visited again, the plugin is called again and all the work needs to be done again. why is that? can that be avoided, if nothing will be changed from the initial visit?

my problem is that my plugin assumes that packet n will be dissected right after packet n-1, so that in the pluging I can save in static variables some info from the n-1 packet. and since the plugin is called again when the packet is revisited, the n may not always be after n-1. something that will solve my problem is a way to keep packets's info (that was set during the first dissection of the packet) valid and readabe in the other dissections of the packet. is there a way to do that?

Thanks
Ravid