Ethereal-users: [Ethereal-users] Re: [Ethereal-dev] XCEPT_GROUP_ETHEREAL error

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 30 Mar 2004 09:53:09 -0800
On Sun, Mar 28, 2004 at 03:16:07PM +0200, Lorand JAKAB wrote:
> Could it be because the size of "Mobility Options" is negative!??

Yes, which is a bug.

> Please, if someone can help me with a patch, I would be eternally
> greatful... :).

I've attached the patch with the fix that I just checked in.
Index: packet-mip6.c
===================================================================
RCS file: /usr/local/cvsroot/ethereal/packet-mip6.c,v
retrieving revision 1.6
diff -c -r1.6 packet-mip6.c
*** packet-mip6.c	21 Dec 2003 05:51:33 -0000	1.6
--- packet-mip6.c	30 Mar 2004 17:51:25 -0000
***************
*** 441,447 ****
      if (!mip6_tree)
          return len;
  
!     ti = proto_tree_add_text(mip6_tree, tvb, offset, len - offset, 
                               "Mobility Options");
      opts_tree = proto_item_add_subtree(ti, ett_mip6);
  
--- 441,447 ----
      if (!mip6_tree)
          return len;
  
!     ti = proto_tree_add_text(mip6_tree, tvb, offset, len, 
                               "Mobility Options");
      opts_tree = proto_item_add_subtree(ti, ett_mip6);