Ethereal-dev: Re: [Ethereal-dev] Conversation Question

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 13 Apr 2001 12:57:27 -0700 (PDT)
> Unfortunately, this is 
> all inside the data portion of the packet and I have the parsing 
> information inside the if(tree) block.  So, where's the problem?  Well, the 
> if(tree) block is skipped when the packets are decoded...so how can I tell 
> future UDP packets to dissect themselves as RTP packets if they're on a 
> certain port, if the packet hasn't been dissected yet?  Do I just have to 
> take out the if(tree) statement?

Yes.

Or, rather, you at least have to take the code that dissects the part of
the packet containing the UDP port information outside "if(tree)".