dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

1404 Commits

Author SHA1 Message Date
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
Guy Harris 6cbbcee6b6 Reject 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.
2009-05-13 12:57:15 -07:00
Guy Harris 8cbe17bec2 Add LINKTYPE_AOS, corresponding to DLT_AOS. 2009-05-12 10:07:59 -07:00
Michael Richardson 7f3508098b provided DLT_AOS to eric.lidwa-1@nasa.gov 2009-05-12 10:05:31 -04:00
Michael Richardson f4e7415118 fixed date and added note about updates to pcap-dag 2009-05-06 14:16:31 -04:00
Stephen Donnelly 0ca4ea9a38 Updating Endace DAG ERF support.
- Ensure all 'MC' ERF types are handled correctly by DLT_ERF.

- Allow capture of ERF 'TYPE_IPV6' records as DLT_RAW.

- Add new ERF types

- Explicitly list known ERF types with no matching native DLT.
2009-05-04 16:32:52 +12:00
Guy Harris 45d78ae906 Fix a typo. 2009-04-21 09:35:39 -07:00
Guy Harris 62d8aa2b45 Slight update to the item about shared libraries, now that we support
some additional platforms.
2009-04-21 09:11:06 -07:00
Guy Harris f51454f7fc Extend 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.

Add support for building shared libraries on HP-UX (not yet tested).

Attempt to set the soname (or equivalent) appropriately when building a
shared library.

Build, and install, shared libraries by default.

Update config.guess and config.sub.
2009-04-21 09:09:37 -07:00
Guy Harris 2b2d78a031 Add a linktype for DECT packets, requested by Matthias Wenzel. 2009-04-19 15:52:03 -07:00
Guy Harris 664e4a16bb From Robert Edmonds: in the lexical analyzer, free up any addrinfo
structure we got back from getaddrinfo().

Plug some other getaddrinfo() leaks while we're at it.

Fail if you try to use "gateway" on ATM if we're not checking for ATM
LANE.
2009-04-18 13:53:52 -07:00
Guy Harris d643b6a0fa From Yvan Vanhullebus: add missing mapping for DLT_ENC <-> LINKTYPE_ENC. 2009-04-18 13:14:27 -07:00
Guy Harris 75734791c5 From Darren Reed: some changes to support BPF on Solaris. Update his
e-mail address while we're at it.

Use <fcntl.h> rather than <sys/file.h> in pcap-bpf.c - that's the right
header for open().

Don't include <sys/timeb.h> - it doesn't define anything that pcap-bpf.c
should need.
2009-04-18 13:04:27 -07:00
Guy Harris dc0da695d7 From a quick look at the hostap driver, it appears that newer versions
support the Radiotap header.
2009-04-07 13:20:07 -07:00
Guy Harris 91584dc5c5 By 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.

Add a -static flag that includes DEPLIBS, as, on most if not all
platforms, static libraries can't be linked with dynamic libraries, so
programs would have to link with libraries on which libpcap depends if
it links statically with libpcap.

If both --cflags and --libs are given, print both sets of flags, on the
same line (as pkg-config does).
2009-03-27 00:41:53 -07:00
Guy Harris a8284458d5 Add an item to the CHANGES for the fix to make memory-mapped capture on
Linux work with pcap_next() and pcap_next_ex().
2009-03-25 09:16:12 -07:00
Guy Harris 18d5f5efc1 Don't return PCAP_WARNING if mmapped capturing isn't supported. 2009-03-25 07:21:29 -07:00
Guy Harris 7326e1ad48 prev_pkt is in the pcap_md structure, not the pcap_t structure itself. 2009-03-25 08:53:58 -07:00
Guy Harris 64b88abf98 Move "union thdr" to pcap-int.h, as we use it in pcap-int.h. 2009-03-25 08:48:57 -07:00
Guy Harris 54ef309e92 In 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.
2009-03-23 23:18:25 -07:00
Guy Harris f5af8a7ce4 Fix typo in Romain's name. 2009-03-19 10:23:53 -07:00
Guy Harris 3866e83123 From Roman Francoise: rename the USB-sniffing devices to "usbmonN", so
as not to collide with the "usbN" names for USB-based networking
devices.
2009-03-19 09:37:03 -07:00