libpcap: 8021xbridge patch ported

This commit is contained in:
Anton Bolshakov 2013-11-07 08:24:25 +00:00
parent a5e17d63c7
commit 9279615b3d
9 changed files with 1448 additions and 0 deletions

724
net-libs/libpcap/ChangeLog Normal file
View file

@ -0,0 +1,724 @@
# ChangeLog for net-libs/libpcap
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/ChangeLog,v 1.185 2013/07/27 17:09:36 jer Exp $
27 Jul 2013; Jeroen Roovers <jer@gentoo.org> metadata.xml:
Remove duplicate description.
09 May 2013; Jeroen Roovers <jer@gentoo.org> libpcap-1.4.0.ebuild:
Do not install libpcap.a when USE=-static-libs (readd the command that
"achieved" this in 1.3.0 (bug #469146 by Alphat-PC).
09 May 2013; Jeroen Roovers <jer@gentoo.org>
-files/libpcap-1.1-cross-linux.patch,
-files/libpcap-1.1.1-ignore-ENODEV.patch, -libpcap-1.1.1-r1.ebuild:
Old.
*libpcap-1.4.0 (09 May 2013)
09 May 2013; Jeroen Roovers <jer@gentoo.org> +libpcap-1.4.0.ebuild:
Version bump.
20 Feb 2013; Zac Medico <zmedico@gentoo.org> libpcap-1.3.0-r1.ebuild:
Add ~arm-linux keyword.
08 Feb 2013; Rick Farina <zerochaos@gentoo.org>
-files/libpcap-1.3.0-libnl3.patch, -libpcap-1.3.0-r2.ebuild:
after further testing, that was a terrible idea
*libpcap-1.3.0-r2 (08 Feb 2013)
08 Feb 2013; Rick Farina <zerochaos@gentoo.org>
+files/libpcap-1.3.0-libnl3.patch, +libpcap-1.3.0-r2.ebuild:
make libpcap link to libnl:3
*libpcap-1.3.0-r1 (18 Jan 2013)
18 Jan 2013; Lars Wendler <polynomial-c@gentoo.org> -libpcap-1.3.0.ebuild,
+libpcap-1.3.0-r1.ebuild,
+files/libpcap-1.3.0-fix-systems-without-ipv6-support.patch:
non-maintainer commit: Added a patch to fix libpcap on systems without ipv6
support with kind permission from zerochaos (bug #452832). Revbumped and
added straight to stable.
30 Sep 2012; Raúl Porcel <armin76@gentoo.org> libpcap-1.3.0.ebuild:
alpha/ia64/m68k/s390/sh/sparc stable wrt #433263
23 Sep 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> libpcap-1.3.0.ebuild:
x86 stable wrt bug #433263
18 Sep 2012; Jeroen Roovers <jer@gentoo.org> libpcap-1.3.0.ebuild:
Stable for HPPA (bug #433263).
11 Sep 2012; Jeroen Roovers <jer@gentoo.org> libpcap-1.3.0.ebuild,
+files/libpcap-1.3.0-canusb.patch, metadata.xml:
Make CAN USB support optional by Alexander Zubkov (bug #434538).
07 Sep 2012; Agostino Sarubbo <ago@gentoo.org> libpcap-1.3.0.ebuild:
Stable for amd64, wrt bug #433263
03 Sep 2012; Anthony G. Basile <blueness@gentoo.org> libpcap-1.3.0.ebuild:
Stable ppc64, bug #433263
03 Sep 2012; Anthony G. Basile <blueness@gentoo.org> libpcap-1.3.0.ebuild:
Stable ppc, bug #433263
03 Sep 2012; Anthony G. Basile <blueness@gentoo.org> libpcap-1.3.0.ebuild:
Stable arm, bug #433263
27 Aug 2012; Diego E. Pettenò <flameeyes@gentoo.org> -libpcap-1.2.0.ebuild,
-libpcap-1.2.1.ebuild, libpcap-1.1.1-r1.ebuild, libpcap-1.3.0.ebuild,
metadata.xml:
Remove old; replace libnl USE flag with netlink, as that is what other
packages are using, with the same meaning.
*libpcap-1.3.0 (19 Jun 2012)
19 Jun 2012; Jeroen Roovers <jer@gentoo.org> +libpcap-1.3.0.ebuild:
Version bump.
26 Apr 2012; Alexis Ballier <aballier@gentoo.org> libpcap-1.2.1.ebuild:
keyword ~amd64-fbsd
29 Feb 2012; Jeroen Roovers <jer@gentoo.org> -libpcap-1.1.1.ebuild:
Old.
28 Feb 2012; Brent Baude <ranger@gentoo.org> libpcap-1.1.1-r1.ebuild:
Marking libpcap-1.1.1-r1 ppc for bug 385875
19 Feb 2012; Fabian Groffen <grobian@gentoo.org> libpcap-1.2.1.ebuild:
Make sure we use -fPIC on sparc64-solaris targets, bug #396345
12 Feb 2012; Tony Vroon <chainsaw@gentoo.org> libpcap-1.1.1-r1.ebuild:
Marked stable on PPC64 as requested by Francisco "klondike" Blas Izquierdo
Riera in bug #385875. Compile tested on a PowerMac7,3 (64UL) with GCC
4.5.3.
*libpcap-1.2.1 (04 Jan 2012)
04 Jan 2012; Tim Harder <radhermit@gentoo.org> +libpcap-1.2.1.ebuild:
Version bump.
17 Dec 2011; Jeroen Roovers <jer@gentoo.org> libpcap-1.1.1-r1.ebuild:
Restore old version (bug #395033).
16 Dec 2011; Jeroen Roovers <jer@gentoo.org> libpcap-1.2.0.ebuild:
Restore libnl:1.1 dependency.
*libpcap-1.2.0 (16 Dec 2011)
16 Dec 2011; Jeroen Roovers <jer@gentoo.org> libpcap-1.1.1-r1.ebuild,
+libpcap-1.2.0.ebuild, +files/libpcap-1.2.0-cross-linux.patch:
Version bump thanks to Michael (kensington) and Yun Zheng Hu (bug #393085).
11 Dec 2011; Raúl Porcel <armin76@gentoo.org> libpcap-1.1.1-r1.ebuild:
alpha/ia64/m68k/s390/sh/sparc stable wrt #385875
08 Dec 2011; Markus Meier <maekke@gentoo.org> libpcap-1.1.1-r1.ebuild:
arm stable, bug #385875
07 Dec 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> libpcap-1.1.1-r1.ebuild:
x86 stable wrt bug #385875
05 Dec 2011; Jeroen Roovers <jer@gentoo.org> libpcap-1.1.1-r1.ebuild:
Stable for HPPA (bug #385875).
04 Dec 2011; Markos Chandras <hwoarang@gentoo.org> libpcap-1.1.1-r1.ebuild:
Stable on amd64 wrt bug #385875
04 Dec 2011; Jeroen Roovers <jer@gentoo.org> libpcap-1.1.1-r1.ebuild,
-files/libpcap-1.1.1-libidn2.patch:
Restore dependency on dev-libs/libnl:1.1, remove faulty patch (bug #385875,
comment #1).
22 Nov 2011; Jeroen Roovers <jer@gentoo.org> libpcap-1.1.1-r1.ebuild:
Add IUSE=static-libs thanks to Piotr Karbowski (bug #391375).
28 Oct 2011; Jeroen Roovers <jer@gentoo.org> libpcap-1.1.1.ebuild:
Fix libnl dependency (bug #342461).
12 Sep 2011; Tomáš Chvátal <scarabeus@gentoo.org> libpcap-1.1.1-r1.ebuild:
Move to eapi4, remove static libs, fix building with >libnl-2. Closes bug
#343621. Remove older overshadowed versions.
11 Aug 2011; Mike Frysinger <vapier@gentoo.org> libpcap-1.1.1.ebuild,
libpcap-1.1.1-r1.ebuild:
Pull in yacc #378423 by Zachary Richley.
02 Apr 2011; Samuli Suominen <ssuominen@gentoo.org> libpcap-0.9.8-r2.ebuild,
libpcap-1.0.0-r2.ebuild, libpcap-1.0.1_pre20090812.ebuild,
libpcap-1.1.1.ebuild, libpcap-1.1.1-r1.ebuild:
Remove PROVIDE="virtual/libpcap" wrt #358835.
19 Jun 2010; Mike Frysinger <vapier@gentoo.org> libpcap-1.1.1.ebuild,
libpcap-1.1.1-r1.ebuild:
Restore m68k/mips keywords #313827.
*libpcap-1.1.1-r1 (11 Jun 2010)
11 Jun 2010; Peter Volkov <pva@gentoo.org> +libpcap-1.1.1-r1.ebuild,
+files/libpcap-1.1.1-ignore-ENODEV.patch:
Fix pcap_findalldevs for kernel with Bonding devices support enabled, bug
#323425, thank Oliver Schmidt for report.
11 Jun 2010; Samuli Suominen <ssuominen@gentoo.org>
libpcap-1.0.0-r2.ebuild, libpcap-1.0.1_pre20090812.ebuild,
libpcap-1.1.1.ebuild:
Drop bluez-libs support wrt #301630.
04 Jun 2010; Jeroen Roovers <jer@gentoo.org> libpcap-1.1.1.ebuild:
Stable for PPC (bug #313827).
16 May 2010; Raúl Porcel <armin76@gentoo.org> libpcap-1.1.1.ebuild:
alpha/ia64/s390/sh/sparc stable wrt #313827
13 May 2010; Peter Volkov <pva@gentoo.org> libpcap-1.1.1.ebuild:
Force usbmon device for USB capturing, bug #318359, thank David Relson for
report.
12 May 2010; Brent Baude <ranger@gentoo.org> libpcap-1.1.1.ebuild:
stable ppc64, bug 313827
21 Apr 2010; Peter Volkov <pva@gentoo.org> libpcap-1.1.1.ebuild:
amd64 stable, bug 313827
21 Apr 2010; Christian Faulhammer <fauli@gentoo.org> libpcap-1.1.1.ebuild:
stable x86, bug 313827
21 Apr 2010; Jeroen Roovers <jer@gentoo.org> libpcap-1.1.1.ebuild:
Stable for HPPA (bug #313827).
*libpcap-1.1.1 (08 Apr 2010)
08 Apr 2010; Peter Volkov <pva@gentoo.org>
-libpcap-1.0.1_pre20090708.ebuild, -libpcap-1.1.0-r1.ebuild,
+libpcap-1.1.1.ebuild:
Version bump.
*libpcap-1.1.0-r1 (04 Apr 2010)
04 Apr 2010; Peter Volkov <pva@gentoo.org> -libpcap-1.1.0.ebuild,
+libpcap-1.1.0-r1.ebuild:
Don't install broken .so symlinks (this forced linkage with libpcap.a),
bug #312895, thank Davide Pesavento for report.
*libpcap-1.1.0 (02 Apr 2010)
02 Apr 2010; Peter Volkov <pva@gentoo.org> +libpcap-1.1.0.ebuild,
+files/libpcap-1.1-cross-linux.patch:
Version bump, bug #312337, thank Richard Hartmann for report. Fixes
compatibility issue with autoconf-2.64, bug #281690, dropped Mike's patch
for that.
25 Feb 2010; Fabian Groffen <grobian@gentoo.org>
libpcap-1.0.1_pre20090812.ebuild:
Marked ~x64-macos, thanks Ramon van Alteren, bug #305367
16 Jan 2010; Jonathan Callen <abcd@gentoo.org>
libpcap-1.0.1_pre20090812.ebuild:
Add prefix keywords
24 Nov 2009; Mike Frysinger <vapier@gentoo.org>
libpcap-1.0.1_pre20090812.ebuild, +files/libpcap-1.0.1-autoconf.patch:
Fix building with autoconf-2.64+ #281690.
12 Oct 2009; Jeroen Roovers <jer@gentoo.org> libpcap-1.0.0-r2.ebuild:
Stable for HPPA (bug #284790).
10 Oct 2009; Raúl Porcel <armin76@gentoo.org> libpcap-1.0.0-r2.ebuild:
ia64/s390/sh/sparc stable wrt #284790
09 Oct 2009; Markus Meier <maekke@gentoo.org> libpcap-1.0.0-r2.ebuild:
arm stable, bug #284790
01 Oct 2009; Tobias Klausmann <klausman@gentoo.org>
libpcap-1.0.0-r2.ebuild:
Stable on alpha, bug #284790
27 Sep 2009; Brent Baude <ranger@gentoo.org> libpcap-1.0.0-r2.ebuild:
stable ppc64, bug 284790
27 Sep 2009; Mounir Lamouri <volkmar@gentoo.org> libpcap-1.0.0-r2.ebuild:
Stable for ppc. Bug 284790
16 Sep 2009; Christian Faulhammer <fauli@gentoo.org>
libpcap-1.0.0-r2.ebuild:
stable x86, bug 284790
13 Sep 2009; Olivier Crête <tester@gentoo.org> libpcap-1.0.0-r2.ebuild:
Stable on amd64, bug #284790
*libpcap-1.0.1_pre20090812 (29 Aug 2009)
29 Aug 2009; Robin H. Johnson <robbat2@gentoo.org>
+libpcap-1.0.1_pre20090812.ebuild,
+files/libpcap-1.0.1_pre20090812-poll-cpu-usage.patch:
Bump to newer snapshot, and include poll() CPU usage fix from Ubuntu.
Massively drops CPU usage for live captures again.
22 Jul 2009; Tobias Klausmann <klausman@gentoo.org>
libpcap-1.0.1_pre20090708.ebuild:
Keyworded on alpha, bug #277033
*libpcap-1.0.1_pre20090708 (08 Jul 2009)
08 Jul 2009; Peter Volkov <pva@gentoo.org>
-libpcap-1.0.1_pre20090616.ebuild, +libpcap-1.0.1_pre20090708.ebuild,
+files/libpcap-1.0.1_pre20090708-libnl-automagic.patch, metadata.xml:
Version bump, fixes 100% cpu usage, bug #275257, thank Michael O'Brien for
report. Remove affected version.
*libpcap-1.0.1_pre20090616 (17 Jun 2009)
17 Jun 2009; Peter Volkov <pva@gentoo.org> -libpcap-1.0.0.ebuild,
-libpcap-1.0.0-r1.ebuild, +libpcap-1.0.1_pre20090616.ebuild:
Version bump up to latest git snapshot. Fixes too many bugs, e.g. now it
works with any interface, builds with -fPIC on FreeBSD (bug #262060, thank
Timothy Redaelli).
*libpcap-1.0.0-r2 (26 May 2009)
26 May 2009; Jeroen Roovers <jer@gentoo.org> +libpcap-1.0.0-r2.ebuild,
+files/libpcap-1.0.0-freebsd-pic.patch:
Build -fPIC on FreeBSD too (thanks to Timothy Redaelli, bug #262060).
12 May 2009; Peter Alfredsen <loki_val@gentoo.org>
libpcap-1.0.0-r1.ebuild:
List net-wireless/bluez first in ( a b ) dependency w.r.t. bug 269519.
01 Mar 2009; Tiziano Müller <dev-zero@gentoo.org>
libpcap-1.0.0-r1.ebuild:
Added net-wireless/bluez as possible dep for bluetooth
07 Dec 2008; Mike Frysinger <vapier@gentoo.org> libpcap-1.0.0-r1.ebuild:
Add back s390 #247076.
28 Nov 2008; Alexis Ballier <aballier@gentoo.org> libpcap-1.0.0-r1.ebuild:
keyword ~x86-fbsd, bug #247076
*libpcap-1.0.0-r1 (16 Nov 2008)
16 Nov 2008; Peter Volkov <pva@gentoo.org>
+files/libpcap-1.0.0-LDFLAGS.patch,
+files/libpcap-1.0.0-cross-linux.patch,
+files/libpcap-1.0.0-install-bindir.patch,
+files/libpcap-1.0.0-install-headers.patch,
+files/libpcap-1.0.0-optional-bluetooth.patch, -libpcap-0.9.8.ebuild,
-libpcap-0.9.8-r1.ebuild, +libpcap-1.0.0-r1.ebuild:
Fixed library soname, added possibility to build with bluetooth support
(dropped m68k mips s390 sparc-fbsd x86-fbsd). Removed unused.
*libpcap-1.0.0 (08 Nov 2008)
08 Nov 2008; Cédric Krier <cedk@gentoo.org>
+files/libpcap-1.0.0-bindir.patch, +files/libpcap-1.0.0-whitespace.patch,
+libpcap-1.0.0.ebuild:
Version bump
28 Oct 2008; Raúl Porcel <armin76@gentoo.org> libpcap-0.9.8-r2.ebuild:
alpha/ia64 stable #244234
28 Oct 2008; Brent Baude <ranger@gentoo.org> libpcap-0.9.8-r2.ebuild:
stable ppc64, bug 244234
26 Oct 2008; Jeroen Roovers <jer@gentoo.org> libpcap-0.9.8-r2.ebuild:
Stable for HPPA (bug #244234).
25 Oct 2008; Ferris McCormick <fmccor@gentoo.org> libpcap-0.9.8-r2.ebuild:
Sparc stable, Bug #244234.
25 Oct 2008; nixnut <nixnut@gentoo.org> libpcap-0.9.8-r2.ebuild:
Stable on ppc wrt bug 244234
25 Oct 2008; Markus Meier <maekke@gentoo.org> libpcap-0.9.8-r2.ebuild:
amd64/x86 stable, bug #244234
*libpcap-0.9.8-r2 (16 Sep 2008)
16 Sep 2008; Peter Volkov <pva@gentoo.org>
+files/libpcap-0.9.8-arptype-65534.patch,
+files/libpcap-0.9.8-pcap_compile.patch, libpcap-0.9.8.ebuild,
+libpcap-0.9.8-r2.ebuild:
Added upstream patch to avoid msg "arptype 65534 not supported by
libpcap", bug #229189, thank Toralf Förster for report. Added upstream
patch to allow pcap_compile() to be called more than once.
23 May 2008; Markus Meier <maekke@gentoo.org> libpcap-0.9.8-r1.ebuild:
amd64 stable, bug #222533
20 May 2008; Jeroen Roovers <jer@gentoo.org> libpcap-0.9.8-r1.ebuild:
Stable for HPPA (bug #222533).
19 May 2008; nixnut <nixnut@gentoo.org> libpcap-0.9.8-r1.ebuild:
Stable on ppc wrt bug 222533
18 May 2008; Markus Rothe <corsair@gentoo.org> libpcap-0.9.8-r1.ebuild:
Stable on ppc64; bug #222533
17 May 2008; Raúl Porcel <armin76@gentoo.org> libpcap-0.9.8-r1.ebuild:
ia64/sparc/x86 stable wrt #222533
17 May 2008; Tobias Klausmann <klausman@gentoo.org>
libpcap-0.9.8-r1.ebuild:
Stable on alpha, bug #222533
16 May 2008; Marcelo Goes <vanquirius@gentoo.org> libpcap-0.9.8.ebuild,
libpcap-0.9.8-r1.ebuild:
Add sys-devel/flex dependency for bug 221397. Thanks to Diego Petteno
<flameeyes at gentoo dot org>.
16 May 2008; Marcelo Goes <vanquirius@gentoo.org> -libpcap-0.9.5.ebuild,
-libpcap-0.9.6.ebuild, -libpcap-0.9.7.ebuild:
Remove old ebuilds.
*libpcap-0.9.8-r1 (01 Apr 2008)
01 Apr 2008; Daniel Black <dragonheart@gentoo.org>
+files/libpcap-0.9.8-largefile.patch, +libpcap-0.9.8-r1.ebuild:
added large file support as per bug #175239
19 Nov 2007; Joshua Kinard <kumba@gentoo.org> libpcap-0.9.8.ebuild:
Stable on mips, per #198476.
14 Nov 2007; Jeroen Roovers <jer@gentoo.org> libpcap-0.9.8.ebuild:
Stable for HPPA (bug #198476).
10 Nov 2007; Markus Rothe <corsair@gentoo.org> libpcap-0.9.8.ebuild:
Stable on ppc64; bug #198476
10 Nov 2007; Daniel Gryniewicz <dang@gentoo.org> libpcap-0.9.8.ebuild:
Marked stable on amd64 for bug #198476
09 Nov 2007; nixnut <nixnut@gentoo.org> libpcap-0.9.8.ebuild:
Stable on ppc wrt bug 198476
08 Nov 2007; Raúl Porcel <armin76@gentoo.org> libpcap-0.9.8.ebuild:
alpha/ia64/sparc/x86 stable wrt #198476
13 Oct 2007; Tom Gall <tgall@gentoo.org> libpcap-0.9.7.ebuild:
stable on ppc64, bug #193787
09 Oct 2007; Markus Ullmann <jokey@gentoo.org> libpcap-0.9.7.ebuild,
libpcap-0.9.8.ebuild:
Quote me
*libpcap-0.9.8 (09 Oct 2007)
09 Oct 2007; Markus Ullmann <jokey@gentoo.org> -libpcap-0.9.4.ebuild,
+libpcap-0.9.8.ebuild:
Version bump wrt bug #194890
29 Sep 2007; Christoph Mende <angelos@gentoo.org> libpcap-0.9.7.ebuild:
Stable on amd64 wrt bug #193787
28 Sep 2007; nixnut <nixnut@gentoo.org> libpcap-0.9.7.ebuild:
Stable on ppc wrt bug 193787
28 Sep 2007; Joshua Kinard <kumba@gentoo.org> libpcap-0.9.7.ebuild:
Stable on mips, per #193787.
27 Sep 2007; Jeroen Roovers <jer@gentoo.org> libpcap-0.9.7.ebuild:
Stable for HPPA (bug #193787).
14 Sep 2007; Markus Ullmann <jokey@gentoo.org> libpcap-0.9.7.ebuild:
Stable on x86 and sparc
13 Sep 2007; Markus Ullmann <jokey@gentoo.org> libpcap-0.9.7.ebuild:
convert from einstall to emake install to solve install bug on sparc
06 Sep 2007; Raúl Porcel <armin76@gentoo.org> libpcap-0.9.7.ebuild:
alpha/ia64/x86 stable
13 Aug 2007; Tobias Scherbaum <dertobi123@gentoo.org>
libpcap-0.9.6.ebuild:
ppc. stable
*libpcap-0.9.7 (02 Aug 2007)
02 Aug 2007; Raphael Marichez <falco@gentoo.org> +libpcap-0.9.7.ebuild:
Version bump
02 Aug 2007; Christian Birchinger <joker@gentoo.org> libpcap-0.9.6.ebuild:
Added sparc stable keyword
24 Jul 2007; Raúl Porcel <armin76@gentoo.org> libpcap-0.9.6.ebuild:
alpha/ia64/x86 stable
10 Jul 2007; Christoph Mende <angelos@gentoo.org> libpcap-0.9.5.ebuild:
Stable on amd64 wrt bug #184717
10 Jul 2007; Jeroen Roovers <jer@gentoo.org> libpcap-0.9.5.ebuild:
Stable for HPPA (bug #184717).
09 Jul 2007; Raúl Porcel <armin76@gentoo.org> libpcap-0.9.5.ebuild:
alpha stable wrt #184717
26 Jun 2007; <pva@gentoo.org> libpcap-0.9.6.ebuild:
Omit installation of unnecessary README files. Thank Samuli Suominen <drac
AT gentoo.org> for report in bug 183057.
*libpcap-0.9.6 (23 Jun 2007)
23 Jun 2007; Cédric Krier <cedk@gentoo.org> +libpcap-0.9.6.ebuild:
Version bump
12 May 2007; Joshua Kinard <kumba@gentoo.org> libpcap-0.9.5.ebuild:
Stable on mips.
05 May 2007; Cedric Krier <cedk@gentoo.org>
+files/libpcap-cross-linux.patch, libpcap-0.9.5.ebuild:
Add patch for cross-compile for bug #172210
22 Apr 2007; Joel Martin <kanaka@gentoo.org> libpcap-0.9.5.ebuild:
Fix typo in cross-compile check.
21 Apr 2007; Cedric Krier <cedk@gentoo.org> libpcap-0.9.5.ebuild:
Fix test cross-compile
20 Apr 2007; Cedric Krier <cedk@gentoo.org> libpcap-0.9.5.ebuild:
Remove is_crosscompile function
19 Apr 2007; Cedric Krier <cedk@gentoo.org> libpcap-0.9.5.ebuild:
Add cross compile test for bug #172210
16 Apr 2007; Markus Rothe <corsair@gentoo.org> libpcap-0.9.5.ebuild:
Stable on ppc64
08 Apr 2007; Joseph Jezak <josejx@gentoo.org> libpcap-0.9.5.ebuild:
Marked ppc stable.
16 Mar 2007; Gustavo Zacarias <gustavoz@gentoo.org> libpcap-0.9.5.ebuild:
Stable on sparc
15 Mar 2007; Raúl Porcel <armin76@gentoo.org> libpcap-0.9.5.ebuild:
x86 stable
12 Dec 2006; Marcelo Goes <vanquirius@gentoo.org> -libpcap-0.9.3.ebuild:
Remove old ebuild.
04 Nov 2006; Alexander H. Færøy <eroyf@gentoo.org> libpcap-0.9.4.ebuild:
Stable on alpha.
17 Oct 2006; Roy Marples <uberlord@gentoo.org> libpcap-0.9.5.ebuild:
Added ~sparc-fbsd keyword.
*libpcap-0.9.5 (08 Oct 2006)
08 Oct 2006; Markus Ullmann <jokey@gentoo.org> +libpcap-0.9.5.ebuild:
Version bump
29 Jul 2006; Marcelo Goes <vanquirius@gentoo.org>
-libpcap-0.8.3-r1.ebuild:
Remove old ebuild.
26 May 2006; Mike Frysinger <vapier@gentoo.org> ChangeLog:
Dont strip binaries #133580 by Diego Pettenò.
01 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> libpcap-0.9.4.ebuild:
Drop virtual/libc dependency and keyword ~x86-fbsd.
19 Mar 2006; Markus Ullmann <jokey@gentoo.org> libpcap-0.8.3-r1.ebuild,
libpcap-0.9.3.ebuild, libpcap-0.9.4.ebuild:
Respecting LDFLAGS when building libpcap.so now
10 Mar 2006; Michael Hanselmann <hansmi@gentoo.org> libpcap-0.9.4.ebuild:
Stable on ppc.
07 Mar 2006; Chris White <chriswhite@gentoo.org> libpcap-0.9.4.ebuild:
0.9.4 to amd64 stable.
27 Feb 2006; Markus Rothe <corsair@gentoo.org> libpcap-0.9.4.ebuild:
Stable on ppc64
27 Feb 2006; Christian Birchinger <joker@gentoo.org> libpcap-0.9.4.ebuild:
Added sparc stable keyword
26 Feb 2006; Joshua Kinard <kumba@gentoo.org> libpcap-0.9.4.ebuild:
Marked stable on mips.
26 Feb 2006; Marcelo Goes <vanquirius@gentoo.org> libpcap-0.9.4.ebuild:
Mark 0.9.4 x86 stable.
*libpcap-0.9.4 (08 Jan 2006)
08 Jan 2006; Marcelo Goes <vanquirius@gentoo.org> +libpcap-0.9.4.ebuild:
0.9.4 version bump.
24 Sep 2005; Markus Rothe <corsair@gentoo.org> libpcap-0.9.3.ebuild:
Stable on ppc64
17 Sep 2005; Aron Griffis <agriffis@gentoo.org> libpcap-0.9.3.ebuild:
Mark 0.9.3 stable on ia64
16 Sep 2005; <dang@gentoo.org> libpcap-0.9.3.ebuild:
Marked stable on amd64
15 Sep 2005; Aron Griffis <agriffis@gentoo.org> libpcap-0.9.3.ebuild:
Mark 0.9.3 stable on alpha
15 Sep 2005; Joseph Jezak <josejx@gentoo.org> libpcap-0.9.3.ebuild:
Marked ppc stable.
13 Sep 2005; Gustavo Zacarias <gustavoz@gentoo.org> libpcap-0.9.3.ebuild:
Stable on sparc
12 Sep 2005; Daniel Black <dragonheart@gentoo.org> libpcap-0.9.3.ebuild:
x86 stable by popular request - bug #102505
11 Sep 2005; Marcelo Goes <vanquirius@gentoo.org>
+files/libpcap-0.9.3-whitespace.diff, libpcap-0.9.3.ebuild:
Adding patch to remove whitespace in pcap.h to avoid non-portable whitespace
warnings in programs that include it.
04 Aug 2005; Daniel Black <dragonheart@gentoo.org>
libpcap-0.8.3-r1.ebuild, libpcap-0.9.3.ebuild:
fixed absolute symlinks as per bug #101216 thanks to Simon Stelling
*libpcap-0.9.3 (15 Jul 2005)
15 Jul 2005; Aaron Walker <ka0ttic@gentoo.org> +libpcap-0.9.3.ebuild:
Version bump for bug 99099.
06 May 2005; Diego Pettenò <flameeyes@gentoo.org>
libpcap-0.8.3-r1.ebuild:
Check for BSD systems using USERLAND variable.
06 May 2005; Aaron Walker <ka0ttic@gentoo.org> libpcap-0.8.3-r1.ebuild:
Install pcap-int.h on fbsd.
29 Jan 2005; Daniel Black <dragonheart@gentoo.org> libpcap-0.8.3-r1.ebuild:
new PROVIDE - virtual/libpcap
22 Jan 2005; Daniel Black <dragonheart@gentoo.org> -libpcap-0.7.2-r1.ebuild,
-libpcap-0.7.2.ebuild, -libpcap-0.8.1-r1.ebuild, -libpcap-0.8.1.ebuild,
libpcap-0.8.3-r1.ebuild, -libpcap-0.8.3.ebuild:
QA fix using toolchain-funcs for gcc. Removed old versions
19 Jan 2005; Daniel Black <dragonheart@gentoo.org> libpcap-0.8.3-r1.ebuild:
Corrected for multilib as per bug #78534. Thanks to Kevin Koltzau
<kevin@plop.org>
17 Jul 2004; Tom Gall <tgall@gentoo.org> libpcap-0.8.3-r1.ebuild:
stable on ppc64, bug #56911
01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
libpcap-0.7.2-r1.ebuild, libpcap-0.7.2.ebuild, libpcap-0.8.1-r1.ebuild,
libpcap-0.8.1.ebuild, libpcap-0.8.3-r1.ebuild, libpcap-0.8.3.ebuild:
virtual/glibc -> virtual/libc
04 Apr 2004; Aron Griffis <agriffis@gentoo.org> libpcap-0.8.3-r1.ebuild:
Mark stable on alpha and ia64 for bug 46258
04 Apr 2004; Jon Portnoy <avenj@gentoo.org> libpcap-0.8.3-r1.ebuild :
Stable on AMD64
03 Apr 2004; Jason Wever <weeve@gentoo.org> libpcap-0.8.3-r1.ebuild:
Stable on sparc wrt bug #46258.
03 Apr 2004; <solar@gentoo.org> libpcap-0.8.3-r1.ebuild:
stable on x86
03 Apr 2004; Lars Weiler <pylon@gentoo.org> libpcap-0.8.3-r1.ebuild:
stable on ppc as requested in bug #46258
*libpcap-0.8.3-r1 (31 Mar 2004)
31 Mar 2004; <solar@gentoo.org> libpcap-0.8.3-r1.ebuild:
corrected the naming convention of the shared object in ebuild from 0.6 to 0.8
to match current version of libpcap. A revdep-rebuild or equivalent will be
required for users that have any port that remains directly linked to the
/usr/lib/libpcap.so.0.6 library after the update
*libpcap-0.8.3 (30 Mar 2004)
30 Mar 2004; Jason Wever <weeve@gentoo.org> libpcap-0.8.3.ebuild:
Stable on sparc.
30 Mar 2004; <solar@gentoo.org> :
bumping libpcap to 0.8.3 for tcpdump Bugzilla Bug 46258
*libpcap-0.7.2-r1 (15 Feb 2004)
*libpcap-0.8.1-r1 (15 Feb 2004)
15 Feb 2004; Michael Boman <mboman@gentoo.org> libpcap-0.7.2-r1.ebuild,
libpcap-0.8.1-r1.ebuild, metadata.xml:
Fixing bug #41647, #41648 and #41649
These ebuilds seems to be unmaintained so i'm making myself the
maintainer for now.
15 Jan 2004; <gustavoz@gentoo.org> libpcap-0.8.1.ebuild:
marked hppa and sparc, fixes #38206
*libpcap-0.8.1 (03 Jan 2004)
03 Jan 2004; Daniel Ahlberg <aliz@gentoo.org> libpcap-0.8.1.ebuild,
files/libpcap-0.8.1-fPIC.patch:
Version bump. Closing #37092.
22 Apr 2003; Daniel Ahlberg <aliz@gentoo.org> :
Unmask to keep libpcap in sync to tcpdump. Closes #19517.
*libpcap-0.7.2 (03 Mar 2003)
27 Apr 2003; Zach Welch <zwelch@gentoo.org> libpcap-0.7.2.ebuild:
add arm keyword
03 Mar 2003; Daniel Ahlberg <aliz@gentoo.org> :
Version bump.
27 Feb 2003; Peter Johanson <latexer@gentoo.org> libpcap-0.7.1-r1.ebuild :
Changed to stable on x86
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
*libpcap-0.7.1-r2 (3 Jan 2003)
25 Feb 2003; Guy Martin <gmsoft@gentoo.org> libpcap-0.7.1-r2.ebuild :
Added hppa to keywords.
15 Feb 2003; Nicholas Wourms <dragon@gentoo.org> libpcap-0.7.1-r2.ebuild :
Added mips keyword to ebuild.
10 Feb 2003; Peter Johanson <latexer@gentoo.org> libpcap-0.7.1-r2.ebuild :
Added ~alpha to KEYWORDS
3 Jan 2003; Stefan Jones <cretin@gentoo.org> :
Added -fpic to the CFLAGS to aid prelinking.
*libpcap-0.7.1-r1 (31 Aug 2002)
30 Mar 2003; Christian Birchinger <joker@gentoo.org>
libpcap-0.7.1-r1.ebuild:
Added sparc stable keyword
15 Feb 2003; Nicholas Wourms <dragon@gentoo.org> libpcap-0.7.1-r1.ebuild :
Added mips keyword to ebuild.
02 Nov 2002; Calum Selkirk <cselkirk@gentoo.org> libpcap-0.7.1-r1.ebuild :
Added ~arch so as to remove from package.mask
31 Aug 2002; Calum Selkirk <cselkirk@gentoo.org> libpcap-0.7.1-r1.ebuild
files/digest-libpcap-0.7.1-r1 :
Added a patch for Prism Header data capture (wireless). This patch allows
Airsnort (and other wireless packet sniffers) to work.
*libpcap-0.7.1 (11 May 2002)
15 Feb 2003; Nicholas Wourms <dragon@gentoo.org> libpcap-0.7.1.ebuild :
Added mips keyword to ebuild.
11 May 2002; Spider <spider@gentoo.org> libpcap-0.7.1.ebuild :
version bump for the new tcpdump
*libpcap-0.6.2-r1 (1 Feb 2002)
1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

10
net-libs/libpcap/Manifest Normal file
View file

@ -0,0 +1,10 @@
AUX libpcap-1.2.0-cross-linux.patch 583 SHA256 89344641676edfd9dc70b05569ac26a8ac79815fa5df0cf8e2ee77b3f9c5877f SHA512 4249129122f8ae382e086820ac4852d1413e3a7dd1f8db370aace1e94a1b0cf40d5f6d97213ca52e224e02472fed60b03c7f89d0ccd45e44ef0039a432595adb WHIRLPOOL 47598355e51ca3a15f1f817927aa73481c9a02ca15ca57ea487e1b42918a85b53aaa311be991dfc3362a2df3dd9ecee3059738e08760af8d6d9e4770578db3e3
AUX libpcap-1.3.0-canusb.patch 290 SHA256 3518dc59be25c3092df6e133694b4d4372552ff8d25e2371f3fc0f587de83054 SHA512 c3d6138d58c268fcf0799bf74c65ff648f2f7c6e46d3534d3941b9ae678510463388518db3b688ca85e89d79e31dedb147a8cbc9710b8ca0ca4a766913ba8fbf WHIRLPOOL 33225aa8eea3eb74b4d81c6746034d7cf88a0b2fad352888362cf87e565935b326b5a2aa6c4f857c21c44971a0b6b616e33130dd906511ef874e16b2872c8dd1
AUX libpcap-1.3.0-fix-systems-without-ipv6-support.patch 13183 SHA256 14973d5dc09e036281cf507ca7fead8bf352e17dcb949a90942d58e5affda29c SHA512 cdf61a8dfe2cba0a8f3bf84a749c48eb3e75e634880f86acf7225793c921577137eca7579812c0c38a6e128cca58214d0eb614b11ec47d5f6d25d53557d49185 WHIRLPOOL 49c7ac019e969bb18f384e11b77b986417da5d2e4b5986624efe8e4555982c629a68705c1a72c0761552acd7523653ffde426fcc9bbd61aa15a44bb4a38a2417
AUX libpcap-1.3.0-for-inbound-outbount-on-ethernet.patch 597 SHA256 a9697fad2796b824fedd7a5efd9de1f024f533a22df2247409201db0bd2d0e6d SHA512 1e350603b77d8441bf35b64d5c924165fe3151204555f5b9170f4903ccf45e2a9174f4bd6517a9e4239789b352d9e6acaf67552bdc24d2449947dd899ed6787a WHIRLPOOL 32ba79f9ef0d483916d289361cea525a43e847bedfbfbd9a6740d1d02badb9157ef31beb3345fedf14da557070e982b6295e64e9162c5ae55eafa6a2ff1ceeb9
DIST libpcap-1.3.0.tar.gz 608967 SHA256 41cbd9ed68383afd9f1fda279cb78427d36879d9e34ee707e31a16a1afd872b9 SHA512 c023abb3da7b9f62835fa04ca43b50203d7e3da7b624d09a693c8b02fd531c3845e1c86cbc587ae02816614133f5342585f6a2985fdaf92889fcfaca7bfb8908 WHIRLPOOL 774897ce4dcd1655945313a145399da9db0063967ce246e1c7beb21f038ee4c5bcfe2b4ec7b08316a013fdb33b50781f5195bf169a2ca6f84ddc2bf5bca78f15
DIST libpcap-1.4.0.tar.gz 619045 SHA256 7c6a2a4f71e8ab09804e6b4fb3aff998c5583108ac42c0e2967eee8e1dbc7406 SHA512 b7662867c6449c603a65c37e63ce881260dee80989ccb5b71b1e55fa437fb18ac9bb123a7b8ed68302baf4511b97bca40d9f08dea7b0dd0eb6a2ac4a7b73cf15 WHIRLPOOL d070b6dc298baa2474e5a268b3541f614dc7dc35463af57f5a8d9b4b4c453d4e8f0106a7d9ce7f77e632ddf76e6b738ee5a81198ca57fe701ad1bb95359e37c2
EBUILD libpcap-1.3.0-r1.ebuild 1871 SHA256 caf2d5a973612f5c549c8b1adc17531148010d68155c3fb415e99d8ab7179807 SHA512 e6b6627dcf81bb4303166cf785cfdaabadfddf796dceec9360503250ae036d1637dbd8391455b7f23dd7862d39d506311e037b1a777d401bb78aadfeeb7a0923 WHIRLPOOL 3b62ceef6c7b8ab4c666bf83f9378e73817607c7dd31a5f2400f90fafc151d46c8d9aa0af10bf66b9bd3467418cef5dd165616712b4055bbac93e0e0b6d7b639
EBUILD libpcap-1.4.0.ebuild 1692 SHA256 2f391d161593fb62e9b9e10e1c18ffc7efc8c5b50a7f18e7379fb0f6c95bdd28 SHA512 33669d0e438e63e32881fd4b24581876a54d9be58f92eaf26639105567571c187fa1e0ba5bc7fe4fa976cc0e609be0d78f84c153d10bb36354ff97d96a9b399f WHIRLPOOL 948e799d4de8644d26f91ee1cd3201bd120caa582e7be04fd71f627a5c0bd87717dc008d5d6e41b8c63afa87d06612525f144f933992b6ba1a8e54a0e9467b15
MISC ChangeLog 25621 SHA256 283ba44b30c878bf78eaa7cfdc3b808d6e55fef77d2f98d3e06a8e5fb626a40c SHA512 93f813023836f22b4e9bf031163afec7d85cb9a4e283de779cca184c8cea9643608e4b57ec67ec3c48b681e45d615fb54cdf5dfb99c2c9421eb68b9c953391b3 WHIRLPOOL 6533002b46cbd4214d5f65395a6a1c5c92f75fbf44e7576d889089cff0fc3df949bcb3c75739309c4c2720d3d76c7976522108976b51ba7db52afb19abf177a5
MISC metadata.xml 423 SHA256 d12419de9bd641cf78030dc7bdb2789c2c932f91ba9687a6073961eb8ff09e4f SHA512 61b591b21bd46a8ae6a20fde2d5cbe6f68250ce7616b11b55b3a270474fe1ac3b4aefcd3c98e9e6470a036ef3c685b3575464de81349137fdf7cd8082ea2d695 WHIRLPOOL a08d3ed4833b2725f68ad8fcca878047a6b7a36188462204dec1fe7f528b6ad4c8698bed8a87a03e52fe5ea7e30fd8464a881408c179e2d7ef085f511aad4475

View file

@ -0,0 +1,16 @@
--- a/libpcap-1.2.0/configure.in
+++ b/libpcap-1.2.0/configure.in
@@ -291,7 +291,12 @@
dnl XXX This could be done for cross-compiling, but for now it's not.
dnl
if test -z "$with_pcap" && test "$cross_compiling" = yes; then
- AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...)
+ if test -z "$with_pcap" ; then
+ case $host in
+ *-linux*) with_pcap="linux";;
+ *) AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...);;
+ esac
+ fi
fi
AC_ARG_WITH(pcap,
AC_HELP_STRING([--with-pcap=TYPE],[use packet capture TYPE]))

View file

@ -0,0 +1,11 @@
--- a/configure.in
+++ b/configure.in
@@ -1396,7 +1401,7 @@
AC_ARG_ENABLE([canusb],
[AC_HELP_STRING([--enable-canusb],[enable canusb support @<:@default=yes, if support available@:>@])]
-,enable_canusb=yes)
+)
if test "x$enable_canusb" != "xno" ; then
dnl check for canusb support

View file

@ -0,0 +1,522 @@
From 2ae11347945ebd5bcff0c81c4305c03309918530 Mon Sep 17 00:00:00 2001
From: Guy Harris <guy@alum.mit.edu>
Date: Thu, 27 Sep 2012 19:34:11 -0700
Subject: [PATCH] Support what IPv6 stuff we can without IPv6 address resolution support.
Make the INET6-only code just be code that depends on having
getaddrinfo(), as per a complaint that, on a machine that either doesn't
have getaddrinfo() or doesn't have INET6 enabled, a filter
dst host 127.0.0.1 and (icmp or icmp6 or ((tcp or udp or sctp) and (src
host 127.0.0.1)))
Not having a full IPv6 stack shouldn't keep you from, for example,
having a filter that just checks the packet type field for IPv6 or that
looks at the protocol field in the IPv6 header. You can't check for
IPv6 *hosts* (although we could perhaps allow them to be specified
numerically).
---
gencode.c | 89 ++++-----------------------------------------------------------
scanner.l | 16 ++----------
2 files changed, 7 insertions(+), 98 deletions(-)
diff --git a/gencode.c b/gencode.c
index 0010df5..85e2e8e 100644
--- a/gencode.c
+++ b/gencode.c
@@ -240,9 +240,7 @@ static struct block *gen_linktype(int);
static struct block *gen_snap(bpf_u_int32, bpf_u_int32);
static struct block *gen_llc_linktype(int);
static struct block *gen_hostop(bpf_u_int32, bpf_u_int32, int, int, u_int, u_int);
-#ifdef INET6
static struct block *gen_hostop6(struct in6_addr *, struct in6_addr *, int, int, u_int, u_int);
-#endif
static struct block *gen_ahostop(const u_char *, int);
static struct block *gen_ehostop(const u_char *, int);
static struct block *gen_fhostop(const u_char *, int);
@@ -252,29 +250,23 @@ static struct block *gen_ipfchostop(const u_char *, int);
static struct block *gen_dnhostop(bpf_u_int32, int);
static struct block *gen_mpls_linktype(int);
static struct block *gen_host(bpf_u_int32, bpf_u_int32, int, int, int);
-#ifdef INET6
static struct block *gen_host6(struct in6_addr *, struct in6_addr *, int, int, int);
-#endif
#ifndef INET6
static struct block *gen_gateway(const u_char *, bpf_u_int32 **, int, int);
#endif
static struct block *gen_ipfrag(void);
static struct block *gen_portatom(int, bpf_int32);
static struct block *gen_portrangeatom(int, bpf_int32, bpf_int32);
-#ifdef INET6
static struct block *gen_portatom6(int, bpf_int32);
static struct block *gen_portrangeatom6(int, bpf_int32, bpf_int32);
-#endif
struct block *gen_portop(int, int, int);
static struct block *gen_port(int, int, int);
struct block *gen_portrangeop(int, int, int, int);
static struct block *gen_portrange(int, int, int, int);
-#ifdef INET6
struct block *gen_portop6(int, int, int);
static struct block *gen_port6(int, int, int);
struct block *gen_portrangeop6(int, int, int, int);
static struct block *gen_portrange6(int, int, int, int);
-#endif
static int lookup_proto(const char *, int);
static struct block *gen_protochain(int, int, int);
static struct block *gen_proto(int, int, int);
@@ -2841,11 +2833,9 @@ ethertype_to_ppptype(proto)
proto = PPP_IP;
break;
-#ifdef INET6
case ETHERTYPE_IPV6:
proto = PPP_IPV6;
break;
-#endif
case ETHERTYPE_DN:
proto = PPP_DECNET;
@@ -3053,11 +3043,10 @@ gen_linktype(proto)
case ETHERTYPE_IP:
/* Check for a version number of 4. */
return gen_mcmp(OR_LINK, 0, BPF_B, 0x40, 0xF0);
-#ifdef INET6
+
case ETHERTYPE_IPV6:
/* Check for a version number of 6. */
return gen_mcmp(OR_LINK, 0, BPF_B, 0x60, 0xF0);
-#endif
default:
return gen_false(); /* always false */
@@ -3081,10 +3070,8 @@ gen_linktype(proto)
/*
* Raw IPv6, so no type field.
*/
-#ifdef INET6
if (proto == ETHERTYPE_IPV6)
return gen_true(); /* always true */
-#endif
/* Checking for something other than IPv6; always false */
return gen_false();
@@ -3206,11 +3193,9 @@ gen_linktype(proto)
if (proto == ETHERTYPE_IP)
return (gen_cmp(OR_LINK, offsetof(struct pfloghdr, af),
BPF_B, (bpf_int32)AF_INET));
-#ifdef INET6
else if (proto == ETHERTYPE_IPV6)
return (gen_cmp(OR_LINK, offsetof(struct pfloghdr, af),
BPF_B, (bpf_int32)AF_INET6));
-#endif /* INET6 */
else
return gen_false();
/*NOTREACHED*/
@@ -3228,11 +3213,9 @@ gen_linktype(proto)
default:
return gen_false();
-#ifdef INET6
case ETHERTYPE_IPV6:
return (gen_cmp(OR_LINK, off_linktype, BPF_B,
(bpf_int32)ARCTYPE_INET6));
-#endif /* INET6 */
case ETHERTYPE_IP:
b0 = gen_cmp(OR_LINK, off_linktype, BPF_B,
@@ -3284,13 +3267,11 @@ gen_linktype(proto)
*/
return gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | 0xcc);
-#ifdef INET6
case ETHERTYPE_IPV6:
/*
* Check for the special NLPID for IPv6.
*/
return gen_cmp(OR_LINK, 2, BPF_H, (0x03<<8) | 0x8e);
-#endif
case LLCSAP_ISONS:
/*
@@ -3585,7 +3566,6 @@ gen_hostop(addr, mask, dir, proto, src_off, dst_off)
return b1;
}
-#ifdef INET6
static struct block *
gen_hostop6(addr, mask, dir, proto, src_off, dst_off)
struct in6_addr *addr;
@@ -3637,7 +3617,6 @@ gen_hostop6(addr, mask, dir, proto, src_off, dst_off)
gen_and(b0, b1);
return b1;
}
-#endif /*INET6*/
static struct block *
gen_ehostop(eaddr, dir)
@@ -4515,13 +4494,11 @@ gen_host(addr, mask, proto, dir, type)
case Q_MOPRC:
bpf_error("MOPRC host filtering not implemented");
-#ifdef INET6
case Q_IPV6:
bpf_error("'ip6' modifier applied to ip host");
case Q_ICMPV6:
bpf_error("'icmp6' modifier applied to %s", typestr);
-#endif /* INET6 */
case Q_AH:
bpf_error("'ah' modifier applied to %s", typestr);
@@ -4559,7 +4536,6 @@ gen_host(addr, mask, proto, dir, type)
/* NOTREACHED */
}
-#ifdef INET6
static struct block *
gen_host6(addr, mask, proto, dir, type)
struct in6_addr *addr;
@@ -4678,7 +4654,6 @@ gen_host6(addr, mask, proto, dir, type)
}
/* NOTREACHED */
}
-#endif /*INET6*/
#ifndef INET6
static struct block *
@@ -4770,26 +4745,20 @@ gen_proto_abbrev(proto)
case Q_SCTP:
b1 = gen_proto(IPPROTO_SCTP, Q_IP, Q_DEFAULT);
-#ifdef INET6
b0 = gen_proto(IPPROTO_SCTP, Q_IPV6, Q_DEFAULT);
gen_or(b0, b1);
-#endif
break;
case Q_TCP:
b1 = gen_proto(IPPROTO_TCP, Q_IP, Q_DEFAULT);
-#ifdef INET6
b0 = gen_proto(IPPROTO_TCP, Q_IPV6, Q_DEFAULT);
gen_or(b0, b1);
-#endif
break;
case Q_UDP:
b1 = gen_proto(IPPROTO_UDP, Q_IP, Q_DEFAULT);
-#ifdef INET6
b0 = gen_proto(IPPROTO_UDP, Q_IPV6, Q_DEFAULT);
gen_or(b0, b1);
-#endif
break;
case Q_ICMP:
@@ -4817,10 +4786,8 @@ gen_proto_abbrev(proto)
case Q_PIM:
b1 = gen_proto(IPPROTO_PIM, Q_IP, Q_DEFAULT);
-#ifdef INET6
b0 = gen_proto(IPPROTO_PIM, Q_IPV6, Q_DEFAULT);
gen_or(b0, b1);
-#endif
break;
#ifndef IPPROTO_VRRP
@@ -4882,7 +4849,6 @@ gen_proto_abbrev(proto)
b1 = gen_linktype(ETHERTYPE_MOPRC);
break;
-#ifdef INET6
case Q_IPV6:
b1 = gen_linktype(ETHERTYPE_IPV6);
break;
@@ -4893,17 +4859,14 @@ gen_proto_abbrev(proto)
case Q_ICMPV6:
b1 = gen_proto(IPPROTO_ICMPV6, Q_IPV6, Q_DEFAULT);
break;
-#endif /* INET6 */
#ifndef IPPROTO_AH
#define IPPROTO_AH 51
#endif
case Q_AH:
b1 = gen_proto(IPPROTO_AH, Q_IP, Q_DEFAULT);
-#ifdef INET6
b0 = gen_proto(IPPROTO_AH, Q_IPV6, Q_DEFAULT);
gen_or(b0, b1);
-#endif
break;
#ifndef IPPROTO_ESP
@@ -4911,10 +4874,8 @@ gen_proto_abbrev(proto)
#endif
case Q_ESP:
b1 = gen_proto(IPPROTO_ESP, Q_IP, Q_DEFAULT);
-#ifdef INET6
b0 = gen_proto(IPPROTO_ESP, Q_IPV6, Q_DEFAULT);
gen_or(b0, b1);
-#endif
break;
case Q_ISO:
@@ -5047,7 +5008,6 @@ gen_portatom(off, v)
return gen_cmp(OR_TRAN_IPV4, off, BPF_H, v);
}
-#ifdef INET6
static struct block *
gen_portatom6(off, v)
int off;
@@ -5055,7 +5015,6 @@ gen_portatom6(off, v)
{
return gen_cmp(OR_TRAN_IPV6, off, BPF_H, v);
}
-#endif/*INET6*/
struct block *
gen_portop(port, proto, dir)
@@ -5147,7 +5106,6 @@ gen_port(port, ip_proto, dir)
return b1;
}
-#ifdef INET6
struct block *
gen_portop6(port, proto, dir)
int port, proto, dir;
@@ -5220,7 +5178,6 @@ gen_port6(port, ip_proto, dir)
gen_and(b0, b1);
return b1;
}
-#endif /* INET6 */
/* gen_portrange code */
static struct block *
@@ -5325,7 +5282,6 @@ gen_portrange(port1, port2, ip_proto, dir)
return b1;
}
-#ifdef INET6
static struct block *
gen_portrangeatom6(off, v1, v2)
int off;
@@ -5426,7 +5382,6 @@ gen_portrange6(port1, port2, ip_proto, dir)
gen_and(b0, b1);
return b1;
}
-#endif /* INET6 */
static int
lookup_proto(name, proto)
@@ -5561,7 +5516,7 @@ gen_protochain(v, proto, dir)
s[i]->s.k = off_macpl + off_nl;
i++;
break;
-#ifdef INET6
+
case Q_IPV6:
b0 = gen_linktype(ETHERTYPE_IPV6);
@@ -5574,7 +5529,7 @@ gen_protochain(v, proto, dir)
s[i]->s.k = 40;
i++;
break;
-#endif
+
default:
bpf_error("unsupported proto to gen_protochain");
/*NOTREACHED*/
@@ -5601,7 +5556,6 @@ gen_protochain(v, proto, dir)
fix2 = i;
i++;
-#ifdef INET6
if (proto == Q_IPV6) {
int v6start, v6end, v6advance, j;
@@ -5683,9 +5637,7 @@ gen_protochain(v, proto, dir)
/* fixup */
for (j = v6start; j <= v6end; j++)
s[j]->s.jt = s[v6advance];
- } else
-#endif
- {
+ } else {
/* nop */
s[i] = new_stmt(BPF_ALU|BPF_ADD|BPF_K);
s[i]->s.k = 0;
@@ -5829,25 +5781,20 @@ gen_proto(v, proto, dir)
int dir;
{
struct block *b0, *b1;
-#ifdef INET6
#ifndef CHASE_CHAIN
struct block *b2;
#endif
-#endif
if (dir != Q_DEFAULT)
bpf_error("direction applied to 'proto'");
switch (proto) {
case Q_DEFAULT:
-#ifdef INET6
b0 = gen_proto(v, Q_IP, dir);
b1 = gen_proto(v, Q_IPV6, dir);
gen_or(b0, b1);
return b1;
-#else
- /*FALLTHROUGH*/
-#endif
+
case Q_IP:
/*
* For FDDI, RFC 1188 says that SNAP encapsulation is used,
@@ -5998,7 +5945,6 @@ gen_proto(v, proto, dir)
bpf_error("'carp proto' is bogus");
/* NOTREACHED */
-#ifdef INET6
case Q_IPV6:
b0 = gen_linktype(ETHERTYPE_IPV6);
#ifndef CHASE_CHAIN
@@ -6019,7 +5965,6 @@ gen_proto(v, proto, dir)
case Q_ICMPV6:
bpf_error("'icmp6 proto' is bogus");
-#endif /* INET6 */
case Q_AH:
bpf_error("'ah proto' is bogus");
@@ -6276,13 +6221,9 @@ gen_scode(name, q)
bpf_error("illegal port number %d < 0", port);
if (port > 65535)
bpf_error("illegal port number %d > 65535", port);
-#ifndef INET6
- return gen_port(port, real_proto, dir);
-#else
b = gen_port(port, real_proto, dir);
gen_or(gen_port6(port, real_proto, dir), b);
return b;
-#endif /* INET6 */
case Q_PORTRANGE:
if (proto != Q_DEFAULT &&
@@ -6326,13 +6267,9 @@ gen_scode(name, q)
if (port2 > 65535)
bpf_error("illegal port number %d > 65535", port2);
-#ifndef INET6
- return gen_portrange(port1, port2, real_proto, dir);
-#else
b = gen_portrange(port1, port2, real_proto, dir);
gen_or(gen_portrange6(port1, port2, real_proto, dir), b);
return b;
-#endif /* INET6 */
case Q_GATEWAY:
#ifndef INET6
@@ -6480,16 +6417,12 @@ gen_ncode(s, v, q)
if (v > 65535)
bpf_error("illegal port number %u > 65535", v);
-#ifndef INET6
- return gen_port((int)v, proto, dir);
-#else
{
struct block *b;
b = gen_port((int)v, proto, dir);
gen_or(gen_port6((int)v, proto, dir), b);
return b;
}
-#endif /* INET6 */
case Q_PORTRANGE:
if (proto == Q_UDP)
@@ -6506,16 +6439,12 @@ gen_ncode(s, v, q)
if (v > 65535)
bpf_error("illegal port number %u > 65535", v);
-#ifndef INET6
- return gen_portrange((int)v, (int)v, proto, dir);
-#else
{
struct block *b;
b = gen_portrange((int)v, (int)v, proto, dir);
gen_or(gen_portrange6((int)v, (int)v, proto, dir), b);
return b;
}
-#endif /* INET6 */
case Q_GATEWAY:
bpf_error("'gateway' requires a name");
@@ -6805,9 +6734,7 @@ gen_load(proto, inst, size)
case Q_LAT:
case Q_MOPRC:
case Q_MOPDL:
-#ifdef INET6
case Q_IPV6:
-#endif
/*
* The offset is relative to the beginning of
* the network-layer header.
@@ -6916,16 +6843,12 @@ gen_load(proto, inst, size)
gen_and(gen_proto_abbrev(proto), b = gen_ipfrag());
if (inst->b)
gen_and(inst->b, b);
-#ifdef INET6
gen_and(gen_proto_abbrev(Q_IP), b);
-#endif
inst->b = b;
break;
-#ifdef INET6
case Q_ICMPV6:
bpf_error("IPv6 upper-layer protocol is not supported by proto[x]");
/*NOTREACHED*/
-#endif
}
inst->regno = regno;
s = new_stmt(BPF_ST);
@@ -7477,13 +7400,11 @@ gen_multicast(proto)
gen_and(b0, b1);
return b1;
-#ifdef INET6
case Q_IPV6:
b0 = gen_linktype(ETHERTYPE_IPV6);
b1 = gen_cmp(OR_NET, 24, BPF_B, (bpf_int32)255);
gen_and(b0, b1);
return b1;
-#endif /* INET6 */
}
bpf_error("link-layer multicast filters supported only on ethernet/FDDI/token ring/ARCNET/802.11/ATM LANE/Fibre Channel");
/* NOTREACHED */
diff --git a/scanner.l b/scanner.l
index 064e9c8..10ffbcd 100644
--- a/scanner.l
+++ b/scanner.l
@@ -206,20 +206,8 @@ vrrp return VRRP;
carp return CARP;
radio return RADIO;
-ip6 {
-#ifdef INET6
- return IPV6;
-#else
- bpf_error("%s not supported", yytext);
-#endif
- }
-icmp6 {
-#ifdef INET6
- return ICMPV6;
-#else
- bpf_error("%s not supported", yytext);
-#endif
- }
+ip6 return IPV6;
+icmp6 return ICMPV6;
ah return AH;
esp return ESP;
--
1.8.1.1

View file

@ -0,0 +1,21 @@
--- gencode.c.orig 2012-06-13 00:55:36.000000000 +0800
+++ gencode.c 2013-11-07 16:13:53.425436675 +0800
@@ -1416,6 +1416,18 @@
off_mac = 1; /* step over the kiss length byte */
return;
+ case DLT_EN10MB:
+ /* ethernet flags (including direction) are stored
+ * the byte after the 3-byte magic number */
+ if (dir) {
+ /* match outgoing packets */
+ b0 = gen_mcmp(OR_LINK, 3, BPF_B, 1, 0x01);
+ } else {
+ /* incoming packets */
+ b0 = gen_mcmp(OR_LINK, 3, BPF_B, 0, 0x01);
+ }
+ break;
+
case DLT_IPNET:
off_linktype = 1;
off_macpl = 24; /* ipnet header length */

View file

@ -0,0 +1,65 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/libpcap-1.3.0-r1.ebuild,v 1.2 2013/02/20 22:57:19 zmedico Exp $
EAPI=4
inherit autotools eutils
DESCRIPTION="A system-independent library for user-level network packet capture"
HOMEPAGE="http://www.tcpdump.org/"
SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz
http://www.jp.tcpdump.org/release/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="8021xbridge bluetooth ipv6 netlink static-libs canusb"
RDEPEND="bluetooth? ( net-wireless/bluez )
netlink? ( dev-libs/libnl:1.1 )
canusb? ( virtual/libusb )"
DEPEND="${RDEPEND}
sys-devel/flex
virtual/yacc"
DOCS=( CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel} )
src_prepare() {
epatch \
"${FILESDIR}"/${PN}-1.2.0-cross-linux.patch \
"${FILESDIR}"/${PN}-1.3.0-canusb.patch \
"${FILESDIR}"/${P}-fix-systems-without-ipv6-support.patch
use 8021xbridge && epatch "${FILESDIR}"/${P}-for-inbound-outbount-on-ethernet.patch
# Prefix' Solaris uses GNU ld
sed -i -e 's/freebsd\*/freebsd*|solaris*/' \
-e 's/sparc64\*/sparc64*|sparcv9*/' aclocal.m4 || die
eautoreconf
}
src_configure() {
econf \
$(use_enable bluetooth) \
$(use_enable ipv6) \
$(use_enable canusb) \
$(use_with netlink libnl)
}
src_compile() {
emake all shared
}
src_install() {
default
# remove static libraries (--disable-static does not work)
if ! use static-libs; then
find "${ED}" -name '*.a' -exec rm {} + || die
fi
# We need this to build pppd on G/FBSD systems
if [[ "${USERLAND}" == "BSD" ]]; then
insinto /usr/include
doins pcap-int.h
fi
}

View file

@ -0,0 +1,66 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libpcap/libpcap-1.4.0.ebuild,v 1.2 2013/05/09 13:04:10 jer Exp $
EAPI=5
inherit autotools eutils
DESCRIPTION="A system-independent library for user-level network packet capture"
HOMEPAGE="http://www.tcpdump.org/"
SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz
http://www.jp.tcpdump.org/release/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="bluetooth ipv6 netlink static-libs canusb"
RDEPEND="
bluetooth? ( net-wireless/bluez )
netlink? ( dev-libs/libnl )
canusb? ( virtual/libusb )
"
DEPEND="${RDEPEND}
sys-devel/flex
virtual/yacc
"
DOCS=( CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel} )
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.2.0-cross-linux.patch
# Prefix' Solaris uses GNU ld
sed -i -e 's/freebsd\*/freebsd*|solaris*/' \
-e 's/sparc64\*/sparc64*|sparcv9*/' aclocal.m4 || die
eautoreconf
}
src_configure() {
econf \
$(use_enable bluetooth) \
$(use_enable ipv6) \
$(use_enable canusb) \
$(use_with netlink libnl)
}
src_compile() {
emake all shared
}
src_install() {
default
# remove static libraries (--disable-static does not work)
if ! use static-libs; then
find "${ED}" -name '*.a' -exec rm {} + || die
fi
prune_libtool_files
# We need this to build pppd on G/FBSD systems
if [[ "${USERLAND}" == "BSD" ]]; then
insinto /usr/include
doins pcap-int.h
fi
}

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>netmon</herd>
<use>
<flag name='netlink'>
Use <pkg>dev-libs/libnl</pkg> to put wireless interfaces in monitor mode.
</flag>
<flag name='canusb'>
Use <pkg>virtual/libusb</pkg> to support Controller Area Network over USB (CAN USB)
</flag>
</use>
</pkgmetadata>