dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

1517 Commits

Author SHA1 Message Date
Alon Bar-Lev 3a089e628c Include the CFLAGS setting when configure was run in the compiler flags.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
2010-04-13 19:00:04 -07:00
Guy Harris e45fc489f0 Build fat appropriately for Leopard. 2010-04-06 15:06:34 -07:00
Guy Harris a1a7640419 Don't define or use any of the SIZEOF_ values.
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-04 13:48:11 -07:00
Guy Harris d7cf4017fb Fix check for Snow Leopard.
For OS X version 10.{x}.{y}, Darwin is (at least for later versions)
version {x+4}.{y}.
2010-04-04 12:37:15 -07:00
Guy Harris 6776069ed8 Balance parentheses in a comment. 2010-04-04 12:07:13 -07:00
Guy Harris 19cc8a5941 Clarify that universal is OS X-specific.
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-04 11:56:46 -07:00
Guy Harris 8416cc897b Build universal on OS X by default; add an option to disable that.
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-04 11:51:01 -07:00
Guy Harris 814e55d448 Make the date on the change notes for 1.1.0 match the release date. 2010-04-03 11:59:18 -07:00
Guy Harris f379150d84 The first 1.2.x release will be 1.2.0, not 1.2. 2010-04-01 22:32:44 -07:00
Guy Harris 9596eba4ba Add the current set of 1.1.1 changes from 1.1.0. 2010-04-01 22:31:02 -07:00
Guy Harris 9d6dc34d55 Update CHANGES to reflect more of the changes in 1.1.0. 2010-04-01 22:26:18 -07:00
Chris Maynard 3ac3601bc7 Add a #include required on RHEL5. 2010-04-01 01:58:32 -07:00
Guy Harris dbf3bd4597 Add a --with-arch-flags configuration option to specify target architectures.
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-31 17:22:33 -07:00
Alon Bar-Lev d270319b2c Pass LDFLAGS to the command that builds shr.o on AIX.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
2010-03-31 14:32:39 -07:00
Guy Harris 8f6096fd01 Move test source to a tests directory, add a new test for nonblocking mode. 2010-03-31 12:39:35 -07:00
Guy Harris 6e5e19e7f8 There's now a 1.1 branch; the main branch will become 1.2. 2010-03-13 14:39:11 -08:00
Guy Harris 02ef27750d Pick up the CHANGES file from the 1.1 branch. 2010-03-13 14:38:29 -08:00
Xin Li f6cbf3b4de Update to handle arbitrary-length interface descriptions on FreeBSD.
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2010-03-10 15:55:44 -08:00
Guy Harris c3184553df Update a comment. 2010-03-10 15:53:55 -08:00
test2 b3eca60b5c Added the definition of SET_BINMODE under WIN32. 2010-03-09 12:27:31 -08:00
Michael Richardson 5377f7340b instead of making releasetar depend upon bpf_filter.c, move bpf_filter.c to GENSRC 2010-03-05 11:51:35 -05:00
Michael Richardson 8499864cf2 releasetar target needs bpf_filter symlink to be set right 2010-03-05 11:45:41 -05:00
Guy Harris 8ed6cc789e Give Wesley Shields credit for the inet.c change to fix build on FreeBSD. 2010-03-01 15:03:26 -08:00
Guy Harris 2d3279a02f Update to work with FreeBSD flavor of SIOCGIFDESCR.
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-03-01 15:01:02 -08:00
Guy Harris 84a1f947ba Squelch warnings about type punning. 2010-02-23 20:01:35 -08:00
Guy Harris b231bfe26c Fix comments. 2010-02-11 15:04:01 -08:00
Guy Harris ab2f33c0e7 Again, Git, not CVS. 2010-02-08 15:57:58 -08:00
Guy Harris 6d2fcdfaa1 Again, we're using Git now. 2010-02-08 11:26:05 -08:00
Guy Harris a6942e7596 Put date into version.h for Git versions, too. 2010-02-08 02:49:42 -08:00
Guy Harris 916b450e31 For PRE-GIT releases, put a date stamp in the version string.
This is similar to what we do for tcpdump.
2010-02-08 02:40:11 -08:00
Guy Harris 3da6116350 We're using Git, not CVS, now. 2010-02-08 02:38:18 -08:00
Guy Harris 1f436f90eb Include headers that should cause u_int64_t to be defined. 2010-01-27 00:56:18 -08:00
Guy Harris c69ec3857b Include headers that should cause u_int64_t to be defined. 2010-01-27 00:46:43 -08:00
Guy Harris 88285f982b Include headers that should cause u_int64_t to be defined. 2010-01-27 00:04:36 -08:00
Guy Harris a52a49b582 Include headers that should cause u_int64_t to be defined. 2010-01-26 23:18:30 -08:00
Guy Harris c9d9609809 Include headers that should cause u_int64_t to be defined. 2010-01-26 20:28:51 -08:00
Guy Harris d1c86de80c Include headers that should cause u_int64_t to be defined. 2010-01-26 20:16:44 -08:00
Guy Harris 9934984be5 Put pcap-snf.c and pcap-snf.h into the release tarball. 2010-01-26 19:52:05 -08:00
Guy Harris 06446f52c4 Include headers that should cause u_int64_t to be defined. 2010-01-26 19:50:36 -08:00
Christian Bell 271747b20b Fix --with-pcap={linux,bpf} when SNF API is present.
Signed-off-by: Guy Harris <guy@alum.mit.edu>
2010-01-26 12:02:38 -08:00
Christian Bell e1539bdbcb Add Myricom SNF API support as a new pcap device.
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-26 11:58:37 -08:00
Guy Harris ecd955e0df Byte-swap the extra fields in the "version 1" USB monitor header. 2010-01-25 15:12:43 -08:00
Guy Harris f9c2f9a852 Include pcap-common.h in the tarball. 2010-01-10 14:21:02 -08:00
Guy Harris 1715346ad0 Ignore directories in /sys/class/net. 2010-01-10 11:05:00 -08:00
Guy Harris a9a939af2a Correctly handle errors other than problems reading /sys/class/net. 2010-01-10 11:01:56 -08:00
Guy Harris 1eb25ea82a Fix some errors in the previous checkin. 2010-01-10 10:59:22 -08:00
Guy Harris 81a96c3226 Scan /sys/class/net if we have it.
It's a bit easier to scan than /proc/net/dev, as it's a directory.
2010-01-10 10:56:25 -08:00
Guy Harris 2fd233b16d On Linux, always at least try to scan /proc/net/dev.
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-10 00:32:13 -08:00
Guy Harris 27636b9a98 Include <ctype.h>, as we use macros from it.
Also, use isascii() to avoid surprises from characters with the 8th bit
set, rather than playing signed vs. unsigned character games.
2010-01-09 18:50:52 -08:00
Guy Harris 6831a81489 Scan /proc/net/dev on Linux regardless of how we get the interface list.
It's a Linuxism, so it's not necessary on other platforms, and is useful
even if we have getifaddrs().
2010-01-09 18:46:02 -08:00