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

Wireshark-users: [Wireshark-users] Wireshark Lua question.

From: "Morita, Bill" <Bill.Morita@xxxxxxxxxx>
Date: Mon, 5 Oct 2009 13:07:01 -0700

Hello,

 

I am new to this mailing list.

 

I am seeking help in how to access the source and destination IP from a

  TCP packet in a LUA dissector of a protocol that uses TCP for transport.

   

Based on the documentation in the Wireshark users guide, I attempted to

  access the information using pinfo.ip_src and pinfo.ip_dst.

Both values came back as nil.

 

Based on these results I am guessing that I need to access the pinfo for TCP

  rather than that for my protocol.

 

I am clueless on how to access the TCP pinfo.

 

Can someone help point me in the correct direction for getting the TCP pinfo ?

 

Thanks in advance.

 

---------------

Bill Morita

Bill.Morita@xxxxxxxxxx