Ethereal-dev: Re: [Ethereal-dev] Message direction

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

From: Tomas Kukosa <tomas.kukosa@xxxxxxxxxxx>
Date: Fri, 22 Aug 2003 06:47:24 +0200
Michael Lum wrote:
> 
> I can think of 3 ways to pass the 'uplink/downlink' status
> to other dissectors further up the stack.
> 
> 1.  private_data pointer in the pinfo buffer
> 2.  global variable
> 3.  use "register_dissector_table()" twice
> 

The right place for this information is pinfo->p2p_dir.
Values are:
P2P_DIR_SENT - uplink (phone->system)
P2P_DIR_RECV - downlink (system->phone)

Regards,
 Tom