ports/78777: Lexer collision with pcap library

Lupe Christoph lupe at lupe-christoph.de
Sun Mar 13 12:40:04 UTC 2005


>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 at 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:



More information about the freebsd-ports-bugs mailing list