Ethereal-dev: Re: [Ethereal-dev] Mobile IPv6

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

Date Prev Thread Prev
From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 31 Jan 2003 14:31:11 -0800
On Fri, Jan 31, 2003 at 05:42:16PM +0200, Teemu Rinta-aho wrote:
> I am currently updating the Mobile IPv6 support into ethereal.
> It works quite good, and I am planning to contribute the
> patch in the near future. But I have one problem which I
> am not able to solve myself. When ethereal dissects an
> IPv6 packet which carries the Mobile IPv6 protocol, the
> pinfo->cinfo is NULL already in the dissect_ipv6,

There is no guarantee that "pinfo->cinfo" isn't null; it might, for
example, be null when evaluating a read filter, or when printing the
detailed dissection of the packets to a file, or when searching for a
packet with control-F/Edit->Find, or when a packet is clicked on.

> and in packet-mip6.c I can't set the information in the columns.

In the cases where it's null, you can't change the columns; the columns
are set when a pass is made through the packets to set up the list of
packets in the topmost pane of the window.

During that pass, pinfo->cinfo should not be null; are you certain that
you've seen a case where it's null when, for example, the file is first
being read in?