| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
Based on a patch from cr4ckn@sourceforge.net, but with a macro
PLURAL_SUFFIX() defined to return either "s" or "" (rather than possibly
printing a NUL character with %c), and with that macro used in a couple
of cases where the equivalent had been done by hand, and with one case
the patch missed fixed as well.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rather than hardcode the WIN32 define, add proper fork checks to the
configure script and check those. This fixes building for nommu systems
which lack the fork function.
While we're here though, add support for this functionality via vfork
so that it does work on nommu systems. And fix an old bug where we
exit properly in the forked child when the exec failed instead of just
returning to the calling code (which isn't expecting it).
Reviewed-By: Guy Harris <guy@alum.mit.edu>
|
|
|
|
|
|
|
|
|
|
| |
In addition to Paul's change, I added a comment explaining why we do
this, and explaining that doing so after opening the first savefile
doesn't help with subsequent savefiles, so you'll have to come up with a
better fix if you want the savefiles opened by the original UID or
outside the chroot.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
|
| |
|
| |
|
|
|
|
|
|
| |
Based on a patch from Scott Mcmillan <scott.a.mcmillan@intel.com>.
While we're at it, make some error messages a bit less geeky.
|
|
|
|
|
|
|
|
|
|
| |
Reading from a capture file that has not yet received any packets fails
with "truncated dump file"; to avoid this, flush the file (forcing the
pcap header out) immediately after opening it.
(Added Romain to the credits.)
Reviewed-By: Guy Harris <guy@alum.mit.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I give up. I have no access to the 802.11s drafts, I can't find
anything that suggests whether a heuristic check for an 802.11s header
should check for To DS and From DS both being set or either being set or
unset, or whether it should check for a QoS frame type (the examples in
all the documentation I can find have To DS and From DS set, and have a
QoS field, in the 802.11 header, but that might just be an example
802.11 header showing all the fields), so I'm just adding a -h
command-line flag; you need to specify it to get tcpdump to try to guess
whether a frame has a mesh header or not. I'll leave it up to somebody
else to figure out what the best heuristic for detecting the presence of
mesh headers is (note that tcpdump and Wireshark have different
heuristics, both of which can probably get false positives, especially
with encrypted frames where the first payload byte just *happens* not to
have any of the reserved bits in the mesh header flags set).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
the difference isn't major, but it might be more important later.
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| | |
printer.
Merge commit 'origin/master'
Conflicts:
netdissect.h
|
| |
| |
| |
| | |
While we're at it, clean up some whitespace.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
device for which they're being reported, so if no -i flag was given
people don't think it's something such as the union of of all link-layer
types supported by all devices, and, if we can determine whether the
device supports monitor mode (with libpcap 1.0.0 and later), indicate
whether the link-layer types are the ones supported when not in monitor
mode (if -I wasn't specified) or when in monitor mode (if -I was
specified), so people don't wonder why some types aren't available (as
some are available only in monitor mode, and others are available only
when not in monitor mode, on some platforms).
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on OpenSolaris, or Solaris Express Community Edition, build 125 and later.
The attached patch introduces support for printing out the IPNET headers used
for packet capture inside of zones that share their networking with the global
zone and for packets "transmitted" between zones.
tcpdump 4.0.0 will ship with builds 129 and later of OpenSolaris/SXCE and
when run as root with the '-L' option, should behave as below to indicate that
the system is fully functional:
Data link types (use option -y to set):
DOCSIS (DOCSIS) (printing not supported)
IPNET (Solaris IPNET)
EN10MB (Ethernet)
Cheers,
Darren
|
| |
|
| |
|
|
|
|
|
| |
doesn't know that it needs to be converted to a null pointer constant;
add an explicit cast.
|
|
|
|
| |
there are no interfaces available.
|
|
|
|
| |
we're done with it.
|
|
|
|
|
|
|
| |
printed when trying to print packets for a DLT_ for which we don't have
a printer to indicate that you can still save to a capture file in that
case. (Slightly changed not to require DLT_USB_LINUX_MMAPPED to be
defined, for older libpcaps that only define DLT_USB_LINUX.)
|
|
|
|
|
|
|
|
| |
maximum.
Get rid of redundant definition of DEFAULT_SNAPLEN in interface.h.
Update the documentation.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with which it was released, and DLT_BLUETOOTH_HCI_H4_WITH_PHDR might be
defined by pcap-bpf.h without pcap/bluetooth.h being present (as appears
to be the case on Fedora 9, for example), so check whether
<pcap/bluetooth.h> is usable.
Update a comment - F9 appears to have a "/usr/include/pcap.h" if you
install the libpcap headers.
When adding -I flags when running a compiler-based test, add them to
CPPFLAGS, not CFLAGS - the latter doesn't work right with
AC_CHECK_HEADERS, as the "gcc -E" run doesn't have the -I flags added.
|
|
|
|
|
|
|
| |
The shared secret is passed using the already existing -M option which is
used for TCP-MD5 checking.
add initial supoort for RSVP Integrity object verification.
|
|
|
|
|
| |
pcap_activate() can return positive values as warnings, not just 0, on
success; log warnings in those cases.
|
|
|
|
|
|
|
|
|
| |
pcap_activate(), and there's a non-null error string returned by
pcap_geterr(), print it as part of the error message, as it might
contain information useful when debugging the problem.
If we get PCAP_ERROR, just print the error string from pcap_geterr(),
not the device name, as the error string will contain the device name.
|
|
|
|
|
| |
PCAP_ERROR_ statuses to strings, as pcap_strerror() no longer does that.
Also, fix up one error message to include the capture device name.
|
| |
|
|
|
|
|
| |
on all platforms in that case. Also, add a "-I" flag to turn on monitor
mode.
|
|
|
|
|
|
|
| |
for which we don't have a print routine; you *can* use tcpdump to
capture traffic with those DLT_ values, as long as you use "-w" so that
we don't interpret the contents of the packet, we just blindly write the
raw packet data to the capture file.
|
|
|
|
| |
Update a comment (we now parse the radiotap header).
|
|
|
|
|
| |
capture file rather than capturing (statistics aren't supported by
libpcap when reading from a capture file).
|
|
|
|
|
| |
pcap_stats() fails, so we don't keep attempting to get statistics and
failing.
|
|
|
|
| |
Windows.
|
|
|
|
|
| |
Update CREDITS, FILES, and INSTALL appropriately; clean up changes to
Makefile.in to keep the file names in order.
|
|
|
|
|
|
|
|
|
|
|
| |
if it does, use that for the pf definitions;
if it doesn't, don't compile in pf support;
as both OpenBSD and FreeBSD have changed the pf definitions and header
format without changing the DLT value, so you can't reliably read
pflog-format libpcap files on a machine running an OS version other than
the one on which the file was generated.
|
|
|
|
|
|
| |
checking of TCP checksums.
Sort the argument processing code alphabetically.
|
|
|
|
|
|
|
| |
add support for the the post-rotate -z flag (to be used in
conjunction with -C or -G) which can be used to specify a command tcpdump
should execute on each savefile after it's been rotated
for example to compress a capture file.
|
|
|
|
| |
checksumming routines later to this file), init shred checksumming tables with init_checksum(), assume network byte order for tag correlation ID in the ATM OAM cell printer
|
| |
|
|
|
|
|
|
| |
(in micro-second resolution) between the first and current packet.
- cleanup the the ts_print code a bit -> add a ts_format helper
|
|
|
|
|
|
|
|
| |
midnight GMT; just use time().
We also don't need to flush the standard error right before exiting.
Clean up white space.
|
|
|
|
| |
fix memleak by freeing the rotated files accordingly
|
|
|
|
| |
auto-rotate files after some times given with the G flag;
|