Guy Harris
bbd8be8360
Older Linux kernels have different member names for "struct
...
usbdevfs_ctrltransfer"; check for that and handle it.
Don't declare variables in the middle of a block; some versions of GCC
appear to warn about that.
2009-07-04 15:04:59 -07:00
Guy Harris
8844f5bad8
Squelch some compile warnings with older Linux kernels.
2009-07-04 14:17:36 -07:00
Guy Harris
32e1c4bab0
Add a link-layer type value for Fibre Channel FC-2 frames, as requested
...
by Kahou Leu.
Clean up a comment.
2009-07-03 17:09:22 -07:00
Guy Harris
703acf10e7
Not 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.
2009-07-03 14:37:06 -07:00
Guy Harris
b43a22e65e
Print a message when capture starts.
2009-07-03 13:37:58 -07:00
Guy Harris
e627fb2f1a
Add a "-n" flag to turn on non-blocking mode.
...
Print the number of packets processed by pcap_dispatch() when it returns.
2009-07-03 12:34:39 -07:00
Guy Harris
fda67c0c17
Clean up the shared libpcap, and the test programs, with "make clean".
2009-07-03 12:25:07 -07:00
Guy Harris
16d78cf97c
We already add -fpic in AC_LBL_C_INIT; no need to add -fPIC.
2009-07-02 23:23:26 -07:00
Guy Harris
345497507a
Further simplify seltest.
2009-07-02 21:01:12 -07:00
Guy Harris
8bdcbaeabe
Add a new program for testing whether select() works with a live
...
capture.
2009-07-02 20:51:30 -07:00
Guy Harris
c7eb141fff
Add 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.
Get rid of AC_LBL_LIBPCAP - we don't need it, this *is* libpcap.
Get rid of AC_LBL_TYPE_SIGNAL - we don't use it.
Update comments for AC_LBL_SOCKADDR_SA_LEN and AC_LBL_CHECK_LIB to match
tcpdump's versions.
2009-07-02 19:21:21 -07:00
Guy Harris
50894808ec
If HAVE_PACKET_AUXDATA isn't defined, don't declare a variable that's
...
used only if HAVE_PACKET_AUXDATA is defined.
2009-07-02 12:31:02 -07:00
Guy Harris
dcf1642930
dlp->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.
2009-07-02 12:28:51 -07:00
Guy Harris
fb62fdb902
There's no need to explicitly say "expand @LIBS@ when writing output
...
files"; that's done automatically.
2009-07-02 12:26:32 -07:00
Guy Harris
607b688667
Just use LIBS inside configure.in, so if we add flags or libraries it
...
affects the configure tests.
Build test programs with $(LIBS), as they're being linked with libpcap.
2009-07-02 12:18:31 -07:00
Guy Harris
252c7497e5
AC_LBL_C_INIT takes two arguments, not three.
2009-07-02 12:14:14 -07:00
Guy Harris
6b89856c15
Don't define pcap_stream_err() if we're not going to use it.
2009-06-29 00:50:19 -07:00
Guy Harris
8356bb5310
Build and install no shared libraries on platforms for which we haven't
...
written shared library support.
Clean up some comments, and (for now) always use "$(CC) -shared" to
build shared libraries with GCC.
Merge two separate "check the platform and set the compiler options"
switches.
2009-06-27 12:43:26 -07:00
Guy Harris
6a39db3ab2
Add a link-layer type value for Wireless HART.
2009-06-26 15:29:43 -07:00
Guy Harris
744a2b557b
Add 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>.)
Fix an AIX build problem that shows up when building with GCC.
Clean up HP-UX stuff.
2009-06-16 00:18:54 -07:00
Guy Harris
efc78d105e
Clean up HP-UX and OSF/1 GCC-with-the-native-linker handling.
2009-06-10 14:05:51 -07:00
Guy (Core OS) Harris
edfd2fdc7f
From Markus Mayer: fix error message for link-layer types not supported
...
in savefiles.
2009-06-09 20:43:04 -07:00
Guy (Core OS) Harris
21cadd6af6
First guess at what should work for DEC OSF/1 shared libraries.
2009-06-09 20:37:17 -07:00
Guy Harris
a3ca7e3bde
The 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.
2009-06-09 17:57:54 -07:00
Guy Harris
afd21fc9e8
HP-UX shared libraries are installed as libXXX.{version}, with libXXX.sl
...
being a symlink to libXXX.{version}.
2009-06-09 17:49:05 -07:00
Guy Harris
c9ef229fef
*Don't* use $(AR) to build the library; not all versions of Make define
...
it.
2009-06-09 17:07:43 -07:00
Guy Harris
2ba97bd5f8
Use "if test", not "if [" - by the time it makes it through M4, the ['s
...
disappear.
2009-06-09 16:54:49 -07:00
Guy Harris
6c23620756
On Solaris, when compiling with GCC, pass to the linker flags
...
appropriate for the Sun linker rather than the GNU linker.
2009-06-09 14:47:28 -07:00
Guy Harris
6236d9e061
Create the lib directory before installing the shared library.
2009-06-09 11:54:58 -07:00
Guy Harris
135792cec1
"make clean" should remove pcap-config, as it's a generated file.
2009-06-09 11:37:10 -07:00
Guy Harris
4bdfcd89b8
Add in the V_RPATH_OPT Makefile variable, set from the V_RPATH_OPT
...
configure script variable.
2009-06-09 11:34:05 -07:00
Guy Harris
c1fd939e9d
Regenerate.
2009-06-09 11:26:26 -07:00
Guy Harris
7cd4949d49
Oops, close a quote.
2009-06-09 10:56:41 -07:00
Guy Harris
db68de2198
Add a way to have pcap-config supply the appropriate rpath flag, if any.
2009-06-09 10:50:31 -07:00
Guy Harris
fcc6ea3b28
Have "make uninstall" un-install pcap-config.
2009-06-08 10:30:49 -07:00
Guy Harris
8fb603979c
At 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.
2009-06-07 17:54:01 -07:00
Guy Harris
af3676461d
Explicitly list the config.* files to ignore; config.guess and
...
config.sub are in the Git repository.
Also list .devel as a file to ignore.
2009-06-07 14:24:41 -07:00
Guy Harris
7d878f834b
Install the shared library by default.
...
Add rules to install and uninstall HP-UX PA-RISC 1.x shared libraries.
2009-06-07 14:21:29 -07:00
Guy Harris
5f760eadd5
Add the release tarball to the .gitignore list and the list of files to
...
clean.
2009-06-07 11:48:58 -07:00
Guy Harris
4c8ab2f107
Add shared libraries to the .gitignore list.
2009-06-07 11:44:50 -07:00
Guy Harris
e0b238b794
Update 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.
Don't add -DHAVE_SEPTEL_API to V_DEFS - we add HAVE_SEPTEL_API to the
config.h file, which should be sufficient.
2009-06-07 11:41:03 -07:00
Guy Harris
46e12d5db2
Merge branch 'master' of git+ssh://guy@bpf.tcpdump.org/tcpdump/master/git/libpcap
2009-06-07 10:54:10 -07:00
Guy Harris
5d86a7c3b2
Move some more stuff up before the first use.
2009-06-01 13:04:55 -07:00
Guy Harris
9a4ef64d76
Move up the definition of get_mac80211_phydev() before all its uses.
2009-06-01 13:03:05 -07:00
Guy Harris
102c1ff460
When 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.
Support turning on monitor mode with libnl even if we don't have support
for the Wireless Extensions, just in case the Wireless Extensions go
away at some point in the future if every 802.11 device has a mac80211
driver.
2009-06-01 12:56:05 -07:00
Guy Harris
33aa345694
Merge branch 'master' of git+ssh://guy@bpf.tcpdump.org/tcpdump/master/git/libpcap
2009-06-01 10:20:09 -07:00
Guy Harris
34d7963f7e
If we have lex but not flex, we assign a "const char *" to "in_buffer";
...
make it a "const char *" as well.
2009-05-24 13:22:03 -07:00
Guy Harris
95c97b9b6f
Make 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.
2009-05-22 16:14:08 -07:00
Guy Harris
4da1fd6159
Add 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.
2009-05-22 16:04:25 -07:00
Guy Harris
9f59acab41
To put mac80211 devices in monitor mode, create a "monN" device for the
...
underlying adapter, bring it up, and capture on that.
This means libpcap nees to be linked with -lnl.
2009-05-22 05:50:15 -07:00