]> The Tcpdump Group git mirrors - tcpdump/log
tcpdump
13 years agoAdd changes in 4.2.1.
Guy Harris [Sat, 10 Dec 2011 01:31:08 +0000 (17:31 -0800)] 
Add changes in 4.2.1.

13 years agoMerge remote branch 'github/master'
Michael Richardson [Sat, 10 Dec 2011 01:04:11 +0000 (20:04 -0500)] 
Merge remote branch 'github/master'

13 years agoMerge pull request #2 from bodgit/master
Michael Richardson [Sat, 10 Dec 2011 01:01:15 +0000 (17:01 -0800)] 
Merge pull request #2 from bodgit/master

Teach PPPoE parser about RFC 4638

13 years agoTeach PPPoE parser about RFC 4638
Matt Dainty [Fri, 9 Dec 2011 20:46:27 +0000 (20:46 +0000)] 
Teach PPPoE parser about RFC 4638

13 years agoFix a typo (from the Red Hat tcpdump package) and use .LP.
Guy Harris [Fri, 9 Dec 2011 09:35:55 +0000 (01:35 -0800)] 
Fix a typo (from the Red Hat tcpdump package) and use .LP.

13 years agoGet rid of an unused variable.
Guy Harris [Fri, 9 Dec 2011 07:06:00 +0000 (23:06 -0800)] 
Get rid of an unused variable.

13 years agoFix a bunch of "sizeof(sizeof(XXX))".
Sascha Wildner [Wed, 7 Dec 2011 18:42:12 +0000 (10:42 -0800)] 
Fix a bunch of "sizeof(sizeof(XXX))".

In some places, there was one too many levels of sizeof() -
sizeof(sizeof(XXX)) is sizeof(size_t), but we wanted the size of type
XXX.

Reviewed-By: Guy Harris <[email protected]>
13 years agoAdd a CARP dissector and a command-line option to dissect proto 112 as CARP.
George Neville-Neil [Wed, 23 Nov 2011 19:53:13 +0000 (11:53 -0800)] 
Add a CARP dissector and a command-line option to dissect proto 112 as CARP.

CARP and VRRP both use IP protocol number 112, so there needs to be a -T
flag to specify that protocol 112 be dissected as CARP rather than VRRP.

Also update the man page.

13 years agoRedo length checks in ospf6_print_lsa().
Guy Harris [Fri, 14 Oct 2011 04:59:57 +0000 (21:59 -0700)] 
Redo length checks in ospf6_print_lsa().

Check to make sure we haven't run past the end of the LSA by doing
length checks - and be a bit fussier about length checks.  Do more
end-of-packet checks as well.

13 years agoConstify some arguments.
Guy Harris [Fri, 14 Oct 2011 04:49:18 +0000 (21:49 -0700)] 
Constify some arguments.

13 years agoPut in missing break.
Michal Sekletar [Fri, 14 Oct 2011 03:13:03 +0000 (20:13 -0700)] 
Put in missing break.

Reviewed-by: Guy Harris <[email protected]>
13 years agoRemove unnecessary test.
Michal Sekletar [Fri, 14 Oct 2011 03:10:11 +0000 (20:10 -0700)] 
Remove unnecessary test.

Also, from me: add a comment explaining why the test isn't being done.

Reviewed-by: Guy Harris <[email protected]>
13 years agoClean up option-walking code.
Guy Harris [Fri, 14 Oct 2011 03:03:29 +0000 (20:03 -0700)] 
Clean up option-walking code.

Loop as long as the remaining option list length is not zero, even if
that means we try to process the remaining options if the remaining
length is 1, so that if the option length is bogus, we'll report it.

Check for a valid ESIS_OPTION_ES_CONF_TIME length - it's supposed to be
2.

13 years agoFix test output - IP protocol 72 is in /etc/services on at least some UN*Xes.
zilog80a [Fri, 14 Oct 2011 02:44:07 +0000 (19:44 -0700)] 
Fix test output - IP protocol 72 is in /etc/services on at least some UN*Xes.

Reviewed-By: Guy Harris <[email protected]>
13 years agoChange name of Hilscher link types to say NETANALYER.
Guy Harris [Fri, 16 Sep 2011 00:39:56 +0000 (17:39 -0700)] 
Change name of Hilscher link types to say NETANALYER.

That makes the names a bit shorter, and mentions the specific Hilscher
product to which they apply.

13 years agoAdd printers for the Hilscher Ethernet link-layer types.
Guy Harris [Thu, 15 Sep 2011 19:56:17 +0000 (12:56 -0700)] 
Add printers for the Hilscher Ethernet link-layer types.

13 years agoMerge pull request #1 from jhsmt/master
Michael Richardson [Tue, 13 Sep 2011 14:18:40 +0000 (07:18 -0700)] 
Merge pull request #1 from jhsmt/master

restore some test cases for forces

13 years agoHandle systems with getrpcbynumber() but no header file for it.
Guy Harris [Sat, 3 Sep 2011 04:31:09 +0000 (21:31 -0700)] 
Handle systems with getrpcbynumber() but no header file for it.

Glibc 2.14 doesn't install the ONC RPC headers, but it installs the ONC
RPC routines, presumably for binary compatibility.  Don't use
getrpcbynumber() unless we have it *and* the header file to declare it.

13 years agoMerge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Michael Richardson [Sat, 27 Aug 2011 20:56:50 +0000 (16:56 -0400)] 
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump

Conflicts:
Makefile.in

13 years agoFor Babel, recognise both UDP/6696 and UDP/6697.
Juliusz Chroboczek [Sat, 27 Aug 2011 14:36:10 +0000 (16:36 +0200)] 
For Babel, recognise both UDP/6696 and UDP/6697.

IANA has reallocated the Babel port; it is now 6696.  This patch makes
tcpdump recognise both the old and the new Babel ports.

13 years agoremove deleted files from list of distributed files
Michael Richardson [Sat, 27 Aug 2011 20:55:17 +0000 (16:55 -0400)] 
remove deleted files from list of distributed files

13 years agoremoved unnecessary file
Michael Richardson [Sat, 27 Aug 2011 20:54:26 +0000 (16:54 -0400)] 
removed unnecessary file

13 years agoGet rid of another zero-length array.
Guy Harris [Mon, 15 Aug 2011 00:28:02 +0000 (17:28 -0700)] 
Get rid of another zero-length array.

13 years agoDon't compile print-babel.c if we don't have IPv6 support.
Guy Harris [Sun, 14 Aug 2011 23:26:32 +0000 (16:26 -0700)] 
Don't compile print-babel.c if we don't have IPv6 support.

13 years agoGet rid of GCCisms.
Guy Harris [Sun, 14 Aug 2011 22:42:31 +0000 (15:42 -0700)] 
Get rid of GCCisms.

Not all C compilers support anonymous unions in structures, zero-length
array members of structures, or __attribute__.

13 years agoDon't assume we have IPv6 support.
Guy Harris [Sun, 14 Aug 2011 22:32:06 +0000 (15:32 -0700)] 
Don't assume we have IPv6 support.

13 years agoDeclare all local variables before any executable statements.
Guy Harris [Sun, 14 Aug 2011 22:29:49 +0000 (15:29 -0700)] 
Declare all local variables before any executable statements.

Some C compilers let you get away with that C++-ism; not all do.

13 years agoMake sure ppi.h is in the release tarball.
Romain Francoise [Sun, 14 Aug 2011 21:43:23 +0000 (14:43 -0700)] 
Make sure ppi.h is in the release tarball.

Reviewed-By: Guy Harris <[email protected]>
13 years agoRestore forces3 pcap and associated output
Jamal Hadi Salim [Tue, 26 Jul 2011 17:28:06 +0000 (13:28 -0400)] 
Restore forces3 pcap and associated output

Signed-off-by: Jamal Hadi Salim <[email protected]>
13 years agoRestore forces2 pcap and associated output
Jamal Hadi Salim [Tue, 26 Jul 2011 17:26:31 +0000 (13:26 -0400)] 
Restore forces2 pcap and associated output

Signed-off-by: Jamal Hadi Salim <[email protected]>
13 years agoUpdate the EXTRA_DIST list to reflect what's now in the tests directory.
Guy Harris [Tue, 26 Jul 2011 17:24:31 +0000 (10:24 -0700)] 
Update the EXTRA_DIST list to reflect what's now in the tests directory.

13 years agoChanges for 4.2 of tcpdump
Michael Richardson [Mon, 25 Jul 2011 00:15:39 +0000 (20:15 -0400)] 
Changes for 4.2 of tcpdump

13 years agoFwd: pcap files
Jamal Hadi Salim [Tue, 28 Jun 2011 20:23:35 +0000 (16:23 -0400)] 
Fwd: pcap files

On Tue, Jun 28, 2011 at 3:52 PM, Michael Richardson <[email protected]> wrote:

> I'm not aware of a new file.

The email i responded to had 4 attachments sent by Evangelos.
Those were supposed to replace the files with those exact names.

> Please send github tree, ideally.

You mentioned github to me last time and offered to get me to
learn it in 5 minutes;->  I havent had time and the old school stuff i do
still works.
How about i send you patch #1 to delete the old files (as attached)
and another to re-add with new ones.
Alternatively: I could send one that overrides the existing ones.

cheers,
jamal
> --
> ]       He who is tired of Weird Al is tired of life!           |  firewalls  [
> ]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
> ] [email protected] http://www.sandelman.ottawa.on.ca/ |device driver[
>   Kyoto Plus: watch the video <http://www.youtube.com/watch?v=kzx1ycLXQSE>
>                       then sign the petition.
>

commit d93443f24bfb5fd982ff33deb66979bae811db57
Author: Jamal Hadi Salim <[email protected]>
Date:   Tue Jun 28 16:15:49 2011 -0400

    [PATCH] Remove test files using old ForCES ports

Signed-off-by: Jamal Hadi Salim <[email protected]>
13 years agoignore more cruft
Michael Richardson [Sun, 3 Jul 2011 20:14:31 +0000 (16:14 -0400)] 
ignore more cruft

13 years agoremoved unneeded pcap file
Michael Richardson [Sun, 3 Jul 2011 20:14:19 +0000 (16:14 -0400)] 
removed unneeded pcap file

13 years agoNote that ndo_error doesn't, and *ndo_error shouldn't, return.
Guy Harris [Sat, 25 Jun 2011 01:24:11 +0000 (18:24 -0700)] 
Note that ndo_error doesn't, and *ndo_error shouldn't, return.

Tcpdump's ndo_error() doesn't return.  Any other ndo_error routine
supplied to netdissect shouldn't, either, as printers expect it not to.

13 years agoUse "-H", not "-h", for the 802.11s option, and improve error reporting.
Guy Harris [Wed, 22 Jun 2011 01:15:50 +0000 (18:15 -0700)] 
Use "-H", not "-h", for the 802.11s option, and improve error reporting.

I was rudely surprised to find that "tcpdump -h" wasn't printing a usage
message, and I'm the person who *added* the "-h" option.  Make it "-H",
and add an explicit "-h" option to print a usage message, so nobody else
makes the same mistake.  Also, don't clear opterr, so that if you give
an illegal command-line option, you get an explanatory error message.

13 years agofrom Weesan Lee <[email protected]>: display pim bidir support
Hannes Gredler [Tue, 21 Jun 2011 14:17:34 +0000 (16:17 +0200)] 
from Weesan Lee <[email protected]>: display pim bidir support

13 years agoHandle ICMP6 checksums more like TCP checksums.
Guy Harris [Fri, 17 Jun 2011 08:17:47 +0000 (01:17 -0700)] 
Handle ICMP6 checksums more like TCP checksums.

Instead of printing the result of icmp6_cksum() if it's non-zero, print
the checksum field value and the value it should have had.  That means
that what we print is the same regardless of whether we're running on a
big-endian or little-endian machine.

13 years agoFix some warnings.
Guy Harris [Fri, 17 Jun 2011 08:11:17 +0000 (01:11 -0700)] 
Fix some warnings.

13 years agoAdd a routine to do the "checksum with pseudo-header" stuff for IPv4.
Guy Harris [Fri, 17 Jun 2011 08:09:16 +0000 (01:09 -0700)] 
Add a routine to do the "checksum with pseudo-header" stuff for IPv4.

Clean up some other stuff while we're at it.

13 years agoUse nextproto6_cksum() for XXX-over-IPv6 checksums.
Guy Harris [Fri, 17 Jun 2011 07:51:47 +0000 (00:51 -0700)] 
Use nextproto6_cksum() for XXX-over-IPv6 checksums.

Get rid of duplicated checksums with IPv6 pseudo-headers.

13 years agoHandle UDP checksums more like TCP checksums.
Guy Harris [Fri, 17 Jun 2011 05:10:36 +0000 (22:10 -0700)] 
Handle UDP checksums more like TCP checksums.

Instead of printing the result of udp_cksum() if it's non-zero, print
the checksum field value and the value it should have had.  That means
that what we print is the same regardless of whether we're running on a
big-endian or little-endian machine.

Also, just as we did with TCP:

Check -v and -K, and the fragmented flag, up front; then check the IP
version etc..  Don't check for IPv6 if we already know it's IPv4.  Fetch
the checksum field only once.

Update some test files for the new output format.

13 years agoGet rid of $Id$ - you can't get that with Git.
Guy Harris [Fri, 17 Jun 2011 04:52:31 +0000 (21:52 -0700)] 
Get rid of $Id$ - you can't get that with Git.

13 years agoClean up the checksum checking.
Guy Harris [Fri, 17 Jun 2011 04:50:26 +0000 (21:50 -0700)] 
Clean up the checksum checking.

Check -v and -K, and the fragmented flag, up front; then check the IP
version etc..  Don't check for IPv6 if we already know it's IPv4.  Fetch
the checksum field only once.

13 years agoadd support for the RPKI/Router Protocol as per draft-ietf-sidr-rpki-rtr-12
Hannes Gredler [Thu, 16 Jun 2011 15:17:20 +0000 (17:17 +0200)] 
add support for the RPKI/Router Protocol as per draft-ietf-sidr-rpki-rtr-12

13 years agoGo with Wireshark's Internet checksum routine.
Guy Harris [Mon, 13 Jun 2011 21:08:51 +0000 (14:08 -0700)] 
Go with Wireshark's Internet checksum routine.

The Wireshark routine is based on the BSD in-kernel portable checksum
routine (thus BSD-licensed); it takes a vector of pointers and lengths
and checksums the concatenation of the buffers in question (just as the
BSD in-kernel routine checksums a chain of mbufs).

This simplifies the "with a pseudo-header" checksums; hopefully it'll
fix up the problems being seen on some big-endian platforms, which might
be due to hand-calculating some or all of the checksum and doing so
incorrectly.  It also gets rid of some code that might be dereferencing
unaligned pointers.

13 years agoUpdate sflow test output to reflect recent changes to print-sflow.c.
Guy Harris [Mon, 13 Jun 2011 01:39:11 +0000 (18:39 -0700)] 
Update sflow test output to reflect recent changes to print-sflow.c.

13 years agoFix some problems with the tests.
Guy Harris [Mon, 13 Jun 2011 01:08:55 +0000 (18:08 -0700)] 
Fix some problems with the tests.

Get rid of some no-longer-necessary uudecodes (Git can store binary
files such as pcap files, so we no longer need to uuencode them, and the
uuencoded files are no longer around), and handle the "-X" and "-XX"
flag tests (where we had to rename the "should be" output files to avoid
collisions on case-insensitive file systems such as the default local
file system on the desktop UN*X with the biggest market share).

13 years agoThe ifSpeed field of a generic interface counter in sFlow is 64 bits.
Rick Jones [Thu, 2 Jun 2011 17:56:08 +0000 (10:56 -0700)] 
The ifSpeed field of a generic interface counter in sFlow is 64 bits.

The "overlay" definition in print-sflow.c is correct, but the actual
extract for printing is using EXTRACT_32BITS rather than EXTRACT_64BITS,
which leads to an incorrect report for speed.

Reviewed-By: Guy Harris <[email protected]>
14 years agoDon't use "struct netdissect_options" in interface.h.
Guy Harris [Thu, 5 May 2011 09:25:42 +0000 (02:25 -0700)] 
Don't use "struct netdissect_options" in interface.h.

Use it in netdissect.h, where it's defined; otherwise, we get a bunch of
warnings when compiling modules that include interface.h but don't yet
include netdissect.h.

14 years agoFrom: Darren Reed <[email protected]>
Michael Richardson [Tue, 3 May 2011 22:58:32 +0000 (18:58 -0400)] 
From: Darren Reed <[email protected]>
To: [email protected]
Date: Sat, 09 Apr 2011 12:51:14 +1000
Subject: [tcpdump-workers] Printing PPI packets

Printing PPI packets with tcpdump does not turn out
to be that hard.

My simple tests have produced the output as below.

It would be worthwhile having some changes made into
the tcpdump code base that were similar to the attached
that print them out.

14 years agoremoved need for uudecode
Michael Richardson [Sat, 30 Apr 2011 22:51:51 +0000 (18:51 -0400)] 
removed need for uudecode

14 years agoadded babal test cases
Michael Richardson [Thu, 28 Apr 2011 22:51:09 +0000 (18:51 -0400)] 
added babal test cases

14 years agoMerge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Michael Richardson [Thu, 28 Apr 2011 22:27:59 +0000 (18:27 -0400)] 
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump

14 years agoupdated forces test cases
Michael Richardson [Thu, 28 Apr 2011 22:27:24 +0000 (18:27 -0400)] 
updated forces test cases

14 years agoFix endianness of some parameters.
Andrew Nording [Thu, 28 Apr 2011 19:38:55 +0000 (12:38 -0700)] 
Fix endianness of some parameters.

Reviewed-By: Guy Harris <[email protected]>
14 years agoAdd error checking and support for DCB Exchange protocol (DCBX) version 1.01.
Guy Harris [Thu, 28 Apr 2011 18:24:12 +0000 (11:24 -0700)] 
Add error checking and support for DCB Exchange protocol (DCBX) version 1.01.

From Kaladhar Musunuru <[email protected]>:

Added support for DCB Exchange protocol (DCBX) version 1.01.
http://www.ieee802.org/1/files/public/docs2008/az-wadekar-dcbx-capability-exchange-discovery-protocol-1108-v1.01.pdf

DCBX protocol exchanges control state machine and generic feature state
machine parameters as Organizationally specific TLVs.  The OUI used for
the DCBX TLV 1.01 is 0x001B21.  Following TLVs are decoded:

- Control state
- Priority Groups (PG)
- Priority-based Flow Control (PFC)
- Application Protocol (APP)

From me:

Add a bunch of additional error checking, and sort the main switch
statement by TLV code (and thus by the order in the specification).
Also update/add indications of what standards document what items.

14 years agoBabel dissector, from Juliusz Chroboczek and Grégoire Henry.
Juliusz Chroboczek [Wed, 27 Apr 2011 23:14:43 +0000 (16:14 -0700)] 
Babel dissector, from Juliusz Chroboczek and Grégoire Henry.

Reviewed-By: Guy Harris <[email protected]>
14 years agoTry to handle radiotap Rate values > 127 better.
Guy Harris [Wed, 27 Apr 2011 22:15:09 +0000 (15:15 -0700)] 
Try to handle radiotap Rate values > 127 better.

Use the same heuristic Wireshark uses, i.e. assume that FreeBSD only
reports MCS indices between 0 and 15, and that any other values with the
0x80 bit set are rate values.  (Yes, those do exist.)

Also note, as I did in Wireshark, that it might be possible to extract
from the XChannel and Flags field the additional information to convert
an MCS index from the Rate field into a rate.  (Whether that's possible
depends on what platforms using the FreeBSD convention do with the
channel width and guard interval information.)

14 years agoMerge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Michael Richardson [Wed, 27 Apr 2011 21:47:50 +0000 (17:47 -0400)] 
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump

14 years agoAdd printer for the Babel routing protocol (RFC 6126).
Juliusz Chroboczek [Sun, 24 Apr 2011 00:53:08 +0000 (02:53 +0200)] 
Add printer for the Babel routing protocol (RFC 6126).

This version includes a couple of fixes from Wireshark.

14 years agoadded sflow test cases
Michael Richardson [Wed, 27 Apr 2011 19:21:21 +0000 (15:21 -0400)] 
added sflow test cases

14 years agoSupport RX flags, MCS and the vendor namespace, and fix Rate.
Guy Harris [Wed, 27 Apr 2011 19:08:27 +0000 (12:08 -0700)] 
Support RX flags, MCS and the vendor namespace, and fix Rate.

Based on patches from an anonymous donor, support the radiotap RX flags and
MCS fields, and the vendor namespace, and, if Channel and XChannel are
both present, use XChannel, not Channel.

Do not try to look up a rate for an MCS value from the Rate field; you
cannot map an MCS value to a rate without also knowing the channel width
and guard interval length.

14 years agoHandle the enterprise field of the sflow flow and counter record format.
Rick Jones [Fri, 15 Apr 2011 17:01:02 +0000 (10:01 -0700)] 
Handle the enterprise field of the sflow flow and counter record format.

Thanks to some traces sent my way by Gavin McCullagh, and a comparison
against the output of inMon's sflowtool, I can confidently say "Yes
Virginia, there is an enterprise other than zero."  Which means lest we
start trying to decode something as what it is not, we best actually
look at the enterprise field and make sure it is one we recognize.

14 years agoTo enable printing of non-expanded samples I've shuffled a bunch of code
Rick Jones [Thu, 14 Apr 2011 18:32:08 +0000 (11:32 -0700)] 
To enable printing of non-expanded samples I've shuffled a bunch of code
around and created a bunch of smaller routines to more easily support
printing of both expanded and non-expanded counter and flow samples.
I've done simple testing of non-expanded counter and flow, and expanded
counter, but I don't have expanded flow at present with which to test.
So, that part of the change is only compile/eyeball tested.

Reviewed-and-tweaked-by: Guy Harris <[email protected]>
14 years agoFix the handling of unknown tagged parameters in management frames.
Guy Harris [Tue, 5 Apr 2011 16:53:57 +0000 (09:53 -0700)] 
Fix the handling of unknown tagged parameters in management frames.

Fetch the element length early in the process, rather than fetching it
each time we need it - even after we've advanced the pointer we are
using to fetch it (doing the latter means we fetch the wrong value when
we subtract it from the remaining length).

14 years agoProcess the flags even if parsing the full radiotap header fails.
Guy Harris [Tue, 5 Apr 2011 04:32:58 +0000 (21:32 -0700)] 
Process the flags even if parsing the full radiotap header fails.

If we were able to get the flags, we should process them, so we know
whether there's Atheros padding after the 802.11 header or if there's an
FCS at the end of the packet, and properly process them; if we weren't
able to get the flags, they're 0, so we're not doing anything
differently, and that's the best we can do.

14 years agoDon't return value from a filed cpack_uint8() call.
Guy Harris [Tue, 5 Apr 2011 04:30:22 +0000 (21:30 -0700)] 
Don't return value from a filed cpack_uint8() call.

If the cpack_uint8() call to fetch the flags for
IEEE80211_RADIOTAP_FLAGS fails, don't return u.u8, as we didn't fetch
anything into it.

14 years agoCheck the sample, flow, and counter lengths.
Guy Harris [Tue, 5 Apr 2011 02:03:56 +0000 (19:03 -0700)] 
Check the sample, flow, and counter lengths.

When dissecting a sample, or a flow or counter within the sample, make
sure we don't run past the length in the sample/flow/counter header.

This also means we count the sample length down as we process the
contents of the sample, so we only add what, if anything, remains of the
sample to the pointer into the packet, and subtract that from the
remaining data length in the packet, which means we properly handle
packets with multiple samples.

14 years agoInclude <tcpdump-stdinc.h> when checking for headers.
Guy Harris [Mon, 4 Apr 2011 19:07:11 +0000 (12:07 -0700)] 
Include <tcpdump-stdinc.h> when checking for headers.

Now that we're setting V_INCLS correctly, we don't need to include
"tcpdump-stdinc.h" - including <tcpdump-stdinc.h> works.

This also picks up configure changes from the previous configure.in
change.

14 years agoProperly define {u_}intN_t types when testing pcap/*.h headers.
Guy Harris [Mon, 4 Apr 2011 19:02:02 +0000 (12:02 -0700)] 
Properly define {u_}intN_t types when testing pcap/*.h headers.

pcap/bluetooth.h and pcap/usb.h require those types, so we check for
those types before checking those headers, and we include
"tcpdump-stdinc.h" in the tests, so the appropriate headers to define
those types get pulled in.

14 years agoExpand srcdir in V_INCLS at configure time, not make time.
Guy Harris [Mon, 4 Apr 2011 18:49:41 +0000 (11:49 -0700)] 
Expand srcdir in V_INCLS at configure time, not make time.

That way, if we temporarily set CPPFLAGS to include V_INCLS, it'll work
correctly.

14 years agoFix one place where we didn't save and restore CPPFLAGS when modifying it.
Guy Harris [Mon, 4 Apr 2011 18:34:14 +0000 (11:34 -0700)] 
Fix one place where we didn't save and restore CPPFLAGS when modifying it.

14 years agoHave empty.uu explicitly be a uuencoding of /dev/null.
Guy Harris [Mon, 4 Apr 2011 08:18:04 +0000 (01:18 -0700)] 
Have empty.uu explicitly be a uuencoding of /dev/null.

That way, uudecode will write the decoded output there, rather than to a
file named "empty" that gets left around.  That also means we don't need
to redirect the output of uudecode to /dev/null, so don't do that.

14 years agoCheck for uudecode at make time by uudecoding a uuencoded empty file.
Guy Harris [Mon, 4 Apr 2011 07:44:41 +0000 (00:44 -0700)] 
Check for uudecode at make time by uudecoding a uuencoded empty file.

Doing it at make time means you don't have to re-run the configure
script if you add uudecode to your system, and doing it by uudecoding a
uuencoded empty file means we don't depend on uudecode supporting
"--help".

14 years agoDon't assume uudecode supports a --help option; not all uudecodes do.
Guy Harris [Sun, 3 Apr 2011 22:43:21 +0000 (15:43 -0700)] 
Don't assume uudecode supports a --help option; not all uudecodes do.

Instead, check for uudecode in the configure script, and set the
CHECK_UUDECODE configuration variable to "true" if we find it and to a
command that prints an error message and exits with 1 if we don't find
it, and substitute that variable into the Makefile as the first command
for "make check".

14 years agoRESEND: [PATCH 1/1] ForCES fix SCTP TML port
jamal [Wed, 16 Mar 2011 13:10:17 +0000 (09:10 -0400)] 
RESEND: [PATCH 1/1] ForCES fix SCTP TML port

The old ports for SCTP TML ports were replaced at RFC editor
publication time. Caught by folks preparing for an Interop
tommorow.
While we could add a backward compat support it seems meaningless
if those ports will never ever be used in production.
I will send new test/pcaps at a later point and remove the existing
ones once this patch goes in.

cheers,
jamal

commit 40ecad0e866e7567716e6e57158c5274c0786a21
Author: Jamal Hadi Salim <[email protected]>
Date:   Thu Feb 3 22:00:23 2011 -0500

    Conform to new IANA assignment of ForCES SCTP TML

Signed-off-by: Jamal Hadi Salim <[email protected]>
14 years agoUpdated VERSION
Michael Richardson [Mon, 28 Mar 2011 20:56:33 +0000 (22:56 +0200)] 
Updated VERSION

14 years agoMerge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Guy Harris [Tue, 8 Mar 2011 17:11:51 +0000 (09:11 -0800)] 
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump

14 years agoFix plurals in packet count messages.
Guy Harris [Tue, 8 Mar 2011 17:11:25 +0000 (09:11 -0800)] 
Fix plurals in packet count messages.

Based on a patch from [email protected], 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.

14 years agoFrom Minto Jeyananth <[email protected]>: add support for IS-IS Generic Cryptographic...
Hannes Gredler [Wed, 2 Mar 2011 15:57:03 +0000 (16:57 +0100)] 
From Minto Jeyananth <[email protected]>: add support for IS-IS Generic Cryptographic Authentication as per RFC 5310

14 years agoFrom Minto Jeyananth <[email protected]>: fix the IS-IS MT flag tokentable
Hannes Gredler [Wed, 2 Mar 2011 15:49:28 +0000 (16:49 +0100)] 
From Minto Jeyananth <[email protected]>: fix the IS-IS MT flag tokentable

14 years agoFix a comment, and note a potential issue.
Guy Harris [Wed, 2 Mar 2011 00:41:39 +0000 (16:41 -0800)] 
Fix a comment, and note a potential issue.

14 years agoDon't clear stuff we'll be overwriting in its entirety.
Guy Harris [Wed, 2 Mar 2011 00:38:24 +0000 (16:38 -0800)] 
Don't clear stuff we'll be overwriting in its entirety.

We only need to clear out the tha structure if we support IPv6, so that
the addresses are IPv6 addresses, but we only have IPv4 addresses, so
that the rest of the address bytes need to be set somehow.

Also, explain what we're doing, so people don't ask why we're not
zeroing it if we don't support IPv6.

14 years agolibpcap doesn't have that comment; remove it here.
Guy Harris [Tue, 1 Feb 2011 23:39:57 +0000 (15:39 -0800)] 
libpcap doesn't have that comment; remove it here.

14 years agoSquelch warnings about datarootdir.
Guy Harris [Tue, 1 Feb 2011 23:38:09 +0000 (15:38 -0800)] 
Squelch warnings about datarootdir.

14 years agoAnd another quoting of AC_LANG_SOURCE.
Guy Harris [Tue, 1 Feb 2011 23:04:00 +0000 (15:04 -0800)] 
And another quoting of AC_LANG_SOURCE.

14 years agoPut the call to AC_LANG_SOURCE in AC_C___ATTRIBUTE__ in quotes.
Guy Harris [Tue, 1 Feb 2011 22:59:53 +0000 (14:59 -0800)] 
Put the call to AC_LANG_SOURCE in AC_C___ATTRIBUTE__ in quotes.

That's what they do in the autoconf manual; perhaps it'll squelch some
warnings I'm seeing on NetBSD 5.1 with autoconf 2.68.

14 years agoIgnore os-proto.h - it might be a symlink to os/os-XXX.h for some XXX.
Guy Harris [Tue, 1 Feb 2011 20:44:11 +0000 (12:44 -0800)] 
Ignore os-proto.h - it might be a symlink to os/os-XXX.h for some XXX.

14 years agoGet rid of unnecessary configure script tests and missing/XXX.h headers.
Guy Harris [Tue, 1 Feb 2011 10:08:41 +0000 (02:08 -0800)] 
Get rid of unnecessary configure script tests and missing/XXX.h headers.

This also fixes configure-script problems on OSes that have IPv6 support
but don't have <netinet6/in6.h> - no standard I could find requires that
header for IPv6 support (the Single UNIX Specification speaks of
<netinet/in.h> for both IPv4 and IPv6, and RFCs 2292 and 3542 don't
mention <netinet6/in6.h>, just <netinet/in.h> and <netinet6/ip6.h>).

14 years agoFix e-mail address for tcpdump-workers.
Guy Harris [Thu, 27 Jan 2011 19:09:28 +0000 (11:09 -0800)] 
Fix e-mail address for tcpdump-workers.

Thanks to Cameron Elliott for pointing out that the address hadn't been
updated.

14 years agoAdd test pcap+output for nested and recursive pathdata
Jamal Hadi Salim [Tue, 25 Jan 2011 13:16:18 +0000 (08:16 -0500)] 
Add test pcap+output for nested and recursive pathdata

Signed-off-by: Jamal Hadi Salim <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
14 years agoUse proper type (16bit) when extracting path id count
Jamal Hadi Salim [Tue, 25 Jan 2011 13:16:17 +0000 (08:16 -0500)] 
Use proper type (16bit) when extracting path id count

Signed-off-by: Jamal Hadi Salim <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
14 years agoFix mixing recursive and flat Path Data
Jamal Hadi Salim [Tue, 25 Jan 2011 13:16:15 +0000 (08:16 -0500)] 
Fix mixing recursive and flat Path Data

 +--PD
 .  +--PD
 .  |
 .  |
 .  +--PD
 .
 .
 +--PD
 |
 |
 +--PD

or
 +--PD
 .  +--PD
 .     +
 .     |
 .     +--PD
 .         +
 .         |
 .         +-- PD
 .         +
 .         |
 .         +-- PD
 +--PD
 |
 |
 +--PD

etc

Signed-off-by: Jamal Hadi Salim <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
14 years agoFix indent space when we have padded data
Jamal Hadi Salim [Tue, 25 Jan 2011 13:16:16 +0000 (08:16 -0500)] 
Fix indent space when we have padded data

See if you can spot the difference between

    Pathdata: Flags 0x0 ID count 1
      ID#01: 3
     FULLDATA TLV (Length 10 DataLen 6 pad 2 Bytes)
       [
       0x0000:  0002 0406 080a 0000
       ]

and:
    Pathdata: Flags 0x0 ID count 1
      ID#01: 3
      FULLDATA TLV (Length 10 DataLen 6 pad 2 Bytes)
       [
       0x0000:  0002 0406 080a 0000
       ]

Signed-off-by: Jamal Hadi Salim <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
14 years agoPoint people to the autoconf documentation on shell substitution.
Guy Harris [Sun, 23 Jan 2011 23:07:01 +0000 (15:07 -0800)] 
Point people to the autoconf documentation on shell substitution.

Hopefully this will keep people from sending "helpful" patches that
break things.

14 years agoHandle POSIX quoting rules.
Guy Harris [Sun, 23 Jan 2011 21:35:31 +0000 (13:35 -0800)] 
Handle POSIX quoting rules.

See section 11.6 "Shell Substitutions" in the autoconf documentation,
especially the

There is just no portable way to use double-quoted strings
inside double-quoted back-quoted expressions (pfew!).

part.

14 years agoip6_print() now takes a netdissect_options pointer as its first argument.
Guy Harris [Sun, 23 Jan 2011 09:24:22 +0000 (01:24 -0800)] 
ip6_print() now takes a netdissect_options pointer as its first argument.

14 years agomistype of RPL type codes: off by one. fixed
Michael Richardson [Fri, 31 Dec 2010 17:36:24 +0000 (12:36 -0500)] 
mistype of RPL type codes: off by one. fixed