aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-04-13Include the CFLAGS setting when configure was run in the compiler flags.Alon Bar-Lev1-12/+13
Reviewed-By: Guy Harris <guy@alum.mit.edu>
2010-04-06Build fat appropriately for Leopard.Guy Harris2-6/+26
2010-04-04Don't define or use any of the SIZEOF_ values.Guy Harris3-64/+7
We don't need or want them on UN*X (for one thing, we do fat builds on OS X, and SIZEOF_LONG doesn't have the same value in ILP32 and LP64), and don't need them on Windows, either (long is 32 bits in both Win32 and Win64).
2010-04-04Fix check for Snow Leopard.Guy Harris2-2/+2
For OS X version 10.{x}.{y}, Darwin is (at least for later versions) version {x+4}.{y}.
2010-04-04Balance parentheses in a comment.Guy Harris2-2/+2
2010-04-04Clarify that universal is OS X-specific.Guy Harris2-2/+2
In the help message for --disable-universal, note that it's for OS X. The configure script will presumably offer that option even on other OSes (e.g. because you might be cross-building for OS X).
2010-04-04Build universal on OS X by default; add an option to disable that.Guy Harris3-44/+47
Instead of requiring the user to specify -arch options on OS X to build a universal version of libpcap, just default to universal on OS X by default. Pick the particular targets to match the way libpcap is built for the OS for which we're building.
2010-04-03Make the date on the change notes for 1.1.0 match the release date.Guy Harris1-1/+1
2010-04-01The first 1.2.x release will be 1.2.0, not 1.2.Guy Harris1-1/+1
2010-04-01Add the current set of 1.1.1 changes from 1.1.0.Guy Harris1-2/+8
2010-04-01Update CHANGES to reflect more of the changes in 1.1.0.Guy Harris1-15/+37
2010-04-01Add a #include required on RHEL5.Chris Maynard2-2/+6
2010-03-31Add a --with-arch-flags configuration option to specify target architectures.Guy Harris3-3/+44
They allow the user to specify flags to indicate the target architecture(s) (yes, possibly plural - think, for example, Mac OS X) for which we're building. Those might need to be used not only when compiling, but also when linking and when building a shared library. This is not for general cross-compiling, it's for use on platforms where versions of the native OS support more than one instruction set and where you want to build for the OS on which you're running but not for the default build architecture on the machine on which you're running.
2010-03-31Pass LDFLAGS to the command that builds shr.o on AIX.Alon Bar-Lev2-2/+3
Reviewed-By: Guy Harris <guy@alum.mit.edu>
2010-03-31Move test source to a tests directory, add a new test for nonblocking mode.Guy Harris6-14/+256
2010-03-13There's now a 1.1 branch; the main branch will become 1.2.Guy Harris1-1/+1
2010-03-13Pick up the CHANGES file from the 1.1 branch.Guy Harris1-3/+1
2010-03-10Update to handle arbitrary-length interface descriptions on FreeBSD.Xin Li2-12/+29
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2010-03-10Update a comment.Guy Harris1-16/+28
2010-03-09Added the definition of SET_BINMODE under WIN32.test21-0/+13
2010-03-05instead of making releasetar depend upon bpf_filter.c, move bpf_filter.c to ↵Michael Richardson1-3/+3
GENSRC
2010-03-05releasetar target needs bpf_filter symlink to be set rightMichael Richardson1-1/+1
2010-03-01Give Wesley Shields credit for the inet.c change to fix build on FreeBSD.Guy Harris1-0/+1
2010-03-01Update to work with FreeBSD flavor of SIOCGIFDESCR.Guy Harris1-6/+16
Update to work with FreeBSD flavor of SIOCGIFDESCR as well as the OpenBSD flavor. Also, a small tweak from me to use "ifdescr" as a pointer to the string buffer in both cases ("&ifdescr" and "ifdescr", although they have different types, point to the same location), and to put "s" back inside #ifdef SIOCGIFDESCR/#endif, as it's not used if SIOCGIFDESCR isn't defined.
2010-02-23Squelch warnings about type punning.Guy Harris1-4/+10
2010-02-11Fix comments.Guy Harris1-5/+5
2010-02-08Again, Git, not CVS.Guy Harris2-3/+3
2010-02-08Again, we're using Git now.Guy Harris3-6/+4
2010-02-08Put date into version.h for Git versions, too.Guy Harris1-1/+7
2010-02-08For PRE-GIT releases, put a date stamp in the version string.Guy Harris1-1/+7
This is similar to what we do for tcpdump.
2010-02-08We're using Git, not CVS, now.Guy Harris1-1/+1
2010-01-27Include headers that should cause u_int64_t to be defined.Guy Harris1-0/+14
2010-01-27Include headers that should cause u_int64_t to be defined.Guy Harris1-0/+14
2010-01-27Include headers that should cause u_int64_t to be defined.Guy Harris1-2/+11
2010-01-26Include headers that should cause u_int64_t to be defined.Guy Harris1-0/+12
2010-01-26Include headers that should cause u_int64_t to be defined.Guy Harris1-0/+14
2010-01-26Include headers that should cause u_int64_t to be defined.Guy Harris1-0/+8
2010-01-26Put pcap-snf.c and pcap-snf.h into the release tarball.Guy Harris1-0/+2
2010-01-26Include headers that should cause u_int64_t to be defined.Guy Harris1-0/+8
2010-01-26Fix --with-pcap={linux,bpf} when SNF API is present.Christian Bell2-2/+10
Signed-off-by: Guy Harris <guy@alum.mit.edu>
2010-01-26Add Myricom SNF API support as a new pcap device.Christian Bell9-0/+675
This patch adds support for our NICs when run in a specialized capture mode. It is diffed against the current master. The Myricom Sniffer10G software uses Myri-10G programmable Network Interface Cards (NICs), a firmware extension, a specialized driver and a user-level library (libsnf) to enable sustained capture of 10-Gigabit Ethernet traffic. Small-packet coalescing and an efficient zero-copy path to host memory allow Sniffer10G to capture streams at line rate for all Ethernet packet sizes. Optionally, libpcap can be used concurrently by multiple processes on a single NIC port to partition the incoming traffic across processes. While the Linux kernel enables this through multiple receive queues, the difference is that the myri_snf driver cooperates with libsnf to set up multiple queues that are each independently accessible through user-space. More information here: http://www.myri.com/scs/SNF/doc Signed-off-by: Guy Harris <guy@alum.mit.edu>
2010-01-25Byte-swap the extra fields in the "version 1" USB monitor header.Guy Harris5-10/+72
2010-01-10Include pcap-common.h in the tarball.Guy Harris1-0/+1
2010-01-10Ignore directories in /sys/class/net.Guy Harris1-0/+6
2010-01-10Correctly handle errors other than problems reading /sys/class/net.Guy Harris1-6/+9
2010-01-10Fix some errors in the previous checkin.Guy Harris1-3/+2
2010-01-10Scan /sys/class/net if we have it.Guy Harris1-8/+144
It's a bit easier to scan than /proc/net/dev, as it's a directory.
2010-01-10On Linux, always at least try to scan /proc/net/dev.Guy Harris4-35/+0
If we fail to open it, we just drive on, so it's not a fatal error; yes, it'll slow us down a little, but it's probably not much, and most Linux kernels probably have it in any case.
2010-01-09Include <ctype.h>, as we use macros from it.Guy Harris1-4/+5
Also, use isascii() to avoid surprises from characters with the 8th bit set, rather than playing signed vs. unsigned character games.
2010-01-09Scan /proc/net/dev on Linux regardless of how we get the interface list.Guy Harris2-144/+170
It's a Linuxism, so it's not necessary on other platforms, and is useful even if we have getifaddrs().