Ethereal-dev: Re: [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: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Mon, 28 Nov 2005 22:13:34 +0100
Stig Bjørlykke wrote:

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

Not as far as I know.

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).

Is the frame dissected twice, or is the dissector called twice because of the two appearances in this frame?

If I can reset a counter after dissecting this frame this counter can be used as "id".

Wouldn't this mess up the reassembling of the following frames?

BTW: do you have an example capture?

Regards, ULFL