Commit Graph

22 Commits

Author SHA1 Message Date
Guy Harris 5c394ee15f Squelch some compiler warnings (including warnings about the last member
of a structure being an empty array; that is *not* supported by all the
compilers that can be used to build Wireshark).

svn path=/trunk/; revision=32412
2010-04-07 00:34:20 +00:00
Bill Meier 09764dd969 Remove unneeded #include <stdio.h>
svn path=/trunk/; revision=32367
2010-04-03 21:55:23 +00:00
Jaap Keuter e347a5f155 From Colin O'Flynn:
This is a minor change between the version in SVN which is hc-05, 
and the latest which is hc-06.

svn path=/trunk/; revision=32163
2010-03-10 19:21:17 +00:00
Guy Harris 2341d987a7 Add a sanity check in dissect_6lowpan_hc1() for the datagram length.
Fail, and add an expert item, for invalid lengths.

Having done that, add some casts to squelch compiler warnings.

svn path=/trunk/; revision=32160
2010-03-10 10:23:19 +00:00
Jaap Keuter 4732c51d52 From Owen Kirby:
I've come across a bug in the 6LoWPAN header decompression code that
incorrectly computes the length of IPv6 extension headers by adding the
protocol and length fields twice.

svn path=/trunk/; revision=32157
2010-03-10 07:15:07 +00:00
Jaap Keuter 103d684a3f From Owen Kirby:
This patch fixes 6LoWPAN fragmentation to comply with RFC4944.
I also happened across a problem with the derivations of 
interface identifiers from 16-bit IEEE 802.15.4 addresses, which 
should also be fixed in my patch.

svn path=/trunk/; revision=32155
2010-03-09 23:22:03 +00:00
Anders Broman 50f7fa97dc from Colin O'Flynn:
6lowpan dissector: copy/paste error results in 64-bit source & 16-bit dest failing
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4545

svn path=/trunk/; revision=32065
2010-03-01 11:13:54 +00:00
Jaap Keuter 3126f22a14 From Owen Kirby:
This patch fixes a bug in the 6LoWPAN dissectors that corrupts addresses when
multicast address compression is used. Testing this fix also uncovered a bug in
the computation of the length of the extension headers. And some typos.

svn path=/trunk/; revision=31870
2010-02-12 22:10:53 +00:00
Jaap Keuter 3c702d064b From Owen Kirby:
This patch fixes a bug in the 6LoWPAN dissector where link-local addresses
created from an EUI-64 address do not correctly invert the universal/local bit
as recommended by section 4 of RFC2464.

svn path=/trunk/; revision=31843
2010-02-09 08:40:40 +00:00
Stig Bjørlykke 539b558f8c Renamed some reassembled data texts.
Removed some check_col().

svn path=/trunk/; revision=31809
2010-02-06 18:20:21 +00:00
Stig Bjørlykke 88b72356ad Introduce "Reassembled length" filter element for all protocols doing
reassembly.

svn path=/trunk/; revision=31767
2010-02-02 16:01:52 +00:00
Anders Broman 0a5a3c1158 From Didier Gautheron:
Fix a memory leak.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3917

svn path=/trunk/; revision=31511
2010-01-13 07:42:42 +00:00
Jaap Keuter e1afd4d4f7 From Beth Tridium:
When a 6lowpan message has a compressed UDP length (i.e. the length must be
calculated, not read from the headers), the 6lowpan dissector correctly reports
that the UDP length is compressed, but it may try to read the length from the
headers anyway.

svn path=/trunk/; revision=31075
2009-11-25 19:46:08 +00:00
Stig Bjørlykke 68939c0d8d Removed an unused assignment.
svn path=/trunk/; revision=30895
2009-11-09 14:36:35 +00:00
Jaap Keuter a1d82636c1 Add parentheses to satisfy the compiler.
svn path=/trunk/; revision=30842
2009-11-06 07:08:40 +00:00
Jaap Keuter e2246d08cd From Owen Kirby:
We've discovered a number of bugs in the 6LoWPAN dissector, 
and have fixed them in the following patch. The fixed bugs include:
  - Incorrect UDP Checksum calculation.
  - Incorrect link-local prefix when decompressing IPHC headers.
  - Incorrect parsing of the UDP port numbers when not 8-byte aligned.
  - Overflow of the datagram offset field when reassembling fragmented packets.

svn path=/trunk/; revision=30840
2009-11-05 22:39:00 +00:00
Bill Meier 6645d6e47d Fix code so it actually pads a length to an 8 byte boundary.
svn path=/trunk/; revision=30406
2009-10-08 16:13:53 +00:00
Bill Meier bb8fc20cd3 1. There doesn't seem to be a need for a separate .h file;
2. Move prototype declarations to after the struct declarations
   used by the prototypes.
3. Fix some typos.

svn path=/trunk/; revision=30310
2009-10-04 17:50:39 +00:00
Kovarththanan Rajaratnam c7b5a98682 We don't use preferences so if (!init) not required
svn path=/trunk/; revision=30278
2009-10-04 06:53:05 +00:00
Jeff Morriss 50cec93579 Fix a couple (false) uninitialized variable warnings.
svn path=/trunk/; revision=30271
2009-10-03 22:47:41 +00:00
Michael Tüxen 923fbf0b98 Make gcc happy.
svn path=/trunk/; revision=30269
2009-10-03 10:52:15 +00:00
Jaap Keuter 07a1f3875e From Owen Kirby:
The attached patch adds a dissector for IPv6 over IEEE 802.15.4 (aka 6LoWPAN).
The protocol is specified in RFC 4944. This dissector also processes the
6LoWPAN draft header compression scheme in draft-ietf-6lowpan-hc-05.

svn path=/trunk/; revision=30268
2009-10-03 10:06:19 +00:00