Ethereal-dev: Re: [ethereal-dev] Picking up info along the way and making it available later

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

From: "Gilbert Ramirez Jr." <gram@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 27 Mar 1999 14:48:51 -0600 (CST)
As Richard Sharpe said:
> 
> Perhaps I need to build a list of name value pairs? Then I could add just
> what is needed along the way. packet-ip could add SIP=a.b.c.d, DIP=e.f.g.h.
> packet-tcp and packet-udp could add SPort=xyz, DPort=qrs. And other
> routines could add what they felt was necessary.

The NCP dissect code would be able to take advantage of this. I need IPX to
pass certain values down to the NCP layer. Right now I pass them through
global variables. yuck!  Would your list be permanent? That is, would you
keep a list in memory for every packet? Or would you free the memory after
the packet is dissected? IPX/NCP only needs them temporarily, during the
packet-dissection. It uses the variables to make a key into the NCP
hashtable.

--gilbert

-- 
Gilbert Ramirez                Voice:  +1 210 358 4032
Technical Services             Fax:    +1 210 358 1122
University Health System       San Antonio, Texas, USA