summaryrefslogtreecommitdiffstats
path: root/lib/libpcap
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2003-11-04 06:12:21 +0000
committergreen <green@FreeBSD.org>2003-11-04 06:12:21 +0000
commit1bb1923e83e8cc3d1a03682e92ac20b0ca5a43c4 (patch)
tree9b4163f89f9386d0df15792e1eb7111fd763b841 /lib/libpcap
parent2e797ba95c8147a6316c68417dfe5fcc85f78d71 (diff)
downloadFreeBSD-src-1bb1923e83e8cc3d1a03682e92ac20b0ca5a43c4.zip
FreeBSD-src-1bb1923e83e8cc3d1a03682e92ac20b0ca5a43c4.tar.gz
* 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*".
Diffstat (limited to 'lib/libpcap')
-rw-r--r--lib/libpcap/Makefile4
1 files changed, 3 insertions, 1 deletions
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
OpenPOWER on IntegriCloud