Ethereal-users: Re: [ethereal-users] capture filters

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Wed, 17 Nov 1999 16:36:32 -0800 (PST)
> Muchos Gracias Senior !!!!!
> 
> you were right on the money.

I.e., the problem was that it was given an illegal expression, and was
subsequently unable to parse even legal expressions?

If so, I've attached a patch to "scanner.l" in "libpcap" that should fix
the "libpcap" bug.
*** scanner.l.dist	Mon Jul 21 13:31:57 1997
--- scanner.l	Wed Nov 17 16:36:58 1999
***************
*** 149,154 ****
--- 149,162 ----
  	char *buf;
  {
  	in_buffer = buf;
+ #ifdef FLEX_SCANNER
+ 	/*
+ 	 * We're starting a new parse; flush the scanner's input buffer,
+ 	 * so that if the previous parse was unsuccessful, we don't get
+ 	 * as initial input any cruft left over from that parse.
+ 	 */
+ 	YY_FLUSH_BUFFER;
+ #endif
  }
  
  /*