tcpdump mailing list archives
Re: [Fwd: Re: Thread Safe Lexer]
From: "Gianluca Varenni" <gianluca.varenni () cacetech com>
Date: Wed, 1 Jul 2009 12:54:13 -0700
----- Original Message ----- From: "Guy Harris" <guy () alum mit edu>
To: <tcpdump-workers () lists tcpdump org> Sent: Wednesday, July 01, 2009 12:47 PM Subject: Re: [tcpdump-workers] [Fwd: Re: Thread Safe Lexer]
On Jul 1, 2009, at 12:04 PM, Behdad Forghani wrote:Gianluca asked me to forward this to the mailing list. During Sharkfest09 he had mentioned that Winpcap cannot is not re-entrant and thread-safe because Lex uses global variables. As you can see, one solution to this is to use re2c for lexing and lemon for parsing. The link to re2c is:http://re2c.org/ http://sourceforge.net/projects/re2c/Newer versions of Flex can, I think, also generate reentrant C lexers, but that would also require installing a new version of Flex on some systems, so we'd have to require that you install additional tools on some machines in either case.
By "newer versions" do you mean the version of flex that is shipped with, let's say, an up-to-date Linux distribution like my Fedora 10?
GV
Wireshark already uses lemon for its display filter parser - it includes lemon source in its source tree, so it doesn't require that you install it.- This is the tcpdump-workers list.Visit https://cod.sandelman.ca/ to unsubscribe.
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- [Fwd: Re: Thread Safe Lexer] Behdad Forghani (Jul 01)
- Re: [Fwd: Re: Thread Safe Lexer] Guy Harris (Jul 01)
- Re: [Fwd: Re: Thread Safe Lexer] Gianluca Varenni (Jul 01)
- Re: [Fwd: Re: Thread Safe Lexer] Eloy Paris (Jul 01)
- Re: [Fwd: Re: Thread Safe Lexer] Gianluca Varenni (Jul 01)
- Re: [Fwd: Re: Thread Safe Lexer] Eloy Paris (Jul 01)
- Re: [Fwd: Re: Thread Safe Lexer] Sam Roberts (Jul 02)
- Re: [Fwd: Re: Thread Safe Lexer] Gianluca Varenni (Jul 09)
- Re: [Fwd: Re: Thread Safe Lexer] Guy Harris (Jul 09)
- Re: [Fwd: Re: Thread Safe Lexer] Gianluca Varenni (Jul 09)
- Re: [Fwd: Re: Thread Safe Lexer] Gianluca Varenni (Jul 13)
- Re: [Fwd: Re: Thread Safe Lexer] Sam Roberts (Jul 02)
- Re: [Fwd: Re: Thread Safe Lexer] Guy Harris (Jul 01)