Ethereal-dev: Re: [ethereal-dev] L2TP for 0.7.9

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Fri, 7 Jan 2000 00:36:30 -0800
> Attached are the files for the L2TP filter.  The file "A-cisco" is a capture
> file.  The filter works good under 0.7.9.  I tried it under 0.8.0 today but
> it died in one of the libgtk routines while processing a packet with many
> AVP's.

Were you selecting, in the protocol tree window, AVPs whose hex data
in the hex window was offscreen?

If so, you probably ran across a GTK+ bug; 0.7.9 didn't, I think, try to
get the hex window to scroll to put the hex data for the selected field
onscreen, but 0.8.0 did, and that triggers the GTK+ bug.

The bug is in the latest GTK+, and I think it dates back to GTK+ 1.2.3
or so.

I've attached a patch (from the GTK+ mailing list, as discovered and
fixed by somebody else) that should fix the problem; apply the patch to
"gtk/gtktext.c", and rebuild and reinstall GTK+.
*** gtktext.c.dist	Fri Sep  3 15:20:39 1999
--- gtktext.c	Tue Dec 14 01:17:32 1999
***************
*** 903,908 ****
--- 903,909 ----
    g_return_if_fail (GTK_IS_TEXT (text));
    
    text->freeze_count++;
+   undraw_cursor (text, FALSE);
  }
  
  void
***************
*** 917,922 ****
--- 918,924 ----
  	recompute_geometry (text);
  	gtk_widget_queue_draw (GTK_WIDGET (text));
        }
+   draw_cursor (text, FALSE);
  }
  
  void