Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: Re: [Ethereal-dev] Retrieving the IP source address of a message

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 24 Jul 2003 11:10:23 -0700
On Thu, Jul 24, 2003 at 12:24:53PM -0400, Gilles Galipeau wrote:
> I am currently implementing a dissector that decode the data in a TCP V4
> message and I need some help on how to retrieve the source IP address of a
> message.

pinfo->net_src is an "address" structure that contains the network-layer
source address; pinfo->src should also contain that if you're dissecting
a protocol running atop TCP.