head 1.8; access; symbols pkgsrc-2013Q2:1.8.0.2 pkgsrc-2013Q2-base:1.8 pkgsrc-2012Q4:1.7.0.16 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.7.0.14 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.12 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.7.0.10 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.7.0.8 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q3:1.7.0.6 pkgsrc-2011Q3-base:1.7 pkgsrc-2011Q2:1.7.0.4 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.7.0.2 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.6.0.18 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.16 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.14 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.12 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.10 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.8 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.6.0.6 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.6.0.4 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.6.0.2 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.5.0.26 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.24 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.22 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.20 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.18 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.16 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.14 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.12 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.10 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.8 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.6 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.4 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.2 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.2.0.2 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.1.0.4 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.2; locks; strict; comment @# @; 1.8 date 2013.02.06.18.07.04; author jperkin; state dead; branches; next 1.7; 1.7 date 2011.02.11.12.11.26; author adam; state Exp; branches; next 1.6; 1.6 date 2008.10.30.08.12.52; author adam; state Exp; branches; next 1.5; 1.5 date 2005.12.21.11.20.03; author adrianp; state dead; branches; next 1.4; 1.4 date 2005.10.23.16.10.58; author wiz; state Exp; branches; next 1.3; 1.3 date 2005.10.22.14.14.42; author wiz; state Exp; branches; next 1.2; 1.2 date 2005.07.13.14.31.49; author drochner; state dead; branches; next 1.1; 1.1 date 2005.05.30.16.46.21; author yyamano; state Exp; branches 1.1.2.1; next ; 1.1.2.1 date 2005.05.30.16.46.21; author salo; state dead; branches; next 1.1.2.2; 1.1.2.2 date 2005.06.05.18.51.34; author salo; state Exp; branches; next ; desc @@ 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 @$NetBSD: patch-aa,v 1.7 2011/02/11 12:11:26 adam Exp $ --- pcap/pcap.h.orig 2008-10-29 15:08:55.000000000 +0100 +++ pcap/pcap.h @@@@ -349,10 +349,12 @@@@ void pcap_freealldevs(pcap_if_t *); const char *pcap_lib_version(void); /* XXX this guy lives in the bpf tree */ +#ifndef _NET_BPF_H_ u_int bpf_filter(const struct bpf_insn *, const u_char *, u_int, u_int); int bpf_validate(const struct bpf_insn *f, int len); char *bpf_image(const struct bpf_insn *, int); void bpf_dump(const struct bpf_program *, int); +#endif #if defined(WIN32) @ 1.7 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: patch-aa,v 1.6 2008/10/30 08:12:52 adam Exp $ @ 1.6 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 @d1 1 a1 1 $NetBSD$ d5 1 a5 1 @@@@ -336,10 +336,12 @@@@ void pcap_freealldevs(pcap_if_t *); @ 1.5 log @Remove obsolete patch hanginground from the 0.9.3 to 0.9.4 update @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2005/10/23 16:10:58 wiz Exp $ d3 15 a17 5 --- VERSION.orig 2005-07-11 22:09:47.000000000 +0200 +++ VERSION @@@@ -1 +1 @@@@ -0.9.2 +0.9.3 @ 1.4 log @Apply patch-aa to correct file. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Fix included version string. Addresses part of PR 31423 by Zafer Aydogan. Bump PKGREVISION. @ text @d3 2 a4 2 --- version.c.orig 2005-10-22 15:56:32.000000000 +0200 +++ version.c d6 2 a7 2 -char pcap_version[] = "0.9.2"; +char pcap_version[] = "0.9.3"; @ 1.2 log @update to 0.9.1 changes: Fixes for compiling on nearly every platform, including improved 64bit support MSDOS Support Add support for sending packets OpenBSD pf format support IrDA capture (Linux only) appearently filtering in ieee802_11_radio packets works now pkgsrc: enabled IPv6 for NetBSD too @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2005/05/30 16:46:21 yyamano Exp $ d3 5 a7 11 --- nametoaddr.c.orig 2003-11-20 03:13:48.000000000 +0900 +++ nametoaddr.c @@@@ -390,7 +390,7 @@@@ pcap_ether_hostton(const char *name) * compile on one of 3.x or 4.x). */ #if !defined(sgi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && \ - !defined(_UNICOSMP) + !defined(_UNICOSMP) && !defined(__APPLE__) extern int ether_hostton(char *, struct ether_addr *); #endif @ 1.1 log @Make this build on Darwin 8.1.0. @ text @d1 1 a1 1 $NetBSD$ @ 1.1.2.1 log @file patch-aa was added on branch pkgsrc-2005Q1 on 2005-05-30 16:46:21 +0000 @ text @d1 13 @ 1.1.2.2 log @Pullup ticket 543 - requested by Robert T. Retzlaff portability fix for libpcap Revisions pulled up: - pkgsrc/net/libpcap/distinfo 1.7 - pkgsrc/net/libpcap/patches/patch-aa 1.1 Module Name: pkgsrc Committed By: yyamano Date: Mon May 30 16:46:21 UTC 2005 Modified Files: pkgsrc/net/libpcap: distinfo Added Files: pkgsrc/net/libpcap/patches: patch-aa Log Message: Make this build on Darwin 8.1.0. @ text @a0 13 $NetBSD: patch-aa,v 1.1.2.1 2005/06/05 18:51:34 salo Exp $ --- nametoaddr.c.orig 2003-11-20 03:13:48.000000000 +0900 +++ nametoaddr.c @@@@ -390,7 +390,7 @@@@ pcap_ether_hostton(const char *name) * compile on one of 3.x or 4.x). */ #if !defined(sgi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && \ - !defined(_UNICOSMP) + !defined(_UNICOSMP) && !defined(__APPLE__) extern int ether_hostton(char *, struct ether_addr *); #endif @