ffe20c46cbIn AC_LBL_C_INIT, don't explicitly set V_CCOPT, just set $1, as is done elsewhere in the macro.
Guy Harris
2009-07-04 17:56:27 -0700
bbd8be8360Older Linux kernels have different member names for "struct usbdevfs_ctrltransfer"; check for that and handle it.
Guy Harris
2009-07-04 15:04:59 -0700
8844f5bad8Squelch some compile warnings with older Linux kernels.
Guy Harris
2009-07-04 14:17:36 -0700
32e1c4bab0Add a link-layer type value for Fibre Channel FC-2 frames, as requested by Kahou Leu.
Guy Harris
2009-07-03 17:09:22 -0700
703acf10e7Not releasing a packet in Linux memory-mapped mode until we try to read the next packet breaks select(). Back those changes out; we'll have to fix the behavior of pcap_next* by making a copy of the packet.
Guy Harris
2009-07-03 14:37:06 -0700
b43a22e65ePrint a message when capture starts.
Guy Harris
2009-07-03 13:37:58 -0700
e627fb2f1aAdd a "-n" flag to turn on non-blocking mode.
Guy Harris
2009-07-03 12:34:39 -0700
fda67c0c17Clean up the shared libpcap, and the test programs, with "make clean".
Guy Harris
2009-07-03 12:25:07 -0700
16d78cf97cWe already add -fpic in AC_LBL_C_INIT; no need to add -fPIC.
Guy Harris
2009-07-02 23:23:26 -0700
345497507aFurther simplify seltest.
Guy Harris
2009-07-02 21:01:12 -0700
8bdcbaeabeAdd a new program for testing whether select() works with a live capture.
Guy Harris
2009-07-02 20:51:30 -0700
c7eb141fffAdd a comment to the AC_DEFINE call for const; that eliminates the last AC_DEFINEd value with no comment, and thus eliminates the need for acconfig.h, so get rid of it.
Guy Harris
2009-07-02 19:21:21 -0700
50894808ecIf HAVE_PACKET_AUXDATA isn't defined, don't declare a variable that's used only if HAVE_PACKET_AUXDATA is defined.
Guy Harris
2009-07-02 12:31:02 -0700
dcf1642930dlp->dl_length might be an unsigned long; cast it to unsigned long and print it with %lu, so the code works regardless of whether it's an unsigned int or an unsigned long.
Guy Harris
2009-07-02 12:28:51 -0700
fb62fdb902There's no need to explicitly say "expand @LIBS@ when writing output files"; that's done automatically.
Guy Harris
2009-07-02 12:26:32 -0700
607b688667Just use LIBS inside configure.in, so if we add flags or libraries it affects the configure tests.
Guy Harris
2009-07-02 12:18:31 -0700
252c7497e5AC_LBL_C_INIT takes two arguments, not three.
Guy Harris
2009-07-02 12:14:14 -0700
6b89856c15Don't define pcap_stream_err() if we're not going to use it.
Guy Harris
2009-06-29 00:50:19 -0700
8356bb5310Build and install no shared libraries on platforms for which we haven't written shared library support.
Guy Harris
2009-06-27 12:43:26 -0700
6a39db3ab2Add a link-layer type value for Wireless HART.
Guy Harris
2009-06-26 15:29:43 -0700
744a2b557bAdd support for building AIX shared libraries. (It's complicated - we build "traditional" AIX shared libraries, which are archive libraries containing shared objects, so, on AIX, we build the archive library, for the benefit of "build libpcap and tcpdump in subdirectories of the same directory, with tcpdump linked statically with that libpcap", but don't install it. Newer versions of AIX, at least, also support "standard" .so-style UN*X shared libraries, but we stick with <Tevye>Tradition!</Tevye>.)
Guy Harris
2009-06-16 00:18:54 -0700
efc78d105eClean up HP-UX and OSF/1 GCC-with-the-native-linker handling.
Guy Harris
2009-06-10 14:05:51 -0700
edfd2fdc7fFrom Markus Mayer: fix error message for link-layer types not supported in savefiles.
Guy (Core OS) Harris
2009-06-09 20:43:04 -0700
21cadd6af6First guess at what should work for DEC OSF/1 shared libraries.
Guy (Core OS) Harris
2009-06-09 20:37:17 -0700
a3ca7e3bdeThe configure script makes net a symlink to bpf/net, and we already include bpf/net/bpf_filter.c in the release tarball, so we don't want to include net/bpf_filter.c.
Guy Harris
2009-06-09 17:57:54 -0700
afd21fc9e8HP-UX shared libraries are installed as libXXX.{version}, with libXXX.sl being a symlink to libXXX.{version}.
Guy Harris
2009-06-09 17:49:05 -0700
c9ef229fef*Don't* use $(AR) to build the library; not all versions of Make define it.
Guy Harris
2009-06-09 17:07:43 -0700
2ba97bd5f8Use "if test", not "if [" - by the time it makes it through M4, the ['s disappear.
Guy Harris
2009-06-09 16:54:49 -0700
6c23620756On Solaris, when compiling with GCC, pass to the linker flags appropriate for the Sun linker rather than the GNU linker.
Guy Harris
2009-06-09 14:47:28 -0700
6236d9e061Create the lib directory before installing the shared library.
Guy Harris
2009-06-09 11:54:58 -0700
135792cec1"make clean" should remove pcap-config, as it's a generated file.
Guy Harris
2009-06-09 11:37:10 -0700
4bdfcd89b8Add in the V_RPATH_OPT Makefile variable, set from the V_RPATH_OPT configure script variable.
Guy Harris
2009-06-09 11:34:05 -0700
c1fd939e9dRegenerate.
Guy Harris
2009-06-09 11:26:26 -0700
7cd4949d49Oops, close a quote.
Guy Harris
2009-06-09 10:56:41 -0700
db68de2198Add a way to have pcap-config supply the appropriate rpath flag, if any.
Guy Harris
2009-06-09 10:50:31 -0700
fcc6ea3b28Have "make uninstall" un-install pcap-config.
Guy Harris
2009-06-08 10:30:49 -0700
8fb603979cAt least with some C compilers, "-Lfoo" is not the same as "-L foo" - the former works, the latter doesn't. Close up the space between "-L" and the directory argument; do the same with "-I" while we're at it.
Guy Harris
2009-06-07 17:54:01 -0700
af3676461dExplicitly list the config.* files to ignore; config.guess and config.sub are in the Git repository.
Guy Harris
2009-06-07 14:24:41 -0700
7d878f834bInstall the shared library by default.
Guy Harris
2009-06-07 14:21:29 -0700
5f760eadd5Add the release tarball to the .gitignore list and the list of files to clean.
Guy Harris
2009-06-07 11:48:58 -0700
4c8ab2f107Add shared libraries to the .gitignore list.
Guy Harris
2009-06-07 11:44:50 -0700
e0b238b794Update the Septel configuration stuff the way we updated the DAG stuff - additional .o's to add to libpcap should go into ADDLOBJ, not V_LIBS.
Guy Harris
2009-06-07 11:41:03 -0700
46e12d5db2Merge branch 'master' of git+ssh://guy@bpf.tcpdump.org/tcpdump/master/git/libpcap
Guy Harris
2009-06-07 10:54:10 -0700
5d86a7c3b2Move some more stuff up before the first use.
Guy Harris
2009-06-01 13:04:55 -0700
9a4ef64d76Move up the definition of get_mac80211_phydev() before all its uses.
Guy Harris
2009-06-01 13:03:05 -0700
102c1ff460When checking whether a device will let you turn monitor mode on, assume mac80211 devices will, regardless of whether they support the Wireless Extensions - wmaster devices will let you turn monitor mode on but don't appear to support the Wireless Extensions.
Guy Harris
2009-06-01 12:56:05 -0700
33aa345694Merge branch 'master' of git+ssh://guy@bpf.tcpdump.org/tcpdump/master/git/libpcap
Guy Harris
2009-06-01 10:20:09 -0700
34d7963f7eIf we have lex but not flex, we assign a "const char *" to "in_buffer"; make it a "const char *" as well.
Guy Harris
2009-05-24 13:22:03 -0700
9f59acab41To put mac80211 devices in monitor mode, create a "monN" device for the underlying adapter, bring it up, and capture on that.
Guy Harris
2009-05-22 05:50:15 -0700
95c97b9b6fMake ADDLOBJ be the list of additional objects to link in when building a shared libpcap and add into the archive when making an archive library. Make V_LIBS in the configure script, and LIBS in the Makefile, a list of additional libraries with which to link a shared libpcap and with which to link applications built with a non-shared libpcap.
Guy Harris
2009-05-22 16:14:08 -0700
4da1fd6159Add a --additional-libs flag to pcap-config, to write out any additional libraries needed to link with libpcap; this is to be used by tcpdump when it's linking with ../libpcap/libpcap.a.
Guy Harris
2009-05-22 16:04:25 -0700
6cbbcee6b6Reject an attempt to pass an inactivated pcap_t to pcap_dump_open(), as an inactivated pcap_t doesn't have a valid link-layer type or snapshot length.
Guy Harris
2009-05-13 12:57:15 -0700
8cbe17bec2Add LINKTYPE_AOS, corresponding to DLT_AOS.
Guy Harris
2009-05-12 10:07:59 -0700
f4e7415118fixed date and added note about updates to pcap-dag
Michael Richardson
2009-05-06 14:16:31 -0400
0ca4ea9a38Updating Endace DAG ERF support.
Stephen Donnelly
2009-05-04 16:32:52 +1200
45d78ae906Fix a typo.
Guy Harris
2009-04-21 09:35:39 -0700
62d8aa2b45Slight update to the item about shared libraries, now that we support some additional platforms.
Guy Harris
2009-04-21 09:11:06 -0700
f51454f7fcExtend the scheme for building .so files to support Sun C and Sun's linker, and include *BSD in the list of systems using GNU C and GNU ld.
Guy Harris
2009-04-21 09:09:37 -0700
2b2d78a031Add a linktype for DECT packets, requested by Matthias Wenzel.
Guy Harris
2009-04-19 15:52:03 -0700
664e4a16bbFrom Robert Edmonds: in the lexical analyzer, free up any addrinfo structure we got back from getaddrinfo().
Guy Harris
2009-04-18 13:53:52 -0700
d643b6a0faFrom Yvan Vanhullebus: add missing mapping for DLT_ENC <-> LINKTYPE_ENC.
Guy Harris
2009-04-18 13:14:27 -0700
75734791c5From Darren Reed: some changes to support BPF on Solaris. Update his e-mail address while we're at it.
Guy Harris
2009-04-18 13:04:27 -0700
dc0da695d7From a quick look at the hostap driver, it appears that newer versions support the Radiotap header.
Guy Harris
2009-04-07 13:20:07 -0700
91584dc5c5By default, don't include DEPLIBS in the libraries flags, as a dynamically-linked libpcap should have been linked with them (if there are any of them), so it shouldn't be necessary for a program or library to explicitly link with them if it links with libpcap.
Guy Harris
2009-03-27 00:41:53 -0700
a8284458d5Add an item to the CHANGES for the fix to make memory-mapped capture on Linux work with pcap_next() and pcap_next_ex().
Guy Harris
2009-03-25 09:16:12 -0700
18d5f5efc1Don't return PCAP_WARNING if mmapped capturing isn't supported.
Guy Harris
2009-03-25 07:21:29 -0700
7326e1ad48prev_pkt is in the pcap_md structure, not the pcap_t structure itself.
Guy Harris
2009-03-25 08:53:58 -0700
64b88abf98Move "union thdr" to pcap-int.h, as we use it in pcap-int.h.
Guy Harris
2009-03-25 08:48:57 -0700
54ef309e92In memory-mapped mode, don't release the packet as soon as the callback finishes processing the packet; in some cases, such as pcap_next() and pcap_next_ex(), the packet data is expected to be available after the callback returns, and only discarded when the next packet is read.
Guy Harris
2009-03-23 23:18:25 -0700
f5af8a7ce4Fix typo in Romain's name.
Guy Harris
2009-03-19 10:23:53 -0700
3866e83123From Roman Francoise: rename the USB-sniffing devices to "usbmonN", so as not to collide with the "usbN" names for USB-based networking devices.
Guy Harris
2009-03-19 09:37:03 -0700
05326b0246Add some more generated files.
Guy Harris
2009-03-19 09:28:01 -0700
35a12bf7e4Add a .gitignore file.
Guy Harris
2009-02-26 01:20:37 -0800
8cd961c944From Sebastien Roy: fix compilation problems on versions of Solaris with libdlpi.
Guy Harris
2009-02-26 01:16:26 -0800
936df0fbc1From Gisle Vanem:
Guy Harris
2009-02-14 14:36:34 -0800
5fb89099c6From Gisle Vanem:
Guy Harris
2009-02-14 14:31:47 -0800
4380c64a7dUpdate to the new style, wherein each capture type has its own pcap_create() routine, and pcap_activate() calls through the activate_op pointer in a pcap_t.
Guy Harris
2009-02-14 14:13:52 -0800
0359240b1cFrom Tobias Poschwatta: correctly check the requested packet directions when processing packets in memory-mapped mode.
Guy Harris
2009-02-14 13:19:13 -0800
55685bd38cRevert to defining the USB stuff ourselves; whether there's a <linux/usb_ch9.h> or <linux/usb/ch9.h> header depends on the version of the kernel (and that assumes that one of those headers is even installed, which isn't necessarily the case).
Guy Harris
2009-01-03 12:12:12 -0800
6e26f4a0fdAnother change from Debian.
guy
2008-12-25 02:01:32 +0000
aa03b98b38Fix the section number. (Thanks to the Debian and/or Ubuntu people who fixed this but didn't tell us about it.)
guy
2008-12-24 21:45:25 +0000
adcaff491dGet some USB information from <linux/usb/ch9.h> rather than defining it ourselves.
guy
2008-12-23 21:38:50 +0000
a669335415probe_devices() returns void (if calls fail, we just drive on); don't try to return a value from it.
guy
2008-12-23 20:55:28 +0000
5e3edce42fFrom Jon Smirl: when we start capturing, send GET DESCRIPTOR requests to all devices on the bus, so we know what's out there already. Cleaned up a bit to directly include <linux/usbdevice_fs.h> and *not* to require the USB library just to supply a header with USB definitions.
guy
2008-12-23 20:49:26 +0000
b908482137Update CHANGES for USB fixes.
guy
2008-12-23 20:13:29 +0000
687233847fps_ifdrop is the number of packets dropped by the interface and not even handed to the host; ps_drop is the number of packets dropped by the capture mechanism because it ran out of buffer space. We don't know the former, so set it to 0; we *do* know the latter, but it's ps_drop, not ps_ifdrop.
guy
2008-12-23 19:05:26 +0000
fb218e8ff5Add missing left parenthesis.
guy
2008-12-23 18:12:46 +0000
87d0db882eFrom Jon Smirl:
guy
2008-12-23 18:03:22 +0000
8a49a4d47bNew DLT_MPLS link-layer type, for MPLS packets with an MPLS label as the link-layer header.
guy
2008-12-21 19:28:56 +0000
c93e0966e1Added a couple missing definitions.
gianluca
2008-12-21 10:18:10 +0000
2377722dc6Update date stamp for 1.0.1 changes.
guy
2008-12-15 00:27:54 +0000
5ef924505cClarify some existing change descriptions, and mention the fix for building with wireless extensions support on recent Linux kernels.
guy
2008-12-15 00:20:07 +0000
ba23aa7b42OK, let's try another approach - include <linux/if.h> rather than <net/if.h>, in the hope that
guy
2008-12-14 22:00:57 +0000
26c8745ecfWhen trying <linux/wireless.h> with <net/if.h>, first forget that the test without <net/if.h> failed, so that we don't just use the cached value and skip the test, and log a message to note why we're trying the check again.
guy
2008-12-14 21:03:07 +0000
080c13423aIt appears that, at least with the 2.6.27.5 kernel (and maybe the 2.6.27 kernel in general), <linux/wireless.h> includes <net/if.h> and you get multiple-definition errors if you include <net/if.h> before it. Only include <net/if.h> if you don't have <linux/wireless.h>.
guy
2008-12-14 20:30:11 +0000
ad46bc2135It appears that, at least with the 2.6.27.5 kernel (and maybe the 2.6.27 kernel in general), <linux/wireless.h> includes <net/if.h> and you get multiple-definition errors if you include <net/if.h> before it. When checking for linux/wireless.h, try first without net/if.h and then with net/if.h.
guy
2008-12-14 20:17:14 +0000
4486bda92dhas_wext() isn't used if IW_MODE_MONITOR isn't defined, so don't define it if IW_MODE_MONITOR isn't defined.
guy
2008-12-14 20:03:59 +0000
a9006f2462Another genericize-the-version-number change.
guy
2008-12-14 19:44:14 +0000
fe8a58a56dGenerically refer to the top-of-tree version as 1.x.y.
guy
2008-12-14 19:36:02 +0000