Ethereal-dev: [Ethereal-dev] Cleanup function for each frame

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

From: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Date: Mon, 28 Nov 2005 20:26:18 +0100
Hi.

Is it possible to register a cleanup function to be run before/after each frame is dissected?

I need something like this in COTP in the situation where the first COTP segment in a frame is the last of a fragmented block (the rest received in previous frames), and the second COTP segment is a non- fragmented block. The COTP length is 2, which means dst_ref is always 0 (used as "id" in the fragment functions), and the last COTP segment is messing up with the fragment reassembly (because the frame is dissected twice). If I can reset a counter after dissecting this frame this counter can be used as "id".

Any tips?


--
Stig Bjørlykke