Commit Graph

16738 Commits

Author SHA1 Message Date
Guy Harris f3e5fa224c Put items into the protocol tree as we extract them, so that the header
fields that were captured show up even if the packet was cut short by a
snapshot length.  Advance the offset variable as we do so.

Be a little clearer in some comments.

svn path=/trunk/; revision=48537
2013-03-24 18:51:27 +00:00
Guy Harris 5947200d55 Don't cast away constness.
svn path=/trunk/; revision=48536
2013-03-24 18:28:40 +00:00
Guy Harris 7113707672 Replace implicit conversion with explicit cast.
svn path=/trunk/; revision=48532
2013-03-24 18:14:58 +00:00
Evan Huus cd502e4dcd From Tyson Key via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8514
Device->Host detection of ISO 7816 commands in PN532 packets.

From me: clean up indentation a bit in that section of the code.

svn path=/trunk/; revision=48530
2013-03-24 17:22:08 +00:00
Pascal Quantin 92dce1c3f0 Do not initialize ett_tree and dtap_msg_fcn when match_strval_idx does not find a match
svn path=/trunk/; revision=48520
2013-03-24 10:09:16 +00:00
Guy Harris fc5b86f6d4 Correctly label checksums not checked due to the packet in question
being incorporated inside an ICMP error packet.

svn path=/trunk/; revision=48518
2013-03-24 00:39:44 +00:00
Jaap Keuter f925e9a6a2 Extend dissection of TLVs.
svn path=/trunk/; revision=48512
2013-03-23 17:16:02 +00:00
Alexis La Goutte 4a9ad55295 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48511
2013-03-23 13:09:35 +00:00
Alexis La Goutte b96aaabca4 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48510
2013-03-23 13:09:27 +00:00
Alexis La Goutte 4f179e4bb2 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48509
2013-03-23 13:09:17 +00:00
Alexis La Goutte 1420f4276d Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48508
2013-03-23 13:09:09 +00:00
Alexis La Goutte 202b6e7435 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48507
2013-03-23 13:08:56 +00:00
Alexis La Goutte 4633fb157a Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48506
2013-03-23 13:08:48 +00:00
Alexis La Goutte 22620ca12e Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48505
2013-03-23 13:08:39 +00:00
Alexis La Goutte 41c65b4eed Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48504
2013-03-23 13:08:30 +00:00
Alexis La Goutte 03370667f5 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48503
2013-03-23 13:08:21 +00:00
Alexis La Goutte 4cb56bae95 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48502
2013-03-23 13:08:12 +00:00
Alexis La Goutte cc13aa780a Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48501
2013-03-23 13:08:03 +00:00
Alexis La Goutte 6c863f1b0a Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48500
2013-03-23 13:07:53 +00:00
Alexis La Goutte b9b8a72200 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48499
2013-03-23 13:07:45 +00:00
Alexis La Goutte 6d5591f9f4 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48498
2013-03-23 13:07:36 +00:00
Alexis La Goutte 3dc9623939 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48497
2013-03-23 13:07:27 +00:00
Evan Huus b8ae49755d From Prafulla Harpanhalli via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8513
Add support for encapsulation 136, Juniper service PIC cookie.

svn path=/trunk/; revision=48494
2013-03-23 02:42:12 +00:00
Guy Harris a2414d8909 Don't wire into the reassembly code the notion that reassemblies should
be done on flows from one address to another; reassembly for protocols
running atop TCP should be done on flows from one TCP endpoint to
another.

We do this by:

	adding "reassembly table" as a data structure;

	associating hash tables for both in-progress reassemblies and
	completed reassemblies with that data structure (currently, not
	all reassemblies use the latter; they might keep completed
	reassemblies in the first table);

	having functions to create and destroy keys in that table;

	offering standard routines for doing address-based and
	address-and-port-based flow processing, so that dissectors not
	needing their own specialized flow processing can just use them.

This fixes some mis-reassemblies of NIS YPSERV YPALL responses (where
the second YPALL response is processed as if it were a continuation of
a previous response between different endpoints, even though said
response is already reassembled), and also allows the DCE RPC-specific
stuff to be moved out of epan/reassembly.c into the DCE RPC dissector.

svn path=/trunk/; revision=48491
2013-03-22 23:59:54 +00:00
Guy Harris 3295912210 Try to handle lines with NULs in them. They aren't valid lines, but at
least one fuzzed capture contains them, and using ep_strndup() to copy
the line means that the actual amount of memory allocated for the copy
will be less than the length of the line, and code that parses the line
assuming that there are value_len+1 bytes in the buffer (including the
terminating NUL), such as the current parsing code, will break.

We should really have code in Wireshark to handle counted strings, and
have those be what we extract from packets.  (And we should handle
non-UTF-8/non-UTF-16 encodings, and octet sequences that aren't valid
strings for their encoding, and handle display of invalid strings and
non-printable characters, and....).

Use g_ascii_ versions of various isXXX() and to{upper,lower}(), so we
don't get surprised by the behavior of the user's locale.

svn path=/trunk/; revision=48490
2013-03-22 23:18:30 +00:00
Jeff Morriss 5c39978e35 And it happens again...
In Yet Another Protocol, implementation A neglected to set the padding bytes
to 0 and implementation B barfed on said padding (interestingly this
protocol's spec does not include the IETF-normal "receiver MUST ignore the
padding" blurb).

So:

Add the AVP to the dissection tree and add an expert info for when it's not
zero.

Also re-order a few of the hfs and remove a couple unneeded temporary
variables.

svn path=/trunk/; revision=48488
2013-03-22 18:13:31 +00:00
Evan Huus 90a70fdf6c From David Arnold via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8490
Dissector for NASDAQ's OUCH 4.x protocol.

From me:
- fix svn Id tag
- g_snprintf includes the null-terminator in its len count, so the buffer
  only has to be ITEM_LABEL_LENGTH, not (ITEM_LABEL_LENGTH + 1).

svn path=/trunk/; revision=48479
2013-03-22 17:27:17 +00:00
Anders Broman 2f450cf7c9 Add some of the global codes as asn2wrs handle them now.
svn path=/trunk/; revision=48478
2013-03-22 17:19:46 +00:00
Evan Huus cbba4d518e Fix typo s/jounral/journal/ as pointed out in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8504

svn path=/trunk/; revision=48477
2013-03-22 12:34:50 +00:00
Evan Huus 2bddba9374 From Tyson Key via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8514
Add support for ISO 7816 commands payloads (from host -> device, only) in PN532
InDataExchange request packets

svn path=/trunk/; revision=48474
2013-03-22 01:24:26 +00:00
Evan Huus 80cd2ec768 Remove some sanity checks that I was able to prove wrong and/or redundant by
manual flow analysis. Fixes part of
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8504

General note: this dissector does *weird* things with sanity checks and
manually throwing exceptions. It needs a general cleanup, but that
is outside the scope of the current bug (and my available time).

svn path=/trunk/; revision=48473
2013-03-22 00:43:12 +00:00
Evan Huus db122cefe4 Remove 55(!) thoroughly unnecessary tvb_bytes_exist calls from RTP-MIDI
dissector. Discovered while poking around in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8504

svn path=/trunk/; revision=48472
2013-03-22 00:27:29 +00:00
Evan Huus fc6fde93b4 From Soichi Sakane via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8070
Update CoAP dissector to the latest spec from the IETF, and make several more
fields filterable.

svn path=/trunk/; revision=48471
2013-03-22 00:12:44 +00:00
Sake Blok a4fe30275f Properly set the ISN's when the SYN and SYN/ACK are received out-of-order.
svn path=/trunk/; revision=48466
2013-03-21 22:25:42 +00:00
Pascal Quantin 8fa2e54773 Fix compilation for Linux
svn path=/trunk/; revision=48464
2013-03-21 21:12:26 +00:00
Pascal Quantin 7b3191e1b1 Upgrade LTE RRC dissector to v11.3.0
svn path=/trunk/; revision=48463
2013-03-21 20:51:19 +00:00
Bill Meier a316436f1a Use consistent indentation;
Also: replace a few "4 space tabs" by spaces.

svn path=/trunk/; revision=48462
2013-03-21 19:49:49 +00:00
Pascal Quantin 722b981c9f From Niels de Vos via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7310 :
glusterfs: improve endianness handling and displaying of dict contents

svn path=/trunk/; revision=48461
2013-03-21 19:49:21 +00:00
Anders Broman f8a93562e0 [-Wmissing-prototypes]
Use explicit casts.

svn path=/trunk/; revision=48457
2013-03-21 17:52:43 +00:00
Bill Meier 1b6ff3edc5 From Fabio Tarabelloni: Fix for: "ZigBee Cluster Library dissector does not handle arrays correctly"
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8214

From me:
 - Use spaces for indentation (instead of :4 space tabs");
 - Remove trailing whitespace;
 - Add placeholder for un-implemented dissection of data types set, struct, bag.
   (Probably should use 'expert' but that requires more work since dissection is under
    'if (tree)').

svn path=/trunk/; revision=48455
2013-03-21 17:11:55 +00:00
Evan Huus 95a9ea7149 From David Arnold via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8489
Dissector for NASDAQ's SoupBinTCP protocol (which is non-trivially different
from the old packet-nasdaq-soup dissector).

From me:
- fix CMake entry
- remove C++-style comments
- fix SVN Id tag

svn path=/trunk/; revision=48452
2013-03-21 15:43:48 +00:00
Bill Meier 1f083fd654 From beroset:
remove C++ incompatibilities
 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachments #10423,#10424

svn path=/trunk/; revision=48450
2013-03-21 14:29:58 +00:00
Pascal Quantin e704aaa14b Upgrade RRC dissector to v11.5.0
svn path=/trunk/; revision=48444
2013-03-20 21:15:19 +00:00
Pascal Quantin 52f342685d Upgrade LPP dissector to v11.2.0
svn path=/trunk/; revision=48443
2013-03-20 21:14:25 +00:00
Anders Broman 88731fc9ef Set up RTCP conversation too.
svn path=/trunk/; revision=48442
2013-03-20 20:02:22 +00:00
Bill Meier 371d2dc915 From beroset:
remove C++ incompatibilities
 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10401


svn path=/trunk/; revision=48441
2013-03-20 14:50:20 +00:00
Anders Broman 20c17246d4 svn path=/trunk/; revision=48440 2013-03-20 06:50:56 +00:00
Anders Broman f92bd64966 [-Wmissing-prototypes]
Use explicit casts.

svn path=/trunk/; revision=48439
2013-03-20 05:59:22 +00:00
Evan Huus a6d37fe9f3 From Dirk Jagdmann via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8475
Tidy up the display of Bind and BindAck slightly for DCE-RPC.

From me:
- fix indentation
- add modelines

svn path=/trunk/; revision=48431
2013-03-19 23:17:59 +00:00
Anders Broman ae747e4c4b From beroset:
remove C++ incompatibilities 
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416

svn path=/trunk/; revision=48430
2013-03-19 22:03:00 +00:00