Ethereal-dev: Re: [ethereal-dev] Need IP address & port info

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: Tue, 15 Feb 2000 14:01:25 -0800 (PST)
> Is the IP information available in a higher level dissector ?

Yes.

> Would it be possible to store the
> IP addresses and ports in a global variable so higher dissectors can get to
> them ?

It's so possible that it's already been done.

Check out the "pi" global variable, which is a "packet_info" structure;
it has source and destination addresses in the "src" and "dst" structure
members, and source and destination port numbers in "srcport" and
"destport".