Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Mar 2005 13:36:03 +0100 (CET)
From:      Lupe Christoph <lupe@lupe-christoph.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        bward2@users.sourceforge.net
Subject:   ports/78777: Lexer collision with pcap library
Message-ID:  <20050313123603.6FC75A812@firewally.lupe-christoph.de>
Resent-Message-ID: <200503131240.j2DCe261005410@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         78777
>Category:       ports
>Synopsis:       Lexer collision with pcap library
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 13 12:40:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Lupe Christoph
>Release:        FreeBSD 4.10-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD firewally.lupe-christoph.de 4.10-RELEASE-p5 FreeBSD 4.10-RELEASE-p5 #2: Sat Dec 11 17:38:51 CET 2004 lupe@firewally.lupe-christoph.de:/usr/obj/usr/src/sys/FIREWALLY i386


	FreeBSD 4.10-RELEASE-p5
>Description:
	doormand fails with the message
		emerg: Bad service name "port" on line 17 of guest list phase 3;  portnumber or secret  9876
	This message is generated in pcap_compile which seems to use doorman's
	guestfile lexer to scan "udp and port 9876 and dst 172.17.0.7"
>How-To-Repeat:
	Install doorman, copy EXAMPLE files to the real files,
	run "doormand -D"
>Fix:
	Hide the doorman lexer. This can be done with the flex "-P" option,
	but that changes yywrap(), too. Flex allows one to work around this
	by adding %option noyywrap. Note that e.g. Solaris' lex does not have
	-P. In the long run I believe the pcap library should implement this
	rather than every program using it.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050313123603.6FC75A812>