head 1.13; access; symbols pkgsrc-2019Q2:1.12.0.20 pkgsrc-2019Q2-base:1.12 pkgsrc-2019Q1:1.12.0.18 pkgsrc-2019Q1-base:1.12 pkgsrc-2018Q4:1.12.0.16 pkgsrc-2018Q4-base:1.12 pkgsrc-2018Q3:1.12.0.14 pkgsrc-2018Q3-base:1.12 pkgsrc-2018Q2:1.12.0.12 pkgsrc-2018Q2-base:1.12 pkgsrc-2018Q1:1.12.0.10 pkgsrc-2018Q1-base:1.12 pkgsrc-2017Q4:1.12.0.8 pkgsrc-2017Q4-base:1.12 pkgsrc-2017Q3:1.12.0.6 pkgsrc-2017Q3-base:1.12 pkgsrc-2017Q2:1.12.0.2 pkgsrc-2017Q2-base:1.12 pkgsrc-2017Q1:1.11.0.2 pkgsrc-2017Q1-base:1.11 pkgsrc-2016Q4:1.10.0.10 pkgsrc-2016Q4-base:1.10 pkgsrc-2016Q3:1.10.0.8 pkgsrc-2016Q3-base:1.10 pkgsrc-2016Q2:1.10.0.6 pkgsrc-2016Q2-base:1.10 pkgsrc-2016Q1:1.10.0.4 pkgsrc-2016Q1-base:1.10 pkgsrc-2015Q4:1.10.0.2 pkgsrc-2015Q4-base:1.10 pkgsrc-2015Q3:1.9.0.6 pkgsrc-2015Q3-base:1.9 pkgsrc-2015Q2:1.9.0.4 pkgsrc-2015Q2-base:1.9 pkgsrc-2015Q1:1.9.0.2 pkgsrc-2015Q1-base:1.9 pkgsrc-2014Q4:1.8.0.16 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.14 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.12 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.10 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.8 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.6 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.4 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.2 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.7.0.6 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.7.0.4 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.2 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.6.0.10 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.8 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.6 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.4 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.2 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.5.0.18 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.16 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.14 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.12 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.10 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.8 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.6 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.4 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.2 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.3.0.14 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.12 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.10 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.8 pkgsrc-2008Q1:1.3.0.6 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.4 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.2 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.2.0.6 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.4 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.2 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.1.0.10 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.8 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.6 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.4 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.2 pkgsrc-2005Q3-base:1.1; locks; strict; comment @# @; 1.13 date 2019.07.04.07.17.25; author adam; state dead; branches; next 1.12; commitid rNuTV9Ehv155eHtB; 1.12 date 2017.04.19.11.50.18; author dsainty; state Exp; branches; next 1.11; commitid MKRgNpkihMmbE8Oz; 1.11 date 2017.02.02.18.46.39; author maya; state Exp; branches 1.11.2.1; next 1.10; commitid RjwPDXrIAdWvopEz; 1.10 date 2015.10.17.10.07.54; author adam; state Exp; branches; next 1.9; commitid OSDDvn0wrvvcLrFy; 1.9 date 2015.03.11.21.05.09; author tnn; state Exp; branches; next 1.8; commitid ELlguct9N2C3tedy; 1.8 date 2013.02.06.18.07.04; author jperkin; state Exp; branches; next 1.7; 1.7 date 2012.06.27.10.53.40; author fhajny; state Exp; branches; next 1.6; 1.6 date 2011.02.11.12.11.26; author adam; state Exp; branches; next 1.5; 1.5 date 2008.10.30.16.35.08; author tron; state Exp; branches; next 1.4; 1.4 date 2008.10.30.08.12.34; author adam; state Exp; branches; next 1.3; 1.3 date 2007.10.08.20.38.17; author adam; state Exp; branches; next 1.2; 1.2 date 2006.12.06.21.17.28; author schwarz; state Exp; branches; next 1.1; 1.1 date 2005.08.10.13.48.22; author drochner; state Exp; branches; next ; 1.11.2.1 date 2017.04.29.18.51.51; author bsiegert; state Exp; branches; next ; commitid TKAbz6bTZQ51FsPz; desc @@ 1.13 log @libpcap: updated to 1.9.0 Summary for 1.9.0 libpcap release Added testing system to libpcap, independent of tcpdump Changes to how pcap_t is activated Adding support for Large stream buffers on Endace DAG cards Changes to BSD 3-clause license to 2-clause licence Additions to TCP header parsing, per RFC3168 Add CMake build process (extensive number of changes) Assign a value for OpenBSD DLT_OPENFLOW. Support setting non-blocking mode before activating. Extensive build support for Windows VS2010 and MINGW (many many changes, over many months) Added RPCAPD support when --enable-remote (default no) Add the rpcap daemon source and build instructions. Put back the greasy "save the capture filter string so we can tweak it" hack, that keeps libpcap from capturing rpcap traffic. Fixes for captures on MacOS, utun0 fixes so that non-AF_INET addresses, are not ==AF_INET6 addresses. Add a linktype for IBM SDLC frames containing SNA PDUs. pcap_compile() in 1.8.0 and later is newly thread-safe. bound snaplen for linux tpacket_v2 to ~64k Make VLAN filter handle both metadata and inline tags D-Bus captures can now be up to 128MB in size Added LORATAP DLT value Added DLT_VSOCK for http://qemu-project.org/Features/VirtioVsock probe_devices() fixes not to overrun buffer for name of device Add linux-specific pcap_set_protocol_linux() to allow specifying a specific capture protocol. RDMA sniffing support for pcap Add Nordic Semiconductor Bluetooth LE sniffer link-layer header type. fixes for reading /etc/ethers Make it possible to build on Windows without packet.dll. Add tests for large file support on UN*X. Solaris fixes to work with 2.8.6 configuration test now looks for header files, not capture devices present Fix to work with Berkeley YACC. fixes for DragonBSD compilation of pcap-netmap.c Clean up the ether_hostton() stuff. Add an option to disable Linux memory-mapped capture support. Add DAG API support checks. Add Septel, Myricom SNF, and Riverbed TurboCap checks. Add checks for Linux USB, Linux Bluetooth, D-Bus, and RDMA sniffing support. Add a check for hardware time stamping on Linux. Don't bother supporting pre-2005 Visual Studio. Increased minimum autoconf version requirement to 2.64 Add DLT value 273 for XRA-31 sniffer Clean up handing of signal interrupts in pcap_read_nocb_remote(). Use the XPG 4.2 versions of the networking APIs in Solaris. Fix, and better explain, the "IPv6 means IPv6, not IPv4" option setting. Explicitly warn that negative packet buffer timeouts should not be used. rpcapd: Add support inetd-likes, including xinetd.conf, and systemd units Rename DLT_IEEE802_15_4 to DLT_IEEE802_15_4_WITHFCS. Add DISPLAYPORT AUX link type Remove the sunos4 kernel modules and all references to them. Add more interface flags to pcap_findalldevs(). @ text @$NetBSD: patch-ac,v 1.12 2017/04/19 11:50:18 dsainty Exp $ Add libtoolization Fix manpage installation Remove dependencies on VERSION, which trigger unintended implicit rules against version.c on case-insensitive file systems. --- Makefile.in.orig 2016-10-26 11:07:59.000000000 +1100 +++ Makefile.in 2017-04-19 21:01:59.000000000 +1000 @@@@ -43,7 +43,7 @@@@ # LD = /usr/bin/ld -CC = @@CC@@ +CC = ${LIBTOOL} --mode=compile @@CC@@ AR = @@AR@@ LN_S = @@LN_S@@ MKDEP = @@MKDEP@@ @@@@ -75,7 +75,8 @@@@ # Explicitly define compilation rule since SunOS 4's make doesn't like gcc. # Also, gcc does not remove the .o before forking 'as', which can be a # problem if you don't own the file but can write to the directory. -.c.o: +.SUFFIXES: .lo +.c.lo: @@rm -f $@@ $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c @@@@ -86,13 +87,13 @@@@ etherent.c savefile.c sf-pcap.c sf-pcap-ng.c pcap-common.c \ bpf_image.c bpf_dump.c GENSRC = scanner.c grammar.c bpf_filter.c version.c -LIBOBJS = @@LIBOBJS@@ +LIBOBJS = @@LTLIBOBJS@@ SRC = $(PSRC) $(FSRC) $(CSRC) $(SSRC) $(GENSRC) # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot # hack the extra indirection -OBJ = $(PSRC:.c=.o) $(FSRC:.c=.o) $(CSRC:.c=.o) $(SSRC:.c=.o) $(GENSRC:.c=.o) $(LIBOBJS) +OBJ = $(PSRC:.c=.lo) $(FSRC:.c=.lo) $(CSRC:.c=.lo) $(SSRC:.c=.lo) $(GENSRC:.c=.lo) $(LIBOBJS) PUBHDR = \ pcap.h \ pcap-bpf.h \ @@@@ -358,12 +359,10 @@@@ Win32/Prj/wpcap.vcxproj \ Win32/Prj/wpcap.vcxproj.filters -all: libpcap.a shared pcap-config +all: libpcap.la pcap-config -libpcap.a: $(OBJ) - @@rm -f $@@ - $(AR) rc $@@ $(OBJ) $(ADDLARCHIVEOBJS) - $(RANLIB) $@@ +libpcap.la: $(OBJ) + ${LIBTOOL} --mode=link @@CC@@ -rpath ${PREFIX}/lib ${LDFLAGS} $(OBJ) $(LIBS) -o libpcap.la shared: libpcap.$(DYEXT) @@@@ -452,10 +451,10 @@@@ $(MAKE) $(MAKEFLAGS) scanner.c; \ fi -scanner.o: scanner.c grammar.h +scanner.lo: scanner.c grammar.h $(CC) $(FULL_CFLAGS) -c scanner.c -pcap.o: pcap_version.h +pcap.lo: pcap_version.h grammar.c: $(srcdir)/grammar.y $(YACC) -p pcap_ -o grammar.c -d $< @@@@ -466,22 +465,22 @@@@ $(MAKE) $(MAKEFLAGS) grammar.c; \ fi -grammar.o: grammar.c +grammar.lo: grammar.c $(CC) $(FULL_CFLAGS) -c grammar.c -gencode.o: $(srcdir)/gencode.c grammar.h scanner.h +gencode.lo: $(srcdir)/gencode.c grammar.h scanner.h $(CC) $(FULL_CFLAGS) -c $(srcdir)/gencode.c -version.o: version.c +version.lo: version.c $(CC) $(FULL_CFLAGS) -c version.c -snprintf.o: $(srcdir)/missing/snprintf.c +snprintf.lo: $(srcdir)/missing/snprintf.c $(CC) $(FULL_CFLAGS) -o $@@ -c $(srcdir)/missing/snprintf.c -strtok_r.o: $(srcdir)/missing/strtok_r.c +strtok_r.lo: $(srcdir)/missing/strtok_r.c $(CC) $(FULL_CFLAGS) -o $@@ -c $(srcdir)/missing/strtok_r.c -version.c: $(srcdir)/VERSION $(srcdir)/gen_version_c.sh +version.c: $(srcdir)/gen_version_c.sh # # Older programs import this if they want to show the # libpcap version number, rather than calling @@@@ -490,7 +489,7 @@@@ @@rm -f $@@ $(srcdir)/gen_version_c.sh $(srcdir)/VERSION $@@ -pcap_version.h: $(srcdir)/VERSION $(srcdir)/pcap_version.h.in $(srcdir)/gen_version_header.sh +pcap_version.h: $(srcdir)/pcap_version.h.in $(srcdir)/gen_version_header.sh @@rm -f $@@ $(srcdir)/gen_version_header.sh $(srcdir)/VERSION $(srcdir)/pcap_version.h.in $@@ @@@@ -498,7 +497,7 @@@@ rm -f bpf_filter.c ln -s $(srcdir)/bpf/net/bpf_filter.c bpf_filter.c -bpf_filter.o: bpf_filter.c +bpf_filter.lo: bpf_filter.c $(CC) $(FULL_CFLAGS) -c bpf_filter.c # @@@@ -550,7 +549,7 @@@@ valgrindtest: tests/valgrindtest.c libpcap.a $(CC) $(FULL_CFLAGS) -I. -L. -o valgrindtest $(srcdir)/tests/valgrindtest.c libpcap.a $(LIBS) -install: install-shared install-archive pcap-config +install: libpcap.la pcap-config [ -d $(DESTDIR)$(libdir) ] || \ (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir)) [ -d $(DESTDIR)$(includedir) ] || \ @@@@ -565,56 +564,73 @@@@ (mkdir -p $(DESTDIR)$(mandir)/man@@MAN_FILE_FORMATS@@; chmod 755 $(DESTDIR)$(mandir)/man@@MAN_FILE_FORMATS@@) [ -d $(DESTDIR)$(mandir)/man@@MAN_MISC_INFO@@ ] || \ (mkdir -p $(DESTDIR)$(mandir)/man@@MAN_MISC_INFO@@; chmod 755 $(DESTDIR)$(mandir)/man@@MAN_MISC_INFO@@) + ${LIBTOOL} --mode=install $(INSTALL_DATA) libpcap.la $(DESTDIR)$(libdir) for i in $(PUBHDR); do \ $(INSTALL_DATA) $(srcdir)/$$i \ $(DESTDIR)$(includedir)/$$i; done [ -d $(DESTDIR)$(bindir) ] || \ (mkdir -p $(DESTDIR)$(bindir); chmod 755 $(DESTDIR)$(bindir)) - $(INSTALL_PROGRAM) pcap-config $(DESTDIR)$(bindir)/pcap-config + $(BSD_INSTALL_SCRIPT) pcap-config $(DESTDIR)$(bindir)/pcap-config for i in $(MAN1); do \ $(INSTALL_DATA) $(srcdir)/$$i \ $(DESTDIR)$(mandir)/man1/$$i; done - for i in $(MAN3PCAP_NOEXPAND); do \ - $(INSTALL_DATA) $(srcdir)/$$i \ + for i in $(MAN3PCAP_NOEXPAND:.3pcap=.3); do \ + $(INSTALL_DATA) $(srcdir)/$${i}pcap \ $(DESTDIR)$(mandir)/man3/$$i; done - for i in $(MAN3PCAP_EXPAND:.in=); do \ - $(INSTALL_DATA) $$i \ + for i in $(MAN3PCAP_EXPAND:.3pcap.in=.3); do \ + $(INSTALL_DATA) $${i}pcap \ $(DESTDIR)$(mandir)/man3/$$i; done - (cd $(DESTDIR)$(mandir)/man3 && \ - rm -f pcap_datalink_val_to_description.3pcap && \ - $(LN_S) pcap_datalink_val_to_name.3pcap \ - pcap_datalink_val_to_description.3pcap && \ - rm -f pcap_dump_fopen.3pcap && \ - $(LN_S) pcap_dump_open.3pcap pcap_dump_fopen.3pcap && \ - rm -f pcap_freealldevs.3pcap && \ - $(LN_S) pcap_findalldevs.3pcap pcap_freealldevs.3pcap && \ - rm -f pcap_perror.3pcap && \ - $(LN_S) pcap_geterr.3pcap pcap_perror.3pcap && \ - rm -f pcap_sendpacket.3pcap && \ - $(LN_S) pcap_inject.3pcap pcap_sendpacket.3pcap && \ - rm -f pcap_free_datalinks.3pcap && \ - $(LN_S) pcap_list_datalinks.3pcap pcap_free_datalinks.3pcap && \ - rm -f pcap_free_tstamp_types.3pcap && \ - $(LN_S) pcap_list_tstamp_types.3pcap pcap_free_tstamp_types.3pcap && \ - rm -f pcap_dispatch.3pcap && \ - $(LN_S) pcap_loop.3pcap pcap_dispatch.3pcap && \ - rm -f pcap_minor_version.3pcap && \ - $(LN_S) pcap_major_version.3pcap pcap_minor_version.3pcap && \ - rm -f pcap_next.3pcap && \ - $(LN_S) pcap_next_ex.3pcap pcap_next.3pcap && \ - rm -f pcap_open_dead_with_tstamp_precision.3pcap && \ - $(LN_S) pcap_open_dead.3pcap \ - pcap_open_dead_with_tstamp_precision.3pcap && \ - rm -f pcap_open_offline_with_tstamp_precision.3pcap && \ - $(LN_S) pcap_open_offline.3pcap pcap_open_offline_with_tstamp_precision.3pcap && \ - rm -f pcap_fopen_offline.3pcap && \ - $(LN_S) pcap_open_offline.3pcap pcap_fopen_offline.3pcap && \ - rm -f pcap_fopen_offline_with_tstamp_precision.3pcap && \ - $(LN_S) pcap_open_offline.3pcap pcap_fopen_offline_with_tstamp_precision.3pcap && \ - rm -f pcap_tstamp_type_val_to_description.3pcap && \ - $(LN_S) pcap_tstamp_type_val_to_name.3pcap pcap_tstamp_type_val_to_description.3pcap && \ - rm -f pcap_getnonblock.3pcap && \ - $(LN_S) pcap_setnonblock.3pcap pcap_getnonblock.3pcap) + rm -f $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_description.3 + ln $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_name.3 \ + $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_description.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_dump_fopen.3 + ln $(DESTDIR)$(mandir)/man3/pcap_dump_open.3 \ + $(DESTDIR)$(mandir)/man3/pcap_dump_fopen.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_freealldevs.3 + ln $(DESTDIR)$(mandir)/man3/pcap_findalldevs.3 \ + $(DESTDIR)$(mandir)/man3/pcap_freealldevs.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_perror.3 + ln $(DESTDIR)$(mandir)/man3/pcap_geterr.3 \ + $(DESTDIR)$(mandir)/man3/pcap_perror.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_sendpacket.3 + ln $(DESTDIR)$(mandir)/man3/pcap_inject.3 \ + $(DESTDIR)$(mandir)/man3/pcap_sendpacket.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_free_datalinks.3 + ln $(DESTDIR)$(mandir)/man3/pcap_list_datalinks.3 \ + $(DESTDIR)$(mandir)/man3/pcap_free_datalinks.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_free_tstamp_types.3 + ln $(DESTDIR)$(mandir)/man3/pcap_list_tstamp_types.3 \ + $(DESTDIR)$(mandir)/man3/pcap_free_tstamp_types.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_dispatch.3 + ln $(DESTDIR)$(mandir)/man3/pcap_loop.3 \ + $(DESTDIR)$(mandir)/man3/pcap_dispatch.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_minor_version.3 + ln $(DESTDIR)$(mandir)/man3/pcap_major_version.3 \ + $(DESTDIR)$(mandir)/man3/pcap_minor_version.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_next.3 + ln $(DESTDIR)$(mandir)/man3/pcap_next_ex.3 \ + $(DESTDIR)$(mandir)/man3/pcap_next.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_open_dead_with_tstamp_precision.3 + ln $(DESTDIR)$(mandir)/man3/pcap_open_dead.3 \ + $(DESTDIR)$(mandir)/man3/pcap_open_dead_with_tstamp_precision.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_open_offline_with_tstamp_precision.3 + ln $(DESTDIR)$(mandir)/man3/pcap_open_offline.3 \ + $(DESTDIR)$(mandir)/man3/pcap_open_offline_with_tstamp_precision.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3 + ln $(DESTDIR)$(mandir)/man3/pcap_open_offline.3 \ + $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_fopen_offline_with_tstamp_precision.3 + ln $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3 \ + $(DESTDIR)$(mandir)/man3/pcap_fopen_offline_with_tstamp_precision.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3 + ln $(DESTDIR)$(mandir)/man3/pcap_open_offline.3 \ + $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_tstamp_type_val_to_description.3 + ln $(DESTDIR)$(mandir)/man3/pcap_tstamp_type_val_to_name.3 \ + $(DESTDIR)$(mandir)/man3/pcap_tstamp_type_val_to_description.3 + rm -f $(DESTDIR)$(mandir)/man3/pcap_getnonblock.3 + ln $(DESTDIR)$(mandir)/man3/pcap_setnonblock.3 \ + $(DESTDIR)$(mandir)/man3/pcap_getnonblock.3 for i in $(MANFILE); do \ $(INSTALL_DATA) `echo $$i | sed 's/.manfile.in/.manfile/'` \ $(DESTDIR)$(mandir)/man@@MAN_FILE_FORMATS@@/`echo $$i | sed 's/.manfile.in/.@@MAN_FILE_FORMATS@@/'`; done @@@@ -656,15 +672,15 @@@@ install-shared-none: install-archive: install-archive-$(DYEXT) -install-archive-so install-archive-dylib install-archive-sl install-archive-none: libpcap.a +install-archive-so install-archive-dylib install-archive-sl install-archive-none: libpcap.la # # Most platforms have separate suffixes for shared and # archive libraries, so we install both. # [ -d $(DESTDIR)$(libdir) ] || \ (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir)) - $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a - $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a + $(INSTALL_DATA) libpcap.la $(DESTDIR)$(libdir)/libpcap.la + $(RANLIB) $(DESTDIR)$(libdir)/libpcap.la install-archive-shareda: # # AIX, however, doesn't, so we don't install the archive @@@@ -672,7 +688,7 @@@@ # uninstall: uninstall-shared - rm -f $(DESTDIR)$(libdir)/libpcap.a + rm -f $(DESTDIR)$(libdir)/libpcap.la for i in $(PUBHDR); do \ rm -f $(DESTDIR)$(includedir)/$$i; done -rmdir $(DESTDIR)$(includedir)/pcap @@@@ -720,7 +736,7 @@@@ rm -f $(DESTDIR)$(libdir)/libpcap.$$MAJOR_VER; \ rm -f $(DESTDIR)$(libdir)/libpcap.sl uninstall-shared-shareda: - rm -f $(DESTDIR)$(libdir)/libpcap.a + rm -f $(DESTDIR)$(libdir)/libpcap.la uninstall-shared-none: clean: @ 1.12 log @Remove dependencies on VERSION, which trigger unintended implicit rules against version.c on case-insensitive file systems. Fixes build on Darwin in its out-of-the-box case-insensitive configuration. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.11 2017/02/02 18:46:39 maya Exp $ @ 1.11 log @libpcap: update to 1.8.1 Tuesday, Oct. 25, 2016 mcr@@sandelman.ca Summary for 1.8.1 libpcap release Add a target in Makefile.in for Exuberant Ctags use: 'extags'. Rename configure.in to configure.ac: autoconf 2.59 Clean up the name-to-DLT mapping table. Add some newer DLT_ values: IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS Clarify what the return values are for both success and failure. Many changes to build on windows Check for the "break the loop" condition in the inner loop for TPACKET_V3. Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue #493. Filter out duplicate looped back CAN frames. Fix the handling of loopback filters for IPv6 packets. Add a link-layer header type for RDS (IEC 62106) groups. Use different intermediate folders for x86 and x64 builds on Windows. On Linux, handle all CAN captures with pcap-linux.c, in cooked mode. Removes the need for the "host-endian" link-layer header type. Compile with '-Wused-but-marked-unused' in devel mode if supported Have separate DLTs for big-endian and host-endian SocketCAN headers. Reflect version.h being renamed to pcap_version.h. Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)! Properly check for sock_recv() errors. Re-impose some of Winsock's limitations on sock_recv(). Replace sprintf() with pcap_snprintf(). Fix signature of pcap_stats_ex_remote(). Initial cmake support for remote packet capture. Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag. Clean up {DAG, Septel, Myricom SNF}-only builds. Do UTF-16-to-ASCII conversion into the right place. pcap_create_interface() needs the interface name on Linux. Clean up hardware time stamp support: the "any" device does not support any time stamp types. Add support for capturing on FreeBSD usbusN interfaces. Add a LINKTYPE/DLT_ value for FreeBSD USB. Go back to using PCAP_API on Windows. CMake support Add TurboCap support from WinPcap. Recognize 802.1ad nested VLAN tag in vlan filter. Thursday Sep. 3, 2015 guy@@alum.mit.edu Summary for 1.7.5 libpcap release Man page cleanups. Add some allocation failure checks. Fix a number of Linux/ucLinux configure/build issues. Fix some memory leaks. Recognize 802.1ad nested VLAN tag in vlan filter. Fix building Bluetooth Linux Monitor support with BlueZ 5.1+ @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.10 2015/10/17 10:07:54 adam Exp $ d4 1 d7 6 a12 3 --- Makefile.in.orig 2015-06-28 01:03:37.000000000 +0000 +++ Makefile.in @@@@ -43,7 +43,7 @@@@ VPATH = @@srcdir@@ d21 1 a21 1 @@@@ -75,7 +75,8 @@@@ YACC = @@YACC@@ d31 1 a31 1 @@@@ -86,13 +87,13 @@@@ CSRC = pcap.c inet.c fad-helpers.c genco d47 1 a47 1 @@@@ -358,12 +359,10 @@@@ EXTRA_DIST = \ d63 1 a63 1 @@@@ -452,10 +451,10 @@@@ scanner.h: scanner.c d76 1 a76 1 @@@@ -466,19 +465,19 @@@@ grammar.h: grammar.c d100 15 a114 2 version.c: $(srcdir)/VERSION $(srcdir)/gen_version_c.sh @@@@ -498,7 +497,7 @@@@ bpf_filter.c: $(srcdir)/bpf/net/bpf_filt d123 1 a123 1 @@@@ -550,7 +549,7 @@@@ selpolltest: tests/selpolltest.c libpcap d132 1 a132 1 @@@@ -565,56 +564,73 @@@@ install: install-shared install-archive d246 1 a246 1 @@@@ -656,15 +672,15 @@@@ install-shared-shareda: libpcap.shareda d265 1 a265 1 @@@@ -672,7 +688,7 @@@@ install-archive-shareda: d274 1 a274 1 @@@@ -720,7 +736,7 @@@@ uninstall-shared-sl: @ 1.11.2.1 log @Pullup ticket #5322 - requested by sevan net/libpcap: build fix Revisions pulled up: - net/libpcap/distinfo 1.34 - net/libpcap/patches/patch-ac 1.12 --- Module Name: pkgsrc Committed By: dsainty Date: Wed Apr 19 11:50:18 UTC 2017 Modified Files: pkgsrc/net/libpcap: distinfo pkgsrc/net/libpcap/patches: patch-ac Log Message: Remove dependencies on VERSION, which trigger unintended implicit rules against version.c on case-insensitive file systems. Fixes build on Darwin in its out-of-the-box case-insensitive configuration. @ text @d1 1 a1 1 $NetBSD$ a3 1 d6 3 a8 6 Remove dependencies on VERSION, which trigger unintended implicit rules against version.c on case-insensitive file systems. --- Makefile.in.orig 2016-10-26 11:07:59.000000000 +1100 +++ Makefile.in 2017-04-19 21:01:59.000000000 +1000 @@@@ -43,7 +43,7 @@@@ d17 1 a17 1 @@@@ -75,7 +75,8 @@@@ d27 1 a27 1 @@@@ -86,13 +87,13 @@@@ d43 1 a43 1 @@@@ -358,12 +359,10 @@@@ d59 1 a59 1 @@@@ -452,10 +451,10 @@@@ d72 1 a72 1 @@@@ -466,22 +465,22 @@@@ d96 2 a97 15 -version.c: $(srcdir)/VERSION $(srcdir)/gen_version_c.sh +version.c: $(srcdir)/gen_version_c.sh # # Older programs import this if they want to show the # libpcap version number, rather than calling @@@@ -490,7 +489,7 @@@@ @@rm -f $@@ $(srcdir)/gen_version_c.sh $(srcdir)/VERSION $@@ -pcap_version.h: $(srcdir)/VERSION $(srcdir)/pcap_version.h.in $(srcdir)/gen_version_header.sh +pcap_version.h: $(srcdir)/pcap_version.h.in $(srcdir)/gen_version_header.sh @@rm -f $@@ $(srcdir)/gen_version_header.sh $(srcdir)/VERSION $(srcdir)/pcap_version.h.in $@@ @@@@ -498,7 +497,7 @@@@ d106 1 a106 1 @@@@ -550,7 +549,7 @@@@ d115 1 a115 1 @@@@ -565,56 +564,73 @@@@ d229 1 a229 1 @@@@ -656,15 +672,15 @@@@ d248 1 a248 1 @@@@ -672,7 +688,7 @@@@ d257 1 a257 1 @@@@ -720,7 +736,7 @@@@ @ 1.10 log @Changes 1.7.4: Include fix for GitHub issue 424 -- out of tree builds. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.9 2015/03/11 21:05:09 tnn Exp $ d17 1 a17 1 @@@@ -80,7 +80,8 @@@@ YACC = @@V_YACC@@ d27 2 a28 2 @@@@ -91,13 +92,13 @@@@ CSRC = pcap.c inet.c gencode.c optimize. savefile.c sf-pcap.c sf-pcap-ng.c pcap-common.c \ d44 2 a45 2 Win32/Src/inet_net.c \ Win32/Src/inet_pton.c d59 3 a61 3 @@@@ -450,10 +449,10 @@@@ scanner.c: $(srcdir)/scanner.l cat $(srcdir)/$@@.top $@@.bottom > $@@ @@rm $@@.bottom d63 2 a64 2 -scanner.o: scanner.c tokdefs.h +scanner.lo: scanner.c tokdefs.h d67 2 a68 2 -pcap.o: version.h +pcap.lo: version.h a69 1 tokdefs.h: grammar.c d71 4 a74 3 @@@@ -462,17 +461,17 @@@@ grammar.c: $(srcdir)/grammar.y mv y.tab.c grammar.c mv y.tab.h tokdefs.h d78 5 a82 2 @@rm -f $@@ $(CC) $(FULL_CFLAGS) -Dyylval=pcap_lval -c grammar.c d92 6 a97 15 -version.c: $(srcdir)/VERSION +version.c: #$(srcdir)/VERSION @@rm -f $@@ if grep GIT ${srcdir}/VERSION >/dev/null; then \ read ver <${srcdir}/VERSION; \ @@@@ -489,7 +488,7 @@@@ version.c: $(srcdir)/VERSION # so we make the version string static and return it from # a function, which does work. # -version.h: $(srcdir)/VERSION +version.h: #$(srcdir)/VERSION @@rm -f $@@ if grep GIT ${srcdir}/VERSION >/dev/null; then \ read ver <${srcdir}/VERSION; \ @@@@ -503,7 +502,7 @@@@ bpf_filter.c: $(srcdir)/bpf/net/bpf_filt d106 1 a106 1 @@@@ -549,7 +548,7 @@@@ selpolltest: tests/selpolltest.c libpcap d115 1 a115 1 @@@@ -564,56 +563,73 @@@@ install: install-shared install-archive d229 37 @ 1.9 log @Thursday Feb. 12, 2015 guy@@alum.mit.edu/mcr@@sandelman.ca Summary for 1.7.2 libpcap release Support for filtering Geneve encapsulated packets. Wednesday Nov. 12, 2014 guy@@alum.mit.edu/mcr@@sandelman.ca Summary for 1.7.0 libpcap release Fix handling of zones for BPF on Solaris new DLT for ZWAVE clarifications for read timeouts. added bpf_filter1() with extensions some fixes to compilation without stdint.h EBUSY can now be returned by SNFv3 code. Monday Aug. 12, 2014 guy@@alum.mit.edu Summary for 1.6.2 libpcap release Don't crash on filters testing a non-existent link-layer type field. Fix sending in non-blocking mode on Linux with memory-mapped capture. Fix timestamps when reading pcap-ng files on big-endian machines. Saturday Jul. 19, 2014 mcr@@sandelman.ca Summary for 1.6.1 libpcap release some fixes for the any device changes for how --enable-XXX (--enable-sniffing, --enable-can) works Wednesday Jul. 2, 2014 mcr@@sandelman.ca Summary for 1.6.0 libpcap release Don't support D-Bus sniffing on OS X fixes for byte order issues with NFLOG captures Handle using cooked mode for DLT_NETLINK in activate_new(). on platforms where you can not capture on down interfaces, do not list them but: do list interfaces which are down, if you can capture on them! Wednesday December 18, 2013 guy@@alum.mit.edu Summary for 1.5.3 libpcap release Don't let packets that don't match the current filter get to the application when TPACKET_V3 is used. (GitHub issue #331) Fix handling of pcap_loop()/pcap_dispatch() with a packet count of 0 on some platforms (including Linux with TPACKET_V3). (GitHub issue #333) Work around TPACKET_V3 deficiency that causes packets to be lost when a timeout of 0 is specified. (GitHub issue #335) Man page formatting fixes. Wednesday December 4, 2013 guy@@alum.mit.edu Summary for 1.5.2 libpcap release Fix libpcap to work when compiled with TPACKET_V3 support and running on a kernel without TPACKET_V3 support. (GitHub issue #329) Wednesday November 20, 2013 guy@@alum.mit.edu Summary for 1.5.1 libpcap release Report an error, rather than crashing, if an IPv6 address is used for link-layer filtering. (Wireshark bug 9376) Wednesday October 30, 2013 guy@@alum.mit.edu Summary for 1.5.0 libpcap release TPACKET_V3 support added for Linux Point users to the the-tcpdump-group repository on GitHub rather than the mcr repository Checks added for malloc()/realloc()/etc. failures Fixed build on Solaris 11 Support filtering filtering E1 SS7 traffic on MTP2 layer Annex A Use "ln -s" to link man pages by default Add support for getting nanosecond-resolution time stamps when capturing and reading capture files Many changes to autoconf to deal better with non-GCC compilers added many new DLT types @ text @d1 1 a1 1 $NetBSD$ d6 1 a6 1 --- Makefile.in.orig 2015-03-09 19:22:07.000000000 +0000 d60 1 a60 1 cat $@@.top $@@.bottom > $@@ @ 1.8 log @Update libpcap to 1.3.0. Main pkgsrc change is support for Solaris 11/illumos. Summary for 1.3.0 libpcap release Handle DLT_PFSYNC in {FreeBSD, other *BSD+Mac OS X, other}. Linux: Don't fail if netfilter isn't enabled in the kernel. Add new link-layer type for NFC Forum LLCP. Put the CANUSB stuff into EXTRA_DIST, so it shows up in the release tarball. Add LINKTYPE_NG40/DLT_NG40. Add DLT_MPEG_2_TS/LINKTYPE_MPEG_2_TS for MPEG-2 transport streams. [PATCH] Fix AIX-3.5 crash with read failure during stress AIX fixes. Introduce --disable-shared configure option. Added initial support for canusb devices. Include the pcap(3PCAP) additions as 1.2.1 changes. many updates to documentation: pcap.3pcap.in Improve 'inbound'/'outbound' capture filters under Linux. Note the cleanup of handling of new DLT_/LINKTYPE_ values. On Lion, don't build for PPC. For mac80211 devices we need to clean up monitor mode on exit. Summary for 1.2.1 libpcap release Update README file. Fix typoes in README.linux file. Clean up some compiler warnings. Fix Linux compile problems and tests for ethtool.h. Treat Debian/kFreeBSD and GNU/Hurd as systems with GNU toolchains. Support 802.1 QinQ as a form of VLAN in filters. Treat "carp" as equivalent to "vrrp" in filters. Fix code generated for "ip6 protochain". Add some new link-layer header types. Support capturing NetFilter log messages on Linux. Clean up some error messages. Turn off monitor mode on exit for mac80211 interfaces on Linux. Fix problems turning monitor mode on for non-mac80211 interfaces on Linux. Properly fail if /sys/class/net or /proc/net/dev exist but can't be opened. Fail if pcap_activate() is called on an already-activated pcap_t, and add a test program for that. Fix filtering in pcap-ng files. Don't build for PowerPC on Mac OS X Lion. Simplify handling of new DLT_/LINKTYPE_ values. Expand pcap(3PCAP) man page. Summary for 1.2 libpcap release All of the changes listed below for 1.1.1 and 1.1.2. Changes to error handling for pcap_findalldevs(). Fix the calculation of the frame size in memory-mapped captures. Add a link-layer header type for STANAG 5066 D_PDUs. Add a link-layer type for a variant of 3GPP TS 27.010. Noted real nature of LINKTYPE_ARCNET. Add a link-layer type for DVB-CI. Fix configure-script discovery of VLAN acceleration support. see http://netoptimizer.blogspot.com/2010/09/tcpdump-vs-vlan-tags.html Linux, HP-UX, AIX, NetBSD and OpenBSD compilation/conflict fixes. Protect against including AIX 5.x's having been included. Add DLT_DBUS, for raw D-Bus messages. Treat either EPERM or EACCES as "no soup for you". Changes to permissions on DLPI systems. Add DLT_IEEE802_15_4_NOFCS for 802.15.4 interfaces. @ text @d3 4 a6 1 --- Makefile.in.orig 2012-03-29 12:57:32.000000000 +0000 d8 1 a8 1 @@@@ -45,7 +45,7 @@@@ VPATH = @@srcdir@@ d15 3 a17 3 CCOPT = @@V_CCOPT@@ INCLS = -I. @@V_INCLS@@ @@@@ -78,7 +78,8 @@@@ YACC = @@V_YACC@@ d27 1 a27 1 @@@@ -89,13 +90,13 @@@@ CSRC = pcap.c inet.c gencode.c optimize. d43 1 a43 1 @@@@ -345,12 +346,10 @@@@ EXTRA_DIST = \ d59 3 a61 3 @@@@ -434,10 +433,10 @@@@ scanner.c: $(srcdir)/scanner.l @@rm -f $@@ $(srcdir)/runlex.sh $(LEX) -o$@@ $< d72 1 a72 1 @@@@ -446,17 +445,17 @@@@ grammar.c: $(srcdir)/grammar.y d94 1 a94 1 @@@@ -473,7 +472,7 @@@@ version.c: $(srcdir)/VERSION d103 1 a103 1 @@@@ -487,7 +486,7 @@@@ bpf_filter.c: $(srcdir)/bpf/net/bpf_filt d112 3 a114 3 @@@@ -530,7 +529,7 @@@@ opentest: tests/opentest.c libpcap.a selpolltest: tests/selpolltest.c libpcap.a $(CC) $(FULL_CFLAGS) -I. -L. -o selpolltest $(srcdir)/tests/selpolltest.c libpcap.a $(LIBS) d121 1 a121 1 @@@@ -545,57 +544,58 @@@@ install: install-shared install-archive d146 35 a180 36 - rm -f $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_description.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_name.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_description.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_dump_fopen.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_dump_open.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_dump_fopen.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_freealldevs.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_findalldevs.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_freealldevs.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_perror.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_geterr.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_perror.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_sendpacket.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_inject.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_sendpacket.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_free_datalinks.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_list_datalinks.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_free_datalinks.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_free_tstamp_types.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_list_tstamp_types.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_free_tstamp_types.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_dispatch.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_loop.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_dispatch.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_minor_version.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_major_version.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_minor_version.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_next.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_next_ex.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_next.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_open_offline.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3pcap - rm -f $(DESTDIR)$(mandir)/man3/pcap_getnonblock.3pcap - ln $(DESTDIR)$(mandir)/man3/pcap_setnonblock.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_getnonblock.3pcap d211 12 d226 3 @ 1.7 log @Fix missing libnsl and libsocket link on SunOS. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.6 2011/02/11 12:11:26 adam Exp $ d3 1 a3 1 --- Makefile.in.orig 2010-04-05 17:54:05.000000000 +0000 d11 1 d14 1 a14 2 DEFS = @@DEFS@@ @@V_DEFS@@ @@@@ -76,7 +76,8 @@@@ YACC = @@V_YACC@@ d22 1 a22 1 $(CC) $(CFLAGS) -c $(srcdir)/$*.c d24 1 a24 1 @@@@ -87,13 +88,13 @@@@ CSRC = pcap.c inet.c gencode.c optimize. d40 1 a40 1 @@@@ -324,12 +325,10 @@@@ EXTRA_DIST = \ d49 1 a49 1 - ar rc $@@ $(OBJ) $(ADDLARCHIVEOBJS) d56 1 a56 1 @@@@ -413,10 +412,10 @@@@ scanner.c: $(srcdir)/scanner.l d62 1 a62 1 $(CC) $(CFLAGS) -c scanner.c d69 1 a69 1 @@@@ -425,17 +424,17 @@@@ grammar.c: $(srcdir)/grammar.y d76 1 a76 1 $(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c d80 1 a80 1 $(CC) $(CFLAGS) -c version.c d84 1 a84 1 $(CC) $(CFLAGS) -o $@@ -c $(srcdir)/missing/snprintf.c d91 1 a91 1 @@@@ -452,7 +451,7 @@@@ version.c: $(srcdir)/VERSION d100 1 a100 1 @@@@ -466,7 +465,7 @@@@ bpf_filter.c: $(srcdir)/bpf/net/bpf_filt d106 1 a106 1 $(CC) $(CFLAGS) -c bpf_filter.c d109 3 a111 3 @@@@ -497,7 +496,7 @@@@ selpolltest: selpolltest.c libpcap.a opentest: opentest.c libpcap.a $(CC) $(CFLAGS) -I. -L. -o opentest $(srcdir)/opentest.c libpcap.a $(LIBS) d118 1 a118 1 @@@@ -512,48 +511,49 @@@@ install: install-shared install-archive d129 1 a129 1 + ${BSD_INSTALL_SCRIPT} pcap-config $(DESTDIR)$(bindir)/pcap-config d149 3 d158 6 d185 3 d194 6 @ 1.6 log @Changes 1.1.1: * Fix build on RHEL5. * Fix shared library build on AIX. Changes 1.1.0: * Add SocketCAN capture support * Add Myricom SNF API support * Update Endace DAG and ERF support * Add support for shared libraries on Solaris, HP-UX, and AIX * Build, install, and un-install shared libraries by default; don't build/install shared libraries on platforms we don't support * Fix building from a directory other than the source directory * Fix compiler warnings and builds on some platforms * Update config.guess and config.sub * Support monitor mode on mac80211 devices on Linux * Fix USB memory-mapped capturing on Linux; it requires a new DLT_ value * On Linux, scan /sys/class/net for devices if we have it; scan it, or /proc/net/dev if we don't have /sys/class/net, even if we have getifaddrs(), as it'll find interfaces with no addresses * Add limited support for reading pcap-ng files * Fix BPF driver-loading error handling on AIX * Support getting the full-length interface description on FreeBSD * In the lexical analyzer, free up any addrinfo structure we got back from getaddrinfo(). * Add support for BPF and libdlpi in OpenSolaris (and SXCE) * Hyphenate "link-layer" everywhere * Add /sys/kernel/debug/usb/usbmon to the list of usbmon locations * In pcap_read_linux_mmap(), if there are no frames available, call poll() even if we're in non-blocking mode, so we pick up errors, and check for the errors in question. * Note that poll() works on BPF devices is Snow Leopard * If an ENXIO or ENETDOWN is received, it may mean the device has gone away. Deal with it. * For BPF, raise the default capture buffer size to from 32k to 512k * Support ps_ifdrop on Linux * Added a bunch of #ifdef directives to make wpcap.dll (WinPcap) compile under cygwin. * Changes to Linux mmapped captures. * Fix bug where create_ring would fail for particular snaplen and buffer size combinations * Update pcap-config so that it handles libpcap requiring additional libraries * Add workaround for threadsafeness on Windows * Add missing mapping for DLT_ENC <-> LINKTYPE_ENC * DLT: Add DLT_CAN_SOCKETCAN * DLT: Add Solaris ipnet * Don't check for DLT_IPNET if it's not defined * Add link-layer types for Fibre Channel FC-2 * Add link-layer types for Wireless HART * Add link-layer types for AOS * Add link-layer types for DECT * Autoconf fixes (AIX, HP-UX, OSF/1, Tru64 cleanups) * Install headers unconditionally, and include vlan.h/bluetooth.h if enabled * Autoconf fixes+cleanup @ text @d1 1 a1 1 $NetBSD$ d52 1 a52 1 + ${LIBTOOL} --mode=link @@CC@@ -rpath ${PREFIX}/lib ${LDFLAGS} $(OBJ) -o libpcap.la @ 1.5 log @Fix botched updated so that this package can actually be installed. @ text @d3 3 a5 4 --- Makefile.in.orig 2008-10-28 01:26:13.000000000 +0000 +++ Makefile.in 2008-10-30 16:30:21.000000000 +0000 @@@@ -44,7 +44,7 @@@@ # You shouldn't need to edit anything below. d8 1 d14 1 a14 1 @@@@ -73,7 +73,8 @@@@ d24 4 a27 4 @@@@ -83,13 +84,13 @@@@ CSRC = pcap.c inet.c gencode.c optimize.c nametoaddr.c \ etherent.c savefile.c bpf_filter.c bpf_image.c bpf_dump.c GENSRC = scanner.c grammar.c version.c d37 4 a40 4 HDR = \ acconfig.h \ arcnet.h \ @@@@ -311,12 +312,10 @@@@ d44 1 a44 1 -all: libpcap.a pcap-config d49 1 a49 1 - $(AR) rc $@@ $(OBJ) $(LIBS) d56 1 a56 1 @@@@ -348,10 +347,10 @@@@ d58 1 a58 1 ./runlex.sh $(LEX) -o$@@ $< d69 1 a69 1 @@@@ -360,17 +359,17 @@@@ d89 3 a91 3 sed -e 's/.*/char pcap_version[] = "&";/' $(srcdir)/VERSION > $@@ @@@@ -381,7 +380,7 @@@@ d98 3 a100 3 sed -e 's/.*/static const char pcap_version_string[] = "libpcap version &";/' $(srcdir)/VERSION > $@@ @@@@ -389,7 +388,7 @@@@ d109 3 a111 3 @@@@ -413,11 +412,10 @@@@ findalldevstest: findalldevstest.c libpcap.a $(CC) $(CFLAGS) -I. -L. -o findalldevstest findalldevstest.c libpcap.a d113 1 a113 1 -install: libpcap.a pcap-config d117 5 a121 2 - $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a - $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a d123 5 a127 7 [ -d $(DESTDIR)$(includedir) ] || \ (mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir)) [ -d $(DESTDIR)$(includedir)/pcap ] || \ @@@@ -445,31 +443,31 @@@@ $(DESTDIR)$(includedir)/pcap-bpf.h $(INSTALL_DATA) $(srcdir)/pcap-namedb.h \ $(DESTDIR)$(includedir)/pcap-namedb.h d133 1 a133 1 - for i in $(MAN3PCAP); do \ d135 1 a135 1 + for i in $(MAN3PCAP:.3pcap=.3); do \ d138 6 d146 1 d149 1 d152 1 d155 1 d158 1 d161 1 d164 1 d167 1 d170 1 d173 1 d176 1 d179 1 d182 1 d185 1 d188 1 d191 1 d194 1 d198 1 a198 1 $(INSTALL_DATA) $(srcdir)/`echo $$i | sed 's/.manfile.in/.manfile/'` \ @ 1.4 log @Changes 1.0.0: * Compile with IPv6 support by default * Compile with large file support on by default * Add pcap-config script, which deals with -I/-L flags for compiling * DLT: Add IPMB * DLT: Add LAPD * DLT: Add AX25 (AX.25 w/KISS header) * DLT: Add JUNIPER_ST * 802.15.4 support * Variable length 802.11 header support * X2E data type support * SITA ACN Interface support - see README.sita * Support for zerocopy BPF on platforms that support it * Better support for dealing with VLAN tagging/stripping on Linux * Fix dynamic library support on OSX @ text @d3 3 a5 3 --- Makefile.in.orig 2008-10-28 02:26:13.000000000 +0100 +++ Makefile.in @@@@ -44,7 +44,7 @@@@ VPATH = @@srcdir@@ d14 1 a14 1 @@@@ -73,7 +73,8 @@@@ YACC = @@V_YACC@@ d24 1 a24 1 @@@@ -83,13 +84,13 @@@@ SSRC = @@SSRC@@ d40 1 a40 1 @@@@ -311,12 +312,10 @@@@ EXTRA_DIST = \ d56 1 a56 1 @@@@ -348,10 +347,10 @@@@ scanner.c: $(srcdir)/scanner.l d69 1 a69 1 @@@@ -360,17 +359,17 @@@@ grammar.c: $(srcdir)/grammar.y d91 1 a91 1 @@@@ -381,7 +380,7 @@@@ version.c: $(srcdir)/VERSION d100 1 a100 1 @@@@ -389,7 +388,7 @@@@ bpf_filter.c: $(srcdir)/bpf/net/bpf_filt d109 1 a109 1 @@@@ -413,11 +412,10 @@@@ filtertest: filtertest.c libpcap.a d123 1 a123 1 @@@@ -445,31 +443,31 @@@@ install: libpcap.a pcap-config d137 1 a137 1 ln $(DESTDIR)$(mandir)/man3/pcap_datalink_val_to_name.3pcap \ d139 17 d157 1 a157 2 ln $(DESTDIR)$(mandir)/man3/pcap_dump_open.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_dump_fopen.3pcap d159 1 a159 2 ln $(DESTDIR)$(mandir)/man3/pcap_geterr.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_perror.3pcap d161 1 a161 2 ln $(DESTDIR)$(mandir)/man3/pcap_inject.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_sendpacket.3pcap d163 1 a163 2 ln $(DESTDIR)$(mandir)/man3/pcap_loop.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_dispatch.3pcap d165 1 a165 2 ln $(DESTDIR)$(mandir)/man3/pcap_major_version.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_minor_version.3pcap d167 1 a167 2 ln $(DESTDIR)$(mandir)/man3/pcap_next_ex.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_next.3pcap d169 1 a169 2 ln $(DESTDIR)$(mandir)/man3/pcap_open_offline.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_fopen_offline.3pcap d171 1 a171 2 ln $(DESTDIR)$(mandir)/man3/pcap_setnonblock.3pcap \ - $(DESTDIR)$(mandir)/man3/pcap_getnonblock.3pcap @ 1.3 log @Fix for PR#37066 @ text @d3 1 a3 1 --- Makefile.in.orig 2007-07-24 04:35:15.000000000 +0200 d5 1 a5 1 @@@@ -41,7 +41,7 @@@@ VPATH = @@srcdir@@ d14 1 a14 1 @@@@ -69,7 +69,8 @@@@ YACC = @@V_YACC@@ d24 1 a24 1 @@@@ -79,13 +80,13 @@@@ SSRC = @@SSRC@@ d37 6 a42 4 HDR = pcap.h pcap-int.h pcap-namedb.h pcap-nit.h pcap-pf.h \ ethertype.h gencode.h gnuc.h GENHDR = \ @@@@ -99,12 +100,10 @@@@ TAGFILES = \ d44 2 a45 4 CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c -all: libpcap.a +all: libpcap.la d49 1 a49 1 - ar rc $@@ $(OBJ) $(LIBS) d56 1 a56 1 @@@@ -128,10 +127,10 @@@@ scanner.c: $(srcdir)/scanner.l d58 1 a58 1 $(LEX) -t $< > $$$$.$@@; mv $$$$.$@@ $@@ d69 1 a69 1 @@@@ -140,17 +139,17 @@@@ grammar.c: $(srcdir)/grammar.y d91 1 a91 1 @@@@ -161,7 +160,7 @@@@ version.c: $(srcdir)/VERSION d100 1 a100 1 @@@@ -169,14 +168,13 @@@@ bpf_filter.c: $(srcdir)/bpf/net/bpf_filt d108 7 a114 2 -install: libpcap.a +install: libpcap.la d122 45 a166 1 $(INSTALL_DATA) $(srcdir)/pcap.h $(DESTDIR)$(includedir)/pcap.h @ 1.2 log @use libtool version of LIBOBJS @ text @d3 3 a5 3 --- Makefile.in.orig 2003-12-15 02:35:03.000000000 +0100 +++ Makefile.in 2006-12-06 21:37:05.000000000 +0100 @@@@ -41,7 +41,7 @@@@ d14 1 a14 1 @@@@ -67,7 +67,8 @@@@ d24 1 a24 1 @@@@ -77,13 +78,13 @@@@ d40 1 a40 1 @@@@ -97,12 +98,10 @@@@ d56 1 a56 1 @@@@ -126,10 +125,10 @@@@ d69 1 a69 1 @@@@ -138,14 +137,14 @@@@ d86 15 a100 2 version.c: $(srcdir)/VERSION @@@@ -167,14 +166,13 @@@@ @ 1.1 log @libtoolize, to get a shared library bump PKGREVISION @ text @d4 2 a5 2 +++ Makefile.in @@@@ -41,7 +41,7 @@@@ VPATH = @@srcdir@@ d14 1 a14 1 @@@@ -67,7 +67,8 @@@@ YACC = @@V_YACC@@ d24 8 a31 1 @@@@ -83,7 +84,7 @@@@ SRC = $(PSRC) $(FSRC) $(CSRC) $(SSRC) $( d40 1 a40 1 @@@@ -97,12 +98,10 @@@@ TAGFILES = \ d56 1 a56 1 @@@@ -126,10 +125,10 @@@@ scanner.c: $(srcdir)/scanner.l d69 1 a69 1 @@@@ -138,14 +137,14 @@@@ grammar.c: $(srcdir)/grammar.y d87 1 a87 1 @@@@ -167,14 +166,13 @@@@ bpf_filter.c: $(srcdir)/bpf/net/bpf_filt @