Ethereal-users: [Ethereal-users] Dissector Question

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

From: "Parks, Chauni" <chauni.parks@xxxxxxxx>
Date: Thu, 13 Feb 2003 18:04:38 -0500
Title: Dissector Question

Hello,

I'm in the process of writing a dissector for our homegrown middleware messages. I am new at coding, so this has been a challenge. I am having a problem capturing the correct destination ip address, however I am able to capture the src ip address. I used the following:

proto_add_tree_item(mtm_tree, hf_mtm_src_ip, offset + 16, 4, FALSE) . So I assuming that it's capturing the ip address that other dissectors are using. Basically, I'm not providing any value to the header field. I attempted to do the same with the destination ip and I am getting all 0's and or a broadcast ip(255.255.255.255). How can I go about capturing the destination ip, and not having to calculate a value.

thanks
Chauni
********************************************************
Chaunita J. Parks      
Lockheed Martin NE&SS Manassas, VA 20110