Ethereal-users: Re: [ethereal-users] sorry sent it to the wrong one first

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: Mon, 29 Nov 1999 14:51:14 -0800
> Maybe this should be mentioned in the FAQ or man pages or on the website
> or wherever to save people some time? (well I didn't find it. I saw a
> notice about a libpcap bug that could 'make ethereal unresponsive during
> a packet capture' but that's all)

We should probably combine the fix for that bug (which is a Linux-only
bug) with the fix for the parser bug (which probably shows up on most,
if not all, platforms) into a single patch, and put a note about it in

	1) the FAQ;

	2) the README file.

I've attached the fix for the parser bug, which is a patch to
"libpcap"'s "scanner.l" file.
*** scanner.l.dist	Mon Jul 21 13:31:57 1997
--- scanner.l	Fri Nov 12 02:10:43 1999
***************
*** 149,154 ****
--- 149,161 ----
  	char *buf;
  {
  	in_buffer = buf;
+ #ifdef FLEX_SCANNER
+ 	/*
+ 	 * Flush the scanner's input buffer, so that there's no cruft
+ 	 * left over from a previous parse.
+ 	 */
+ 	YY_FLUSH_BUFFER;
+ #endif
  }
  
  /*