From 1bb1923e83e8cc3d1a03682e92ac20b0ca5a43c4 Mon Sep 17 00:00:00 2001 From: green Date: Tue, 4 Nov 2003 06:12:21 +0000 Subject: * Modify libpcap to work a bit better with our 802.11 code. This means tcpdump -y ieee802_11 will work in the basic senses, including the code compilation for filters (where you may specify "link[]" to refer to parts of the 802.11 header, as well as treat it like a normal Ethernet header). Previously, it was just too far off to do anything useful for us. * While I'm here, fix some compile problems that will result from lex and yacc namespace polution when linking with -lpcap. The namespace is now "pcapyy*" instead of "yy*", and it tests fine with world and some external applications that may or may not use "yy*". --- lib/libpcap/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libpcap') diff --git a/lib/libpcap/Makefile b/lib/libpcap/Makefile index 0b84911..fce8a6f 100644 --- a/lib/libpcap/Makefile +++ b/lib/libpcap/Makefile @@ -10,7 +10,9 @@ INCS= pcap.h pcap-int.h pcap-namedb.h MAN= pcap.3 CLEANFILES=tokdefs.h version.c -CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcap_lval -I${.CURDIR} -I. +YFLAGS+=-p pcapyy +LFLAGS+=-Ppcapyy +CFLAGS+=-DHAVE_CONFIG_H -Dyylval=pcapyylval -I${.CURDIR} -I. .if !defined(NOINET6) CFLAGS+=-DINET6 .endif -- cgit v1.1