]> The Tcpdump Group git mirrors - tcpdump/log
tcpdump
14 years agoMerge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Michael Richardson [Fri, 31 Dec 2010 17:28:51 +0000 (12:28 -0500)] 
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump

14 years agoupdated RPL type code to RPL-17 draft
Michael Richardson [Fri, 31 Dec 2010 17:28:43 +0000 (12:28 -0500)] 
updated RPL type code to RPL-17 draft
added secure bit
updated single test case

14 years agoUse spaces for all entries. Fix Luis MartinGarcia's name.
Luis MartinGarcia [Wed, 1 Dec 2010 00:29:58 +0000 (16:29 -0800)] 
Use spaces for all entries.  Fix Luis MartinGarcia's name.

14 years agoAdd support for nommu systems.
Guy Harris [Wed, 1 Dec 2010 00:18:32 +0000 (16:18 -0800)] 
Add support for nommu systems.

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 <[email protected]>
14 years agoUse AC_PATH_TOOL, not AC_PATH_PROG, to find pcap-config.
Mike Frysinger [Wed, 1 Dec 2010 00:13:05 +0000 (16:13 -0800)] 
Use AC_PATH_TOOL, not AC_PATH_PROG, to find pcap-config.

The PROG variant does not take into consideration cross-compilation, so
it always looks for "pcap-config" which finds the host script.  So use
the TOOL variant instead which first searches for the cross-prefixed
pcap-config before falling back to the bare "pcap-config".

Reviewed-By: Guy Harris <[email protected]>
14 years agoMake sure we can link with libpcap.
Guy Harris [Sun, 14 Nov 2010 20:23:40 +0000 (12:23 -0800)] 
Make sure we can link with libpcap.

After finding libpcap and getting a list of other flags needed when
linking, we check for "pcap_loop()", to make sure we found a working
libpcap and have all the right other libraries with which dnl to link.
(Otherwise, for example, the check for pcap_list_datalinks() will fail,
not because the routines are missing from the library, but because we
aren't linking properly with libpcap, and that will cause confusing
errors at build time.)

14 years agoImprove printout of DHCPv6 options.
Steinar Haug [Sat, 13 Nov 2010 18:34:49 +0000 (10:34 -0800)] 
Improve printout of DHCPv6 options.

Reviewed-By: Guy Harris <[email protected]>
14 years agoConvert the IPv6 printer to use netdissect.
Guy Harris [Sun, 7 Nov 2010 20:50:16 +0000 (12:50 -0800)] 
Convert the IPv6 printer to use netdissect.

14 years agoUpdate Gisle Vanem's address.
Guy Harris [Sun, 7 Nov 2010 19:24:39 +0000 (11:24 -0800)] 
Update Gisle Vanem's address.

14 years agoUse the ndo argument to lane_hdr_print().
Guy Harris [Sun, 7 Nov 2010 02:53:17 +0000 (19:53 -0700)] 
Use the ndo argument to lane_hdr_print().

14 years agoUse ND_PRINT().
Guy Harris [Sun, 7 Nov 2010 02:52:48 +0000 (19:52 -0700)] 
Use ND_PRINT().

14 years agoMore correctly and completely describe what -Z does now.
Guy Harris [Sun, 7 Nov 2010 02:38:32 +0000 (19:38 -0700)] 
More correctly and completely describe what -Z does now.

14 years agoSwitch user ID/root directory with -Z before opening savefiles for output.
Paul Ferrell [Sun, 7 Nov 2010 02:28:10 +0000 (19:28 -0700)] 
Switch user ID/root directory with -Z before opening savefiles for output.

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 <[email protected]>
14 years agomake test cases a bit quieter
Michael Richardson [Thu, 7 Oct 2010 18:47:42 +0000 (14:47 -0400)] 
make test cases a bit quieter

14 years agoadded support and test case for QinQ packets
Michael Richardson [Thu, 7 Oct 2010 18:47:22 +0000 (14:47 -0400)] 
added support and test case for QinQ packets

14 years agoupdated test with extra length printed
Michael Richardson [Thu, 7 Oct 2010 18:44:45 +0000 (14:44 -0400)] 
updated test with extra length printed

14 years agoreworked print-ether to use netdissect
Michael Richardson [Thu, 7 Oct 2010 18:36:49 +0000 (14:36 -0400)] 
reworked print-ether to use netdissect

14 years agoMark various IPv4 and IPv6 headers as unaligned.
Guy Harris [Tue, 31 Aug 2010 17:03:47 +0000 (10:03 -0700)] 
Mark various IPv4 and IPv6 headers as unaligned.

This prevents GCC on SPARC from generating code that assumes those
structures are aligned naturally, which they are not guaranteed to be.

Move some #defines from interface.h to tcpdump-stdinc.h to make them
available to code that doesn't include interface.h.

Move the declaration of nextproto6_cksum() to ip6.h, so that only files
that use it get it declared, and thus so that you don't need to define
"struct ip6_hdr" in everything that includes interface.h.  Don't include
ip6.h in tcpdump-stdinc.h.

14 years agoPoint users to the pcap-tstamp-type man page for information for -j.
Guy Harris [Mon, 23 Aug 2010 22:38:56 +0000 (15:38 -0700)] 
Point users to the pcap-tstamp-type man page for information for -j.

14 years agoDocument -j and -J. List -h in the usage message.
Guy Harris [Mon, 23 Aug 2010 22:30:56 +0000 (15:30 -0700)] 
Document -j and -J.  List -h in the usage message.

14 years agoMerge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Guy Harris [Mon, 23 Aug 2010 10:40:53 +0000 (03:40 -0700)] 
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump

14 years agoGet rid of another unused win32/Include header.
Guy Harris [Mon, 23 Aug 2010 10:38:32 +0000 (03:38 -0700)] 
Get rid of another unused win32/Include header.

14 years agoAs with libpcap, get rid of autom4te.cache when doing "make distclean".
Guy Harris [Mon, 23 Aug 2010 10:36:12 +0000 (03:36 -0700)] 
As with libpcap, get rid of autom4te.cache when doing "make distclean".

14 years agoGet rid of some more include files we no longer need.
Guy Harris [Mon, 23 Aug 2010 10:30:54 +0000 (03:30 -0700)] 
Get rid of some more include files we no longer need.

We have our own copies of those include files, which we use; we haven't
used the system versions for a long time, so we don't need to drag them
along for compiling WinDump.

14 years agoClean up handling of tftp.h.
Guy Harris [Mon, 23 Aug 2010 10:22:25 +0000 (03:22 -0700)] 
Clean up handling of tftp.h.

Don't include the win32/Include/Arpa copy in print-udp.c; don't put that
copy into the release tarball; and don't talk about <arpa/tftp.h>, or
work around its deficiencies in some OSes, as we no longer include it,
we include our own tftp.h, which has a th_stuff array in its structure
definition.

14 years agoHandle DLT_IEEE802_15_4_NOFCS like DLT_IEEE802_15_4.
Guy Harris [Mon, 23 Aug 2010 01:00:27 +0000 (18:00 -0700)] 
Handle DLT_IEEE802_15_4_NOFCS like DLT_IEEE802_15_4.

14 years agoPrint a -L-like header for -J.
Guy Harris [Mon, 23 Aug 2010 00:59:00 +0000 (17:59 -0700)] 
Print a -L-like header for -J.

14 years agoAdd support for setting the time stamp type for a capture.
Guy Harris [Mon, 23 Aug 2010 00:32:26 +0000 (17:32 -0700)] 
Add support for setting the time stamp type for a capture.

Based on a patch from Scott Mcmillan <[email protected]>.

While we're at it, make some error messages a bit less geeky.

14 years agoFix credits item for Pawel Worach.
Guy Harris [Sun, 22 Aug 2010 20:49:00 +0000 (13:49 -0700)] 
Fix credits item for Pawel Worach.

(This is for the "Correctly check for various values of the ICMP type
field." fixes to print-icmp6.c.)

14 years agoCorrectly check for various values of the ICMP type field.
Guy Harris [Fri, 20 Aug 2010 02:23:08 +0000 (19:23 -0700)] 
Correctly check for various values of the ICMP type field.

clang+llvm warnings pointed out some incorrect code - you can't, in C,
check for multiple values for a variable that way.

14 years agoPrint IPX network numbers as 8 hex digits, as we do elsewhere.
Guy Harris [Tue, 17 Aug 2010 07:04:37 +0000 (00:04 -0700)] 
Print IPX network numbers as 8 hex digits, as we do elsewhere.

14 years agoAdd additional length checking, print unsigned lengths with %u.
Guy Harris [Mon, 16 Aug 2010 22:12:31 +0000 (15:12 -0700)] 
Add additional length checking, print unsigned lengths with %u.

14 years agoPrint AppleTalk layer-3 network numbers as 16-bit unsigned decimal numbers.
Guy Harris [Mon, 16 Aug 2010 22:02:12 +0000 (15:02 -0700)] 
Print AppleTalk layer-3 network numbers as 16-bit unsigned decimal numbers.

Pick up from FreeBSD:

  revision 1.3
  date: 1996/09/11 06:18:26;  author: pst;  state: Exp;  lines: +9 -12
  branches:  1.3.2;
  Print appletalk layer 3 addresses as 16 bit unsigned decimal numbers,
  not two 8 bit values.  This conforms to industry standard.

  These changes have been sent back to LBL.

Inside AppleTalk(R), Second Edition speaks of node numbers as 16-bit.

14 years agoGet rid of no-longer-valid comment.
Guy Harris [Mon, 16 Aug 2010 17:43:28 +0000 (10:43 -0700)] 
Get rid of no-longer-valid comment.

We no longer guarantee alignment in any printer routine; all printers
must use the EXTRACT_ macros to extract integral quantities - and the
Appletalk printers now do so.

14 years agoPrevent GCC from doing some alignment-unsafe optimizations on SPARC.
Guy Harris [Sun, 15 Aug 2010 00:31:04 +0000 (17:31 -0700)] 
Prevent GCC from doing some alignment-unsafe optimizations on SPARC.

At least some versions of GCC will, on SPARC, generate code for

if (bp->bp_htype == 1 && bp->bp_hlen == 6 && bp->bp_op == BOOTPREQUEST) {

where bp is a pointer to a struct bootp, that loads the first 4-byte
word in that structure, masks out the field in that structure that's not
being compared, and compares against a word with the appropriate values
in the other fields.  That won't work, because there's no guarantee that
bp points to a value aligned on a 4-byte boundary.

Declaring "struct bootp" to be packed appears to keep at least GCC 4.2.4
from performing that optimization; we define an "UNALIGNED" tag to apply
to structures to prevent that optimization, and apply that tag to the
structures in bootp.h.  (We'll apply it to other structures as we
discover the need for it.)

14 years agofrom Anton Bernal:
Hannes Gredler [Sun, 8 Aug 2010 12:52:35 +0000 (14:52 +0200)] 
from Anton Bernal:
-add support for BGP / LDP FEC 129 interworking

14 years agoList the 4.1.x fixes we've checked in so far.
Guy Harris [Tue, 20 Jul 2010 18:28:16 +0000 (11:28 -0700)] 
List the 4.1.x fixes we've checked in so far.

Also, clean up the item for the post-4.1.x changes.

14 years agoAdd the contributors of the recent man page changes to the credits.
Guy Harris [Sat, 5 Jun 2010 07:38:19 +0000 (00:38 -0700)] 
Add the contributors of the recent man page changes to the credits.

(And sort the credits by first name while we're at it.)

14 years agoIf -U is specified, flush the file after creating it, so it's not zero-length.
Romain Francoise [Sat, 5 Jun 2010 07:37:27 +0000 (00:37 -0700)] 
If -U is specified, flush the file after creating it, so it's not zero-length.

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 <[email protected]>
14 years agoMerge back changes from the Debian package:
Romain Francoise [Sat, 5 Jun 2010 03:10:07 +0000 (20:10 -0700)] 
Merge back changes from the Debian package:
- fix TCP flags output description, by Christophe Rhodes <[email protected]>
  Original patch submitted in http://bugs.debian.org/575724
- two remaining typo fixes, by A Costa <[email protected]>
  Original patch submitted in http://bugs.debian.org/342310

Reviewed-By: Guy Harris <[email protected]>
14 years agoAdd ACK decoding and add PGMCC DATA and FEEDBACK options.
Steve-o [Sun, 30 May 2010 01:50:37 +0000 (18:50 -0700)] 
Add ACK decoding and add PGMCC DATA and FEEDBACK options.

Reviewed-By: Guy Harris <[email protected]>
14 years agoHandle the reserved value for the addressing modes.
Guy Harris [Sat, 29 May 2010 01:19:36 +0000 (18:19 -0700)] 
Handle the reserved value for the addressing modes.

Report an error if the source or destination addressing mode has the
reserved value.  Also, squelch a warning.

14 years agoAdd a -h flag, and only attempt to recognize 802.11s mesh headers if it's set.
Guy Harris [Fri, 28 May 2010 06:58:01 +0000 (23:58 -0700)] 
Add a -h flag, and only attempt to recognize 802.11s mesh headers if it's set.

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).

15 years agoFix check for malformed frames.
Guy Harris [Wed, 19 May 2010 02:25:18 +0000 (19:25 -0700)] 
Fix check for malformed frames.

Don't get confused by some malformed frames - always return -1 - and
assign the result of extract_header_length() to an int, so we don't get
warnings when we compare it against -1.  (Its return value always fits
in an int.)

15 years agoMerge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Michael Richardson [Thu, 13 May 2010 18:31:05 +0000 (14:31 -0400)] 
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump

15 years agomoved ieee802.15.4 to NDO system
Michael Richardson [Thu, 13 May 2010 18:30:59 +0000 (14:30 -0400)] 
moved ieee802.15.4 to NDO system

15 years agogive credit to Dmitry Eremin-Solenikov <[email protected]>
Michael Richardson [Thu, 13 May 2010 18:23:17 +0000 (14:23 -0400)] 
give credit to Dmitry Eremin-Solenikov <[email protected]>

15 years agoMerge commit 'lumag/master'
Michael Richardson [Thu, 13 May 2010 17:52:46 +0000 (13:52 -0400)] 
Merge commit 'lumag/master'

15 years agoWhen printing the link-layer type list, send *all* output to stderr.
Guy Harris [Fri, 7 May 2010 08:11:45 +0000 (01:11 -0700)] 
When printing the link-layer type list, send *all* output to stderr.

15 years agoAdd a comment to the AC_DEFINE for _SUN, matching what we do in libpcap.
Guy Harris [Fri, 16 Apr 2010 10:31:04 +0000 (03:31 -0700)] 
Add a comment to the AC_DEFINE for _SUN, matching what we do in libpcap.

15 years agoInclude the CFLAGS setting when configure was run in the compiler flags.
Guy Harris [Fri, 16 Apr 2010 10:24:45 +0000 (03:24 -0700)] 
Include the CFLAGS setting when configure was run in the compiler flags.

15 years agoBuild fat appropriately for Leopard.
Guy Harris [Tue, 6 Apr 2010 22:10:31 +0000 (15:10 -0700)] 
Build fat appropriately for Leopard.

15 years agoOS X has its own optimized ntoh[ls]; use them, don't define our own.
Guy Harris [Sun, 4 Apr 2010 21:05:23 +0000 (14:05 -0700)] 
OS X has its own optimized ntoh[ls]; use them, don't define our own.

15 years agoFix error, pick up stuff from libpcap bittypes.h.
Guy Harris [Sun, 4 Apr 2010 20:49:03 +0000 (13:49 -0700)] 
Fix error, pick up stuff from libpcap bittypes.h.

15 years agoDon't define any of the SIZEOF_ values.
Guy Harris [Sun, 4 Apr 2010 20:41:27 +0000 (13:41 -0700)] 
Don't define any of the SIZEOF_ values.

15 years agoDon't depend on the settings of SIZEOF_ values.
Guy Harris [Sun, 4 Apr 2010 20:36:21 +0000 (13:36 -0700)] 
Don't depend on the settings of SIZEOF_ values.

We're eventually going to stop defining the SIZEOF_ values, as we
support, for example, building fat on Mac OS X, and SIZEOF_LONG, for
example, is different between 32-bit and 64-bit builds.

15 years agoOur bittypes.h is needed only on Windows. Move it to win32/Include.
Guy Harris [Sun, 4 Apr 2010 20:24:32 +0000 (13:24 -0700)] 
Our bittypes.h is needed only on Windows.  Move it to win32/Include.

15 years agoBack out mistaken change.
Guy Harris [Sun, 4 Apr 2010 19:45:06 +0000 (12:45 -0700)] 
Back out mistaken change.

15 years agoFix check for Snow Leopard.
Guy Harris [Sun, 4 Apr 2010 19:42:00 +0000 (12:42 -0700)] 
Fix check for Snow Leopard.

For OS X version 10.{x}.{y}, Darwin is (at least for later versions)
version {x+4}.{y}.

15 years agoBuild universal on OS X by default; add an option to disable that.
Guy Harris [Sun, 4 Apr 2010 19:08:11 +0000 (12:08 -0700)] 
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 tcpdump, just default to universal on OS X by
default.  Pick the particular targets to match the way tcpdump is built
for the OS for which we're building.

15 years agoMake the date on the change notes for 4.1.0 match the release date.
Guy Harris [Sat, 3 Apr 2010 19:01:25 +0000 (12:01 -0700)] 
Make the date on the change notes for 4.1.0 match the release date.

15 years agoAdd the tests to the release tarball.
Guy Harris [Fri, 2 Apr 2010 06:02:46 +0000 (23:02 -0700)] 
Add the tests to the release tarball.

15 years agoRe-generate configure script.
Guy Harris [Fri, 2 Apr 2010 06:01:56 +0000 (23:01 -0700)] 
Re-generate configure script.

15 years agoRespect --without-chroot correctly
Peter Volkov [Fri, 2 Apr 2010 05:33:30 +0000 (09:33 +0400)] 
Respect --without-chroot correctly

./configure --without-chroot will configure tcpdump with "no" as the
value of chroot directory and cause tcpdump to fail with:

tcpdump: Couldn't chroot/chdir to 'no': No such file or directory

This patch makes ./configure to avoid chroot directory when called with
--without-chroot.

15 years agoThe first 4.2.x release will be 4.2.0, not 4.2.
Guy Harris [Fri, 2 Apr 2010 05:51:09 +0000 (22:51 -0700)] 
The first 4.2.x release will be 4.2.0, not 4.2.

15 years agoAdd the current set of 4.1.1 changes from 4.1.0.
Guy Harris [Fri, 2 Apr 2010 05:49:56 +0000 (22:49 -0700)] 
Add the current set of 4.1.1 changes from 4.1.0.

15 years agoMerge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Guy Harris [Fri, 2 Apr 2010 05:43:56 +0000 (22:43 -0700)] 
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump

Conflicts:
CHANGES

15 years agoUpdate CHANGES to reflect more of the changes in 4.1.0.
Guy Harris [Fri, 2 Apr 2010 05:42:51 +0000 (22:42 -0700)] 
Update CHANGES to reflect more of the changes in 4.1.0.

15 years agoAdd a --with-arch-flags configuration option to specify target architectures.
Guy Harris [Thu, 1 Apr 2010 00:24:33 +0000 (17:24 -0700)] 
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.

This may currently be less useful for tcpdump, as tcpdump currently
builds no libraries, but it's there for compatibility with libpcap.

15 years agoSync up the CHANGES file with the 4.1 branch.
Guy Harris [Wed, 31 Mar 2010 19:24:28 +0000 (12:24 -0700)] 
Sync up the CHANGES file with the 4.1 branch.

15 years agoFix build on systems with PF.
Wesley Shields [Wed, 31 Mar 2010 19:10:59 +0000 (12:10 -0700)] 
Fix build on systems with PF.

Reviewed-By: Guy Harris <[email protected]>
15 years agoDon't blow up if a zero-length link-layer address is passed to linkaddr_string().
Guy Harris [Thu, 25 Mar 2010 18:21:49 +0000 (11:21 -0700)] 
Don't blow up if a zero-length link-layer address is passed to linkaddr_string().

Clean up style a bit while we're at it.

15 years agoThe draft in question has nothing to do with MPLS; clarify that.
Guy Harris [Fri, 19 Mar 2010 18:47:19 +0000 (11:47 -0700)] 
The draft in question has nothing to do with MPLS; clarify that.
Presumably the idea is that the technique is generally applicable as
long as the traffic being carried is either IPv4, IPv6, OSI CLNP, ES-IS,
or IS-IS.

Also, by the time we get there, we know we've reached the bottom of the
MPLS stack (the do loop either fails by running past the end of the
packet and going to trunc, or by terminating because we find a label
entry with the BOS bit set); there's no need to check for that.

15 years agoPrint the MPLS-encapsulated packet regardless of whether -v was
Guy Harris [Fri, 19 Mar 2010 18:26:56 +0000 (11:26 -0700)] 
Print the MPLS-encapsulated packet regardless of whether -v was
specified.

Even with multiple layers in the stack, print on one line unless -v was
specified.

15 years agoThere's now a 4.1 branch; the main branch will become 4.2.
Guy Harris [Mon, 15 Mar 2010 18:48:57 +0000 (11:48 -0700)] 
There's now a 4.1 branch; the main branch will become 4.2.

15 years agoAdded a missing source file to the cygwin makefile.
test2 [Tue, 9 Mar 2010 20:33:23 +0000 (12:33 -0800)] 
Added a missing source file to the cygwin makefile.

15 years agoAdded the definition of NBBY for Visual Studio compilers.
test2 [Tue, 9 Mar 2010 20:32:27 +0000 (12:32 -0800)] 
Added the definition of NBBY for Visual Studio compilers.

15 years agoAdded the Windows VS2005 projects.
test2 [Tue, 9 Mar 2010 20:31:20 +0000 (12:31 -0800)] 
Added the Windows VS2005 projects.

15 years agoprint_802_15_4.c: extend 802.15.4 printer to dump header information
Dmitry Eremin-Solenikov [Tue, 9 Mar 2010 15:14:06 +0000 (18:14 +0300)] 
print_802_15_4.c: extend 802.15.4 printer to dump header information

Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
15 years agotcpdump.c: fix merge error: ieee802_15_4_if_print isn't a new style printer
Dmitry Eremin-Solenikov [Tue, 9 Mar 2010 15:13:48 +0000 (18:13 +0300)] 
tcpdump.c: fix merge error: ieee802_15_4_if_print isn't a new style printer

Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
15 years agoMakefile.in: fix print-802_15_4.c file order
Dmitry Eremin-Solenikov [Tue, 9 Mar 2010 15:13:03 +0000 (18:13 +0300)] 
Makefile.in: fix print-802_15_4.c file order

Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
15 years agoaddrtoname.[ch]: add a printer for Little-Endian 64-bit address
Dmitry Eremin-Solenikov [Tue, 9 Mar 2010 15:12:39 +0000 (18:12 +0300)] 
addrtoname.[ch]: add a printer for Little-Endian 64-bit address

Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
15 years agoMerge remote branch 'origin/master'
Dmitry Eremin-Solenikov [Tue, 9 Mar 2010 14:36:58 +0000 (17:36 +0300)] 
Merge remote branch 'origin/master'

15 years agouudecode actually does not support -h, but --help
Michael Richardson [Fri, 5 Mar 2010 17:38:27 +0000 (12:38 -0500)] 
uudecode actually does not support -h, but --help

15 years agotell the user what package they might find uudecode in
Michael Richardson [Fri, 5 Mar 2010 17:37:17 +0000 (12:37 -0500)] 
tell the user what package they might find uudecode in

15 years agoMerge branch 'master' of git+ssh://kingsmere.gatineau.credil.org/home/mcr/src/tcpdump
Michael Richardson [Fri, 5 Mar 2010 17:35:45 +0000 (12:35 -0500)] 
Merge branch 'master' of git+ssh://kingsmere.gatineau.credil.org/home/mcr/src/tcpdump

15 years agofail all tests on machines without uudecode installed
Michael Richardson [Fri, 5 Mar 2010 17:35:00 +0000 (12:35 -0500)] 
fail all tests on machines without uudecode installed

15 years agochanged output of -vvv and -vvvv flags for forces
Michael Richardson [Fri, 5 Mar 2010 16:41:39 +0000 (11:41 -0500)] 
changed output of -vvv and -vvvv flags for forces

15 years agoMerge branch 'cleanup' of git://github.com/krajaratnam/tcpdump
Guy Harris [Wed, 24 Feb 2010 02:07:34 +0000 (18:07 -0800)] 
Merge branch 'cleanup' of git://github.com/krajaratnam/tcpdump

15 years agoProcess VLAN frames and Alteon jumbo frames in the Ethernet printer.
Guy Harris [Sun, 21 Feb 2010 20:44:53 +0000 (12:44 -0800)] 
Process VLAN frames and Alteon jumbo frames in the Ethernet printer.

Instead of having the Ethernet-type handler process the VLAN and Alteon
jumbo frame Ethernet type values, process them in the Ethernet (and
Linux cooked-mode) dissectors.  This makes it easier for the right MAC
addresses to be printed for those packets.

As part of that, rename ether_encap_print() to ethertype_print() - it
doesn't print encapsulated Ethernet frames, it prints payloads whose
packet type is indicated by an Ethernet type field value - and remove
the no-longer-needed "extracted Ethernet type" argument.  That also lets
us eliminate it from the SNAP print routine.

Make ether_print() take a function, and an argument to pass to that
function, as parameters, so that, for example, the ATM LANE printer can
use it and put the LEC ID into the link-layer headeer printout.

15 years agoAdd some bounds checks for the source routing information.
Guy Harris [Sun, 21 Feb 2010 19:29:46 +0000 (11:29 -0800)] 
Add some bounds checks for the source routing information.

15 years agoDon't directly fetch multi-byte integers from packets.
Guy Harris [Sun, 21 Feb 2010 19:27:41 +0000 (11:27 -0800)] 
Don't directly fetch multi-byte integers from packets.

Use the EXTRACT_ macros to extract multi-byte integral values from
packets, rather than just dereferencing pointers into the packet; there
is no guarantee that the packet data will be aligned on the right
boundary, and there is no guarantee that, if they're not, a direct
access will work correctly.

15 years agoDon't directly fetch multi-byte integers from packets.
Guy Harris [Sun, 21 Feb 2010 08:27:00 +0000 (00:27 -0800)] 
Don't directly fetch multi-byte integers from packets.

Use the EXTRACT_ macros to extract multi-byte integral values from
packets, rather than just dereferencing pointers into the packet; there
is no guarantee that the packet data will be aligned on the right
boundary, and there is no guarantee that, if they're not, a direct
access will work correctly.

15 years agoAdd additional checks to make sure we don't go past the end of the packet.
Guy Harris [Sun, 21 Feb 2010 06:43:19 +0000 (22:43 -0800)] 
Add additional checks to make sure we don't go past the end of the packet.

15 years agomark autogenerated version as const
Kovarththanan Rajaratnam [Sat, 20 Feb 2010 08:19:55 +0000 (09:19 +0100)] 
mark autogenerated version as const

15 years agotcpdump.c: mark several variables as static
Kovarththanan Rajaratnam [Sat, 20 Feb 2010 08:02:00 +0000 (09:02 +0100)] 
tcpdump.c: mark several variables as static

15 years agostrcasecmp.c: mark array as const
Kovarththanan Rajaratnam [Sat, 20 Feb 2010 07:56:59 +0000 (08:56 +0100)] 
strcasecmp.c: mark array as const

15 years agosmbutil.c: mark several structs as const
Kovarththanan Rajaratnam [Sat, 20 Feb 2010 07:55:19 +0000 (08:55 +0100)] 
smbutil.c: mark several structs as const

15 years agosignature.h/c: mark several structs as const
Kovarththanan Rajaratnam [Sat, 20 Feb 2010 07:53:15 +0000 (08:53 +0100)] 
signature.h/c: mark several structs as const

15 years agooui.h/c: mark several structs as const
Kovarththanan Rajaratnam [Sat, 20 Feb 2010 07:50:09 +0000 (08:50 +0100)] 
oui.h/c: mark several structs as const