Commit Graph

13876 Commits

Author SHA1 Message Date
Anders Broman 85f62ed29e From Sylvain Munaut: Add support LAPSat : GMR-1 Datalink layer https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6918
svn path=/trunk/; revision=41404
2012-03-07 19:53:03 +00:00
Anders Broman 2a143bd29a IEEE1588 PTPv2 over IPv6 -> Padding issue. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6836
svn path=/trunk/; revision=41403
2012-03-07 18:17:07 +00:00
Bill Meier 21e470ebba Fix incorrect packet-details display of certain 1 bit FT_BOOLEAN fields.
(Use a valid 'parent field width' in the hf[] 'display' field.

svn path=/trunk/; revision=41401
2012-03-07 16:54:12 +00:00
Bill Meier 66bb2deb3f Fix incorrect packet-details display of certain 1 bit FT_BOOLEAN fields.
(Use a valid 'parent field width' in the hf[] 'display' field.

svn path=/trunk/; revision=41398
2012-03-07 16:02:48 +00:00
Bill Meier e630561c2c Add editor modelines; Fix some indentation.
svn path=/trunk/; revision=41397
2012-03-07 16:01:31 +00:00
Bill Meier 86f7bff724 Fix incorrect packet-details display of certain 1 bit FT_BOOLEAN fields.
(Use a valid 'parent field width' in the hf[] 'display' field.

svn path=/trunk/; revision=41396
2012-03-07 15:39:39 +00:00
Anders Broman 9ad4f76a7d ISO SSAP: ActivityStart: Invalid decoding the activity parameter as a BER Integer - decode as bytes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2873
svn path=/trunk/; revision=41395
2012-03-07 15:18:22 +00:00
Anders Broman 93d9658e93 From Yegor Yefremov: Add dissector for CANopen protocol https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6651 with some modifications
svn path=/trunk/; revision=41394
2012-03-07 14:28:29 +00:00
Anders Broman 95a7a04557 Location Number not decoded as per Q.763 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6781
svn path=/trunk/; revision=41393
2012-03-07 12:06:16 +00:00
Anders Broman 9581065b3f USB: unknown GET DESCRIPTOR response triggers assert failure https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6826
svn path=/trunk/; revision=41388
2012-03-07 09:35:44 +00:00
Bill Meier a768f90aa7 Whitespace cleanup.
svn path=/trunk/; revision=41386
2012-03-06 22:29:42 +00:00
Bill Meier 4f8e416fdc Fix benign issue: For FT_BOOLEAN fields with a zero bitmask, use BASE_NONE for 'display'
svn path=/trunk/; revision=41385
2012-03-06 22:12:42 +00:00
Bill Meier bd4c0f0691 Reformat long lines...
svn path=/trunk/; revision=41384
2012-03-06 22:00:59 +00:00
Bill Meier 57599011da Fix incorrect packet-details display of certain 1 bit FT_BOOLEAN fields.
Also: reformat a few lines.

svn path=/trunk/; revision=41383
2012-03-06 21:12:43 +00:00
Bill Meier be89c3824b Fix incorrect packet-details display of a 1 bit FT_BOOLEAN field.
svn path=/trunk/; revision=41378
2012-03-06 20:11:43 +00:00
Bill Meier 4712178e83 Use tvb_new_subset_remaining(...) rather than tvb_new_subset(...,-1,-1);
Fix up a number of the comments;
Use #if 0/#endif rather than /* */ to comment out code;
Do some minor reformatting.

svn path=/trunk/; revision=41377
2012-03-06 17:33:35 +00:00
Bill Meier b672c45b72 Use tvb_new_subset_remaining(...) rather than tvb_new_subset(...,-1,-1).
svn path=/trunk/; revision=41376
2012-03-06 17:24:21 +00:00
Bill Meier 1ffd9e60bc Use tvb_new-subset_remaining(...) rather than tvb_new_subset(...,-1,-1);
Add an additional note about duplicate filter names in the hf[] array;
Convert "4 space tabs" to 4 spaces.

svn path=/trunk/; revision=41375
2012-03-06 17:11:01 +00:00
Bill Meier 87cf82e056 Use tvb_new_subset_remaining() rather than tvb_new_subset();
#include <styring.h> not req'd (in a few cases);
Minor reformating & whitespace cleanup.

svn path=/trunk/; revision=41374
2012-03-06 16:58:09 +00:00
Martin Mathieson 9cfb5a1ea8 Call X2AP dissector.
svn path=/trunk/; revision=41373
2012-03-06 13:56:02 +00:00
Anders Broman 064276f53b From Steve Magnani: USB: incorrect decoding of Endpoint-targeted class-specific SETUP https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6910
svn path=/trunk/; revision=41371
2012-03-06 09:25:53 +00:00
Bill Meier d3cfffd72a Use tvb_new_subset_remaining() rather than tvb_new_subset();
Do minir whitespace cleanup.

svn path=/trunk/; revision=41366
2012-03-06 03:20:17 +00:00
Bill Meier 594b358011 Use tvb_new_subset_remaining() instead of tvb_new_subset();
Reformat some long lines.

svn path=/trunk/; revision=41365
2012-03-06 02:28:04 +00:00
Jeff Morriss 5ca357f245 Don't use FT_BOOLEAN with value_strings: the code to generate
representations of former is expecting true_false_strings--which are quite
different than the latter.

svn path=/trunk/; revision=41363
2012-03-06 02:19:23 +00:00
Jeff Morriss 406861ebf4 Don't use FT_*INT with true_false strings: the code to generate
representations of former is expecting value_strings--which are quite
different than the latter.

svn path=/trunk/; revision=41362
2012-03-06 02:04:10 +00:00
Jeff Morriss 033ad2a5ee Don't use FT_*INT with true_false strings: the code to generate
representations of former is expecting value_strings--which are quite
different than the latter.

svn path=/trunk/; revision=41361
2012-03-06 01:55:21 +00:00
Jeff Morriss 45c4657d97 Fix the infinite-loop fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6907 :
Don't try to display tone entries if there are none (but there is length for
them).  Could/should be an expert_info.

svn path=/trunk/; revision=41359
2012-03-05 21:59:52 +00:00
Bill Meier 69ef1478d4 Fix filter name: "iee17221.channels" --> "ieee17221.channels"
svn path=/trunk/; revision=41358
2012-03-05 20:50:25 +00:00
Bill Meier 25beeec73b Various changes:
- Use proper proto_tree_add_item() 'encoding' arg (instead of TRUE/FALSE);
- Call col_append_fstr() even when 'tree==NULL';
- Use value_string_ext to access the larger value_string tables;
- Handle tvb_reported_length() can return -1;
- Remove 'set but never used' variable and associated line of code;
- Remove unneeded #include <prefs.h>;
- Remove empty proto_reg_handoff();
- Do minor whitespace cleanup.

svn path=/trunk/; revision=41357
2012-03-05 18:57:18 +00:00
Alexis La Goutte 85ae30c42b Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41354
2012-03-05 09:50:42 +00:00
Alexis La Goutte 098af85595 From Ryan Doyle via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6874
New dissector: performance co-pilot protocol

Attached patch implements dissection of the Performance Co-Pilot (PCP) protocol.

From me :
* Add Wireshark Modelines
* Fix encoding args
* Fix Clang Warning

svn path=/trunk/; revision=41353
2012-03-05 09:49:37 +00:00
Bill Meier cc0e72d15e Trust but verify that there's no g_snprintf() buffer overflow.
svn path=/trunk/; revision=41346
2012-03-05 00:46:31 +00:00
Bill Meier 1155e25c89 Cleanup:
- packet-erf.h not used elsewhere; move to packet-erf.c;
- reformat long lines;
- minor code re-arrangement;
- whitespace cleanup.

svn path=/trunk/; revision=41345
2012-03-05 00:01:28 +00:00
Bill Meier bba57bcfae Fix bugs in buffer overflow checking used with calls to g_snprintf();
svn path=/trunk/; revision=41344
2012-03-04 23:34:58 +00:00
Anders Broman d75c3d384e From Martin Kaiser: DVB-CI authentication resource https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6905
svn path=/trunk/; revision=41338
2012-03-04 16:16:03 +00:00
Anders Broman b55cd3e8a9 "From Jan Šafránek: Add support for AES in Microsoft Network Logon Negotiation options https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6895"
svn path=/trunk/; revision=41337
2012-03-04 16:07:24 +00:00
Bill Meier 2e729fbb96 Change all hf[] FT_UINT? fields referencing 'avp_bool_vals' to be FT_BOOLEAN fields.
#include <stdio.h> not req'd;
Add editor modelines for "3 space" indentation.

svn path=/trunk/; revision=41331
2012-03-03 21:58:38 +00:00
Jeff Morriss 4289f6d7be Don't add an FT_BYTES with proto_tree_add_uint().
svn path=/trunk/; revision=41325
2012-03-02 22:24:12 +00:00
Jeff Morriss 9bd0312661 Fix a few bugs found by Clang analysis:
packet-ieee17221.c:3123:10: warning: Value stored to 'mr_offset' is never read
	- Put the offset increment inside the loop

packet-ieee17221.c:2888:10: warning: Value stored to 'mr_subtree' is never read
	 - Use the newly-created subtree (instead of the parent tree)

packet-ieee17221.c:2692:13: warning: Value stored to 'next_tvb' is never read
	- Use next_tvb (instead of the main tvb which doesn't start at the
	  correct offset)

svn path=/trunk/; revision=41324
2012-03-02 20:17:36 +00:00
Anders Broman ff47bdf96c Use the expert system to show packet comments.
The packet comment widget should be replaced by a ListView with two columns,  packet no and Comment.

svn path=/trunk/; revision=41322
2012-03-02 13:31:16 +00:00
Anders Broman 6b3c0cd4f8 Remove now unused variables.
svn path=/trunk/; revision=41319
2012-03-02 11:25:17 +00:00
Alexis La Goutte a270eef82c Fix typo and add Modelines information
svn path=/trunk/; revision=41318
2012-03-02 11:11:59 +00:00
Alexis La Goutte cc7151b1b9 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41317
2012-03-02 11:10:08 +00:00
Alexis La Goutte f1723b8c1d Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41316
2012-03-02 11:09:47 +00:00
Alexis La Goutte aa4a11af37 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41315
2012-03-02 11:09:34 +00:00
Alexis La Goutte 8179474093 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41314
2012-03-02 11:09:15 +00:00
Alexis La Goutte ba4c8fdbc3 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41313
2012-03-02 11:08:49 +00:00
Alexis La Goutte 92896f46b8 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41312
2012-03-02 11:07:50 +00:00
Alexis La Goutte 168c540f65 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41311
2012-03-02 11:07:36 +00:00
Alexis La Goutte c6fc195c47 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41310
2012-03-02 11:06:52 +00:00
Alexis La Goutte 2e79d142c7 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41309
2012-03-02 11:06:37 +00:00
Alexis La Goutte 056fa6a57a Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41308
2012-03-02 11:06:17 +00:00
Alexis La Goutte af2910972a Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41307
2012-03-02 11:05:50 +00:00
Alexis La Goutte eebaffcc5c Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41306
2012-03-02 11:05:23 +00:00
Alexis La Goutte 77afe2d93d Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41305
2012-03-02 11:05:08 +00:00
Alexis La Goutte 49d2d91818 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41304
2012-03-02 11:04:51 +00:00
Alexis La Goutte 08006ac943 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41303
2012-03-02 11:04:31 +00:00
Alexis La Goutte 3063f260ce Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41302
2012-03-02 11:04:09 +00:00
Alexis La Goutte 65edc0dc95 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41301
2012-03-02 11:03:46 +00:00
Alexis La Goutte 62de88285d Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41300
2012-03-02 11:02:46 +00:00
Alexis La Goutte 7857dc50fb Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41299
2012-03-02 11:02:02 +00:00
Alexis La Goutte 8e968adb2c Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41298
2012-03-02 11:00:24 +00:00
Alexis La Goutte 8cc44ff4f0 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41297
2012-03-02 10:58:29 +00:00
Alexis La Goutte c1ff84a632 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41296
2012-03-02 10:57:48 +00:00
Alexis La Goutte a66252358c From Francesco Fondelli
Fix indent (use 80 columns) in MPLS PM dissector

svn path=/trunk/; revision=41295
2012-03-02 10:56:31 +00:00
Bill Meier c58bbe0ad7 Fix proto_tree_add_item() 'encoding' args.
svn path=/trunk/; revision=41285
2012-03-02 05:10:02 +00:00
Jeff Morriss bb9b8880af From Michael Mann via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6893 :
The attached patches fix the following issues:

1. CIP-Motion shouldn't be a heuristic dissector.  CIP-Motion packets are
determined by specific fields in a CIP ForwardOpen.  I ran into situations
where CIP-Motion's "vague" heuristics incorrectly dissected packets meant for
CIP-Safety.  Of course this requires the ForwardOpen to be in the trace, but it
is the most deterministic way to have CIP-Motion packets.

2. Minor bugfix to the CIP-Safety dissector.  A couple of fields were
"missing", causing errant malformed packets.

svn path=/trunk/; revision=41283
2012-03-02 03:39:16 +00:00
Jeff Morriss 1ff7c5d916 From Tom Bottom and Chris Pane via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6887 :
A new dissector for IEEE 1722.1.

From me: some code cleanup, including:
 - Get rid of some unnecessary local variable initializations.
 - Put all of 1722.1 under one subtree.
 - Just put if(tree)s in the top-level function rather than scattered throughout.
 - Remove a couple "set but not used" warnings (a couple are #if'd out).
 - Don't use deprecated functions.

svn path=/trunk/; revision=41282
2012-03-02 03:30:30 +00:00
Bill Meier 7e85674577 Various Changes:
- Use proper 'encoding' arg (iso TRUE/FALSE) for proto_tree_add_item();
- Use correct value for tvb_new_subset() 'reported_length' arg;
- For proto_tree_add_protocol_format(): Use a length no greater than
    that actually available in the tvb. This allows dissection to attempt to
    proceed even if the length as obtained from the packet is too large.
- Remove 'set not not used' variable;
- Do minor reformatting and whitespace changes.

svn path=/trunk/; revision=41279
2012-03-01 21:04:04 +00:00
Anders Broman 94d95e3629 From Michael.
svn path=/trunk/; revision=41276
2012-03-01 17:19:57 +00:00
Anders Broman e473e6eb9f See if this solves:
> packet-noe.c: In function 'decode_utf8':
> packet-noe.c:805: warning: integer constant is too large for 'long' 
> type
> packet-noe.c:808: warning: integer constant is too large for 'long' 
> type
> packet-noe.c:814: warning: integer constant is too large for 'long' 
> type
> packet-noe.c:817: warning: integer constant is too large for 'long' 
> type
> packet-noe.c:818: warning: integer constant is too large for 'long' 
> type

svn path=/trunk/; revision=41271
2012-03-01 16:32:24 +00:00
Jeff Morriss b1fcbfa429 Add packet-uaudp.h to list of header files (and thus to the source distribution)
svn path=/trunk/; revision=41270
2012-03-01 16:09:12 +00:00
Michael Tüxen a7e2d55198 Fix CID 473 and 474.
svn path=/trunk/; revision=41267
2012-03-01 15:50:43 +00:00
Anders Broman d8d9450a4f From Lars Ruoff:
Dissector for Alcatel-Lucent Enterprise Universal Alcatel- and NOE protocol, take II.
families.
Meant as a replacement for existing UA-dissector in trunk because of better
feature set:
- latest protocol specifiaction
- more detailed dissection and filtering possibilities on subprotocols
- RTP stream setup
- NOE over SIP

Lars Ruoff
On behalf of Alcatel-Lucent Enterprise

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6844

svn path=/trunk/; revision=41266
2012-03-01 15:23:05 +00:00
Anders Broman a388fdb40d packet-mpls-pm.c(616) : error C2220: warning treated as error - no 'object' file generated
packet-mpls-pm.c(616) : warning C4098: 'dissect_mpls_pm_dlm' : 'void' function returning a value
packet-mpls-pm.c(623) : warning C4098: 'dissect_mpls_pm_ilm' : 'void' function returning a value

svn path=/trunk/; revision=41262
2012-03-01 14:25:03 +00:00
Alexis La Goutte 98639900ed Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41261
2012-03-01 13:41:02 +00:00
Alexis La Goutte b5efd24a00 From Francesco Fondelli via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6881
Support for MPLS Packet Loss and Delay Measurement, RFC 6374

Support for MPLS Packet Loss and Delay Measurement, RFC 6374.
Any packetformat is supported: DLM, ILM, DM, DLM+DM and ILM+DM.

From me :
* Prefer proto_tree_add_item when it is possible
* add Modelines information

svn path=/trunk/; revision=41260
2012-03-01 13:36:18 +00:00
Alexis La Goutte ddcb796878 From Don Westman via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6889
CIP Motion parsing of set axis attribute list request is messing up attr data

parsing a CIP Motion 'Set Axis Attribute List' Request returns correct data for attribute ID, dimension and element size but 'attribute data' field retrieves the same data for each attribute in the list rather than the real data sent in the request.

From me :
Fix the typo error (use the wrong offset variable, need to use local_offset variable)



svn path=/trunk/; revision=41257
2012-03-01 09:11:08 +00:00
Anders Broman 23ec82fae9 From Reinhard Speyerer: Adding support for LINKTYPE_PPP_ETHER/DLT_PPP_ETHER
svn path=/trunk/; revision=41256
2012-03-01 07:39:54 +00:00
Anders Broman b28516dc00 From Mike Morrin: A small patch to correct the name of the function proto_tree_add_split_bits_item_ret_val()
svn path=/trunk/; revision=41255
2012-03-01 07:01:15 +00:00
Jeff Morriss 7c55e4513a From Martin Kaiser via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6890 :
The attached patch for the DVB-CI dissector creates a circuit for each DVB-CI
session, using the session number as circuit id.

The DVB-CI session commands are:

- open_session_request(resource_id)
- session_opened(resource_id, newly assigned session number)
- payload transfer(session_number, payload data)
- close session(session_number)

For now, the circuit will store the resource id and make it available (as a
generated item) to subsequent packets that contain only the session number.
Doing this, the resource id (which is like a tcp/udp port) can be used for
filtering.

svn path=/trunk/; revision=41253
2012-03-01 02:50:16 +00:00
Anders Broman 872c2094c4 From Mike Morrin:
The attached patches add the uses
proto_tree_add_split_bits_ret_val()
proto_tree_add_split_bits_crumb()

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6885

svn path=/trunk/; revision=41249
2012-02-29 20:38:39 +00:00
Anders Broman 501216eb8a From Pascal Quantin:
[NAS EPS] Fix description of EPS Attach information element.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6886

svn path=/trunk/; revision=41245
2012-02-29 17:01:57 +00:00
Alexis La Goutte cb90bc1f6b Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41244
2012-02-29 16:55:08 +00:00
Martin Mathieson d5f0b50647 Show number of extensions in header root.
svn path=/trunk/; revision=41229
2012-02-28 19:01:24 +00:00
Anders Broman c503c241c0 Removed one variable to much.
svn path=/trunk/; revision=41222
2012-02-28 08:45:03 +00:00
Anders Broman 2cddd1f72e From Mijo Safradin:
Add ECP VDP TLV dissector.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6849

Fixed encoding arguments, removed unused variables checkapi errors
etc.

svn path=/trunk/; revision=41221
2012-02-28 08:04:24 +00:00
Anders Broman f7deada32b From Sean Bright:
IAX2 trunk packets display misleading call information.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6818

svn path=/trunk/; revision=41220
2012-02-28 07:32:19 +00:00
Anders Broman 9aa9246324 From Josip Medved: EAP-SIM and EAP-AKA are missing some attributes. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6877
svn path=/trunk/; revision=41217
2012-02-28 06:04:02 +00:00
Jeff Morriss 89cfdc3559 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3315 -
make Save-As/Displayed/All-Packets save not only the displayed packets but
also any other packets needed (e.g., for reassembly) to fully dissect the
displayed packets.

This works only for the "All packets" case; choosing only the Selected packet,
the Marked packets, or a range of packets would require actually storing which
packets depend on which (too much memory) or going through the packet list many
times (too slow).  Also, this behavior is always the case: you can't save the
displayed packets without their dependencies (I don't see why this would be
desirable).

So far this is done for SCTP and things using the reassembly routines (TCP has
been tested).

The Win32 dialog was modified but hasn't been tested yet.

One confusing aspect of the UI is that the Displayed count in the Save-As
dialog does not match the number of displayed packets.  (I tried renaming the
button "Displayed + Dependencies" but it looked too big.)  The tooltip tries
to explain this and the fact that this works only in the All-Packets case;
suggestions for improvement are welcome.


Implementation details:

Dissectors (or the reassembly code) can list frames which were needed to
build the current frame's tree.  If the current frame passes the display
filter then each listed frame is marked as "depended upon" (this takes up the
last free frame_data flag).

When performing a Save-As/Displayed/All-Packets then choose packets which
passed the dfilter _or_ are depended upon.

svn path=/trunk/; revision=41216
2012-02-28 03:19:49 +00:00
Guy Harris 577e286d82 And more details.
svn path=/trunk/; revision=41214
2012-02-27 21:34:59 +00:00
Guy Harris a53d24b480 Give more details in comments.
svn path=/trunk/; revision=41213
2012-02-27 21:33:53 +00:00
Alexis La Goutte 95cc98f92c Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41211
2012-02-27 16:50:27 +00:00
Alexis La Goutte 28f4c55b5b From Steve Magnani via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6873
USB: SETUP information can be added to incorrect tree

svn path=/trunk/; revision=41210
2012-02-27 16:48:29 +00:00
Alexis La Goutte d97f729ae3 From Alex Rodikov via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6871
TPNCP (proprietary Audiocodes) protocol dessector - wrong guint8 value presentation

The presentation of unsigned 8-bit integer is wrong. The (signed) gint8 is used which is displayed as unsigned integer (by proto_tree_add_uint) afterwards.
That causes wrong presentation of valus which bigger than 127.
Solution: New guint8 is introduced to present unsigned 8 bit integer value.

svn path=/trunk/; revision=41209
2012-02-27 16:43:18 +00:00
Anders Broman 210331411a More Warning fixes.
svn path=/trunk/; revision=41207
2012-02-27 12:48:08 +00:00
Anders Broman 8ad3109708 More warning fixes.
svn path=/trunk/; revision=41206
2012-02-27 12:13:06 +00:00
Anders Broman 6734e90b9c Try to fix warning: comparison between signed and unsigned.
svn path=/trunk/; revision=41205
2012-02-27 11:48:38 +00:00
Anders Broman cb46002a19 Fix some unused parameter warnings etc.
svn path=/trunk/; revision=41204
2012-02-27 11:44:19 +00:00
Anders Broman 4811ac8227 Error: Found deprecated APIs in packet-ssl-utils.c: dissector_add
svn path=/trunk/; revision=41203
2012-02-27 10:05:22 +00:00
Anders Broman d272635904 packet-applemidi.c:296:33: error: unused variable ‘p_conv_data’
svn path=/trunk/; revision=41202
2012-02-27 09:49:20 +00:00
Anders Broman 6b2b82d213 From Michael Mann:
a dissector for the ODVA protocol: CIP Safety. More information
about the protocol can be found here: 

http://www.odva.org/Home/ODVATECHNOLOGIES/CIP/CIPTechnologyOverview/CIPSafety/CIPSafetyOverview/tabid/131/lng/en-US/Default.aspx

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6862

svn path=/trunk/; revision=41201
2012-02-27 09:30:26 +00:00
Anders Broman 06cee2dfe3 From Tobias Erichsen:
RTP-MIDI - dissector for transmission of MIDI-commands via RTP (RFC 4695).

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5451

svn path=/trunk/; revision=41200
2012-02-27 09:18:53 +00:00
Michael Tüxen f71f3decb6 Dissect SSH over SCTP when using the IANA assigned SCTP port 22.
svn path=/trunk/; revision=41197
2012-02-26 17:54:32 +00:00
Jörg Mayer 1e61547b45 Harald Welte <laforge@gnumonks.org>
via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6792

This is a new dissector for the non-standard Ericsson OM2000 protocol, as it is
used for the OML on A-bis of Ericsson RBS 2xxx BTSs.

It also includes a dissector for a shim-layer protocol that Ericsson uses for
IP-based A-bis like the RBS 2409.  As the protocol is not publicly documented,
I have invented the name "EHDLC" (Ericsson HLDC) for it.


svn path=/trunk/; revision=41195
2012-02-26 17:30:38 +00:00
Anders Broman f97ad44031 Add entry for TPDU in the tree
svn path=/trunk/; revision=41194
2012-02-26 17:10:40 +00:00
Michael Tüxen e929fdfdee From Robin Seggelmann: Add support for RFC 6520.
From me: Some cleanup
Initial work was done by Denis Jaeger and
Lukas Scharlau, but the code got rewritten by Robin.

svn path=/trunk/; revision=41189
2012-02-26 13:50:52 +00:00
Guy Harris b6ff142f60 Add a presence flag field to the packet information structure filled in
by Wiretap, to indicate whether certain fields in that structure
actually have data in them.

Use the "time stamp present" flag to omit showing time stamp information
for packets (and "packets") that don't have time stamps; don't bother
working very hard to "fake" a time stamp for data files.

Use the "interface ID present" flag to omit the interface ID for packets
that don't have an interface ID.

We don't use the "captured length, separate from packet length, present"
flag to omit the captured length; that flag might be present but equal
to the packet length, and if you want to know if a packet was cut short
by a snapshot length, comparing the values would be the way to do that.

More work is needed to have wiretap/pcapng.c properly report the flags,
e.g. reporting no time stamp being present for a Simple Packet Block.

svn path=/trunk/; revision=41185
2012-02-25 23:24:34 +00:00
Bill Meier 605dea0486 CVARSDLL hasn't been used (is undefined) for a while....
svn path=/trunk/; revision=41180
2012-02-24 16:23:38 +00:00
Anders Broman 2b815454e7 From Martin Kaiser:
Get rid of an unused variable.

svn path=/trunk/; revision=41177
2012-02-24 14:40:31 +00:00
Alexis La Goutte c45a941597 From Martin Kaiser via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6838
Support HDCP version 1 over I2c

the attached patch adds support for HDCP version 1. This is the authentication that runs between your DVD/Bluray player and your TV when they're connected via an HDMI cable.

svn path=/trunk/; revision=41173
2012-02-24 08:18:30 +00:00
Alexis La Goutte fc88f5558a From Martin Kaiser via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6838
Support HDCP version 1 over I2c

the attached patch adds support for HDCP version 1. This is the authentication that runs between your DVD/Bluray player and your TV when they're connected via an HDMI cable.

svn path=/trunk/; revision=41172
2012-02-24 07:57:48 +00:00
Anders Broman 1b6a35348b From Robert Shade: Mobile IP NVSE (RFC3115) Decoding https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6868
svn path=/trunk/; revision=41171
2012-02-24 05:50:47 +00:00
Anders Broman a062fb34bd From Pascal Quantin [NAS EPS] Update Configuration Protocol description in PCO IE https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6865
svn path=/trunk/; revision=41166
2012-02-23 20:24:40 +00:00
Anders Broman 59ce037134 Fix a 3GPP specification error.
svn path=/trunk/; revision=41161
2012-02-23 13:10:59 +00:00
Anders Broman 416117f63a From Steve Magnani:
USB: Add dissection for Interface Association descriptor.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6842

svn path=/trunk/; revision=41157
2012-02-23 11:20:52 +00:00
Anders Broman 9d545467ef From Tyson Key:
Clean up redundant Data handlers in the CCID dissector.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6860

svn path=/trunk/; revision=41156
2012-02-23 11:14:57 +00:00
Martin Mathieson 51c31cd7bd Move 'static' qualifier before 'const' in a couple of places. I didn't
know it mattered, but gcc warns.

svn path=/trunk/; revision=41155
2012-02-23 11:03:30 +00:00
Martin Mathieson 774be29de0 Mark some unused parameters. Still getting other warnings...
svn path=/trunk/; revision=41154
2012-02-23 10:55:57 +00:00
Anders Broman 1a42f455a5 From Tyson Key:
Support for switching USB CCID PC_to_RDR_XfrBlock payload dissectors

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6853

svn path=/trunk/; revision=41151
2012-02-23 09:12:30 +00:00
Anders Broman f77e059a2e From Yaniv Kaul:
Enhance the Spice dissector - small additional dissections.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6857

svn path=/trunk/; revision=41150
2012-02-23 09:06:33 +00:00
Anders Broman dea5452b95 From Lei Chen:
a patch to support decode FDD_CELL_INFORMATION of "UTRAN FDD Description" in packet-gsm_rlcmac.c

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6856

svn path=/trunk/; revision=41149
2012-02-23 08:57:40 +00:00
Anders Broman 2a35f59066 From Jeff Morriss:
H223: Buildbot crash output: fuzz-2012-01-25-22599.pcap

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6768

svn path=/trunk/; revision=41148
2012-02-23 08:40:23 +00:00
Bill Meier 81d3b58f02 Whitespace cleanup: Convert 4 space tabs to spaces ...
svn path=/trunk/; revision=41139
2012-02-22 15:47:30 +00:00
Bill Meier 397d29e83b Rename some enumeration constants; Do some minor code simplification & reformatting.
svn path=/trunk/; revision=41138
2012-02-22 15:42:50 +00:00
Alexis La Goutte d9a4d939b3 Reverse Revision 41134 (Need to fix error/warning before...)
svn path=/trunk/; revision=41135
2012-02-22 09:18:30 +00:00
Anders Broman ad360ce0dd From Lars Ruoff:
Dissector for Alcatel-Lucent Enterprise Universal Alcatel- and NOE protocol
families.
Meant as a replacement for existing UA-dissector in trunk because of better
feature set:
- latest protocol specifiaction
- more detailed dissection and filtering possibilities on subprotocols
- RTP stream setup
- NOE over SIP

Lars Ruoff
On behalf of Alcatel-Lucent Enterprise

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6844

svn path=/trunk/; revision=41134
2012-02-22 08:37:46 +00:00
Anders Broman 5bc3ad3cf7 From Lori Tribble:
BACnet: Allow vendor specified network layer messages.'

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6852

svn path=/trunk/; revision=41120
2012-02-21 16:43:20 +00:00
Anders Broman f104bae88a From David Wei and me, update to 3GPP TS 25.413 V10.4.0 (2011-12).
svn path=/trunk/; revision=41104
2012-02-21 09:25:41 +00:00
Bill Meier 63e3176881 Always test tvb_reported_length_remaining() return val for '> 0' instead of '!=0'
Also: Whitespace cleanup.

svn path=/trunk/; revision=41094
2012-02-21 02:02:11 +00:00
Bill Meier 1f807cc26a Indentation & whitespace cleanup....
svn path=/trunk/; revision=41093
2012-02-20 23:28:23 +00:00
Bill Meier cad303d777 (Trivial) Fix a typo in a comment; Do some whitespace changes.
svn path=/trunk/; revision=41092
2012-02-20 22:46:24 +00:00
Bill Meier 8902b31f51 Use tvb_reported_length_remaining() iso tvb_length_remaining().
svn path=/trunk/; revision=41090
2012-02-20 22:22:48 +00:00
Bill Meier 277ffa5607 Fix 'variable set but then unused'; Do some whitespace cleanup.
svn path=/trunk/; revision=41089
2012-02-20 22:20:30 +00:00
Bill Meier 01154ebca4 proto_reg_handoff...() doesn't need 'if(!Initialized)';
Also: Do some whitespace cleanup.

svn path=/trunk/; revision=41088
2012-02-20 22:00:50 +00:00
Bill Meier dd3131a36c (Trivial) Whitespace changes
svn path=/trunk/; revision=41087
2012-02-20 21:39:19 +00:00
Anders Broman b3e893b1d1 From e.yimjia Add LPP decoding support in ULP protocol dissector \n https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6851
svn path=/trunk/; revision=41085
2012-02-20 20:32:53 +00:00
anonsvn 5cbb7a9d4e From David Wei more containers not to dissect if pref is set
svn path=/trunk/; revision=41084
2012-02-20 20:26:03 +00:00
Bill Meier 8fce627622 Thou shalt not stop dissecting after doing processing for COL_INFO ....
svn path=/trunk/; revision=41083
2012-02-20 20:23:56 +00:00
Alexis La Goutte c53a1546f5 From Paul Erkkila via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6835
Patch to add Hazelcast dissector

From me :
* Fix indent (use tab)
* Fix a Clang Warning (about unused offset)
* Reorder function
* Add Paul in Authors file
* Add CmakeFile modification

svn path=/trunk/; revision=41081
2012-02-20 17:28:28 +00:00
Stephen Fisher 637c99eee5 Replace the old very simple (line based) RSH dissector with a slightly
modified version of the EXEC since the protocols are nearly identical. 


svn path=/trunk/; revision=41056
2012-02-17 18:28:07 +00:00
Stephen Fisher c4fc49a2a2 Fix an old copy and paste mistake in a C comment.
svn path=/trunk/; revision=41054
2012-02-17 18:20:28 +00:00
Stephen Fisher 7a52947075 Move exec_isdigit_string() and exec_isprint_string() functions out of
the exec dissector and into wsutil/str_util.c.  Rename them to
isdigit_string() and isprint_string().  Also rename the variables they use
for consistency: string -> str and position -> pos.


svn path=/trunk/; revision=41053
2012-02-17 17:22:12 +00:00
Jeff Morriss ac738e9274 From Anders: fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6839 :
A patch to set for PayloadType = 1 for Connectionless-Information

svn path=/trunk/; revision=41050
2012-02-17 15:38:36 +00:00
Alexis La Goutte dbce54c4f3 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41049
2012-02-17 13:33:53 +00:00
Jeff Morriss cdc504ac3f time_t and nstime.nsecs are both signed so don't cast them to unsigned to display them.
svn path=/trunk/; revision=41046
2012-02-17 03:17:34 +00:00
Jeff Morriss d2ddfe8ca6 Fix part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6703 :
r35887 added ntp_to_nstime() to packet-ntp since a couple of dissectors had
their own versions.  The version used was from packet-netflow; switch to the
version from packet-zep because that one's math works better: the fractional
time is actually shown.

svn path=/trunk/; revision=41045
2012-02-17 03:02:32 +00:00
Jeff Morriss 1906e9b50d (Re)fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6712 :
The change made in r40742 turned out to not be portable (FreeBSD doesn't have
the timezone global variable), so use another method to determine the current
timezone.

Also fix a bug introduced by r40742's change to display this timestamp in UTC:
if the reported (by the message) time zone has a negative offset to UTC, shift
it forward (not backward) to get UTC (and the opposite for positive offsets).

svn path=/trunk/; revision=41044
2012-02-17 02:53:02 +00:00
Anders Broman 0a7df4d63c Use tce correct IE id
svn path=/trunk/; revision=41043
2012-02-16 20:23:16 +00:00
Stig Bjørlykke f984b230b2 Register the p772 dissector.
svn path=/trunk/; revision=41039
2012-02-16 09:18:33 +00:00
Jörg Mayer 1169f15d6e Let part of the patch speak for itself:
{ &hf_ieee80211_addr,
-      {"Source or Destination address", "wlan.addr", FT_ETHER, BASE_NONE, NULL, 0,
-       "Source or Destination Hardware Address", HFILL }},
+      {"Hardware address", "wlan.addr", FT_ETHER, BASE_NONE, NULL, 0,
+       "SA, DA, BSSID, RA or TA Hardware Address", HFILL }},
 

svn path=/trunk/; revision=41038
2012-02-16 08:31:19 +00:00
Anders Broman 245fb95f47 From Naoyoshi Ueda:
Patch to fix DTLS decryption.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6847

svn path=/trunk/; revision=41036
2012-02-16 05:21:09 +00:00
Anders Broman a2df0df2ae From Pascal Quantin:
[NAS EPS] PDN Connectivity Request message dissection fixes.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6845

svn path=/trunk/; revision=41033
2012-02-15 22:56:20 +00:00
Anders Broman f75ef6be38 From Andy Karch:
Enhance L2TP filters to include assigned IDs.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6841

svn path=/trunk/; revision=41031
2012-02-15 06:01:01 +00:00
Anders Broman 9fa3449bc8 From David Wei:
Fix handling of piggybacked messages.

svn path=/trunk/; revision=41029
2012-02-14 20:23:02 +00:00
Jeff Morriss 2ebec4aae6 As Guy suggested in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6765 :
Since his r41025 change to the HTTP dissector fixes the problem reported in
the subject bug, revert r41018 (whose check-in comment, BTW, should have
referenced this bug instead of 6817).

svn path=/trunk/; revision=41028
2012-02-14 20:06:48 +00:00
Jörg Mayer 49854a07a3 - dissect_vendor_ie_atheros:
Remove tag_len parameter - it was redundant.
  The length passed no longer contains the vendor id.
- add_tagged_field / TAG_VENDOR_SPECIFIC_IE:
  Reorder so that the ieee "standard" vendor ids come fist,
  after that the really vendor specific stuff.

svn path=/trunk/; revision=41027
2012-02-14 18:34:59 +00:00
Guy Harris 7e51e80fe0 To quote section "7.2.1 Type" of RFC 2068, "Hypertext Transfer Protocol
-- HTTP/1.1":

   Any HTTP/1.1 message containing an entity-body SHOULD include a
   Content-Type header field defining the media type of that body. If
   and only if the media type is not given by a Content-Type field, the
   recipient MAY attempt to guess the media type via inspection of its
   content and/or the name extension(s) of the URL used to identify the
   resource. If the media type remains unknown, the recipient SHOULD
   treat it as type "application/octet-stream".

To quote section "4. Encoding of Transport Layer" of RFC 2565, "Internet
Printing Protocol/1.0: Encoding and Transport":

   HTTP/1.1 [RFC2068] is the transport layer for this protocol.

	...

   Note: even though port 631 is the IPP default, port 80 remains the
   default for an HTTP URI.  Thus a URI for a printer using port 631
   MUST contain an explicit port, e.g. "http://forest:631/pinetree".  An
   HTTP URI for IPP with no explicit port implicitly reference port 80,
   which is consistent with the rules for HTTP/1.1. Each HTTP operation
   MUST use the POST method where the request-URI is the object target
   of the operation, and where the "Content-Type" of the message-body in
   each request and response MUST be "application/ipp". The message-body
   MUST contain the operation layer and MUST have the syntax described
   in section 3.2 "Syntax of Encoding". A client implementation MUST
   adhere to the rules for a client described for HTTP1.1 [RFC2068]. A
   printer (server) implementation MUST adhere the rules for an origin
   server described for HTTP1.1 [RFC2068].

So, when choosing a subdissector for HTTP request bodies, search based
on the media type first, and only if we *don't* find a dissector for the
media type, do other stuff such as heuristics or choosing a subdissector
based on the port number.

This fixes a number of problems; in particular, it fixes bug 6765
"non-IPP packets to or from port 631 are dissected as IPP" without
requiring the IPP dissector to attempt to determine whether an entity
body looks like IPP.  It also ensures that the default dissector for
HTTP entity bodies, the "media" dissector, will get the media type
passed to it in pinfo->match_string.

Don't use "!str*cmp()" while we're at it - it's valid C, but the "!" can
make it look as if it's checking for something not being the case when,
in fact, you're checking for equality rather than inequality.  (The
str*cmp() routines don't return Boolean results.)

svn path=/trunk/; revision=41025
2012-02-14 06:00:14 +00:00
Jeff Morriss 045c1d6a1e This dissector calls process_reassembled_data() so there's no need for it to
manually insert the fragment data to the tree (by calling show_fragment_tree());
doing both just means the fragments get added to the tree twice.

svn path=/trunk/; revision=41022
2012-02-14 02:57:48 +00:00
Jeff Morriss 0cb2500e45 There's no need to get the parent of an item we're passing into
proto_tree_move_item(): that function will expects the item, not its parent.

This avoids dissector bugs such as the one reported in
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6768 :

** (process:745): WARNING **: Dissector bug, protocol RTP, in packet 82:
proto.c:4273: failed assertion "fixed_item->parent == tree"

svn path=/trunk/; revision=41021
2012-02-14 02:43:58 +00:00
Anders Broman ce751db87c From Pascal Quantin:
fixes for dissection of Traffic Flow Template IE.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6840

svn path=/trunk/; revision=41020
2012-02-13 22:46:12 +00:00
Anders Broman 30b48c875c Handle piggybacked messages.
svn path=/trunk/; revision=41019
2012-02-13 22:22:29 +00:00
Jeff Morriss 1122e906e6 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6817 :
Make the IPP dissector a 'new-style' dissector that does not accept packets
which are clearly not IPP.

This is useful when a user points their web browser at a CUPS server--which
causes the CUPS server to spit out a nice looking web page from which you can
administer the server and/or printers but which up until this fix caused the
IPP dissector to mark the packet as malformed.

svn path=/trunk/; revision=41018
2012-02-13 20:56:40 +00:00
Jörg Mayer e884926644 Start itemizing.
svn path=/trunk/; revision=41011
2012-02-13 09:13:37 +00:00
Guy Harris 8a4786bd90 In a loop of the form
for (i = 1; i <= N; i++)
		...

the type of "i" must have, as its maximum value, a value >= the maximum
value of N; otherwise, if N is equal to the maximum value that fits in
"i", the loop willnever terminate.  (If that requires "i" to be larger
than you'd like, do the loop as

	for (i = 0; i < N; i++)
		...

which doesn't have that problem.)

Clean up the "i = 1" clause's white space in those for loops.

svn path=/trunk/; revision=41010
2012-02-13 05:35:20 +00:00
Guy Harris 1f971df298 Close parentheses in expert info.
svn path=/trunk/; revision=41002
2012-02-12 20:44:51 +00:00
Guy Harris f36fec7381 Don't trust the pointer value in a packet; it could be invalid, and this
could cause an unsigned length value to be reduced by more than its
value, turning it into a very large value.

I couldn't exactly reproduce bug 6833, but it was due to an attempt to
allocate 4294967110 bytes, and this bug caused remaining_len to equal
4294967110, and it would try to create a reassembled packet tvbuff of
that size, so I'm guessing this fixes 6833.

svn path=/trunk/; revision=41001
2012-02-12 20:03:37 +00:00
Alexis La Goutte 918a7f858b Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41000
2012-02-12 19:30:57 +00:00
Alexis La Goutte 3f9b521121 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40999
2012-02-12 19:26:53 +00:00
Alexis La Goutte 26eebbc768 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40998
2012-02-12 19:24:38 +00:00
Alexis La Goutte 9806283d4c Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40997
2012-02-12 18:06:37 +00:00
Alexis La Goutte 7ed5d356b4 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40996
2012-02-12 18:05:50 +00:00
Alexis La Goutte e86788796e Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40995
2012-02-12 18:05:22 +00:00
Alexis La Goutte dfb7f8dd19 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40994
2012-02-12 18:05:02 +00:00
Alexis La Goutte 958afd725d Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40993
2012-02-12 18:04:26 +00:00
Alexis La Goutte e24afc8f39 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40992
2012-02-12 18:03:17 +00:00
Alexis La Goutte 6718c41bd4 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40991
2012-02-12 18:02:58 +00:00
Alexis La Goutte da79574838 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40990
2012-02-12 18:02:39 +00:00
Alexis La Goutte da053ea8d3 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40989
2012-02-12 17:47:11 +00:00
Alexis La Goutte f296d389b2 Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40988
2012-02-12 17:46:57 +00:00
Alexis La Goutte a34db114cc Enhance BGP Notification message
* Make field filterable (3 proto_tree_add_text less ! but there are still 147 proto_tree_add_text...)
* Remove bgp_notify struct
* Use expert info to display a unknown error type

svn path=/trunk/; revision=40987
2012-02-12 17:41:57 +00:00
Anders Broman c36b0f1b03 From Steve Magnani:
USB: add infrastructure for dissecting class-specific descriptors.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6825

svn path=/trunk/; revision=40979
2012-02-12 07:18:05 +00:00
Guy Harris 55140956e8 Use the length-on-the-network, not the captured length, when deciding
how far to dissect.

svn path=/trunk/; revision=40978
2012-02-11 20:57:26 +00:00
Guy Harris 357ab3c5f7 Don't bail out of a non-heuristic dissector routine just because there's
not enough captured data in the tvbuff.

svn path=/trunk/; revision=40977
2012-02-11 20:37:54 +00:00
Guy Harris 9f116d50cb Get rid of checkapi warning about %hh.
svn path=/trunk/; revision=40976
2012-02-11 20:36:35 +00:00
Guy Harris cd706946e5 mpeg_pat.cur_next_ind looks like a Boolean; make it one. That also
fixes checkapi warnings about its value_string not being properly
terminated (by replacing it with a true_false_string).

svn path=/trunk/; revision=40975
2012-02-11 20:35:03 +00:00
Anders Broman 75de89cd1b From Steve Magnani:
USB: support filtering of isochronous packets via usb.bInterfaceClass.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6824

svn path=/trunk/; revision=40973
2012-02-11 16:59:38 +00:00
Anders Broman 4a0b7db0a2 From Guy Martin:
Dissector for DVB MultiProtocol Encapsulation (DVB-MPE)

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6822

svn path=/trunk/; revision=40972
2012-02-11 16:52:32 +00:00
Anders Broman 9c731b2015 From Guy Martin:
Dissector for MPEG Program Association Table (PAT)

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6821

svn path=/trunk/; revision=40971
2012-02-11 16:44:45 +00:00
Anders Broman 3724dbe6b4 From Guy Martin:
Dissector for MPEG section packets.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6820

svn path=/trunk/; revision=40970
2012-02-11 16:38:01 +00:00
Anders Broman 8aea738cda Add the abillity to read and write option comments unedited.
This is POC we may want to have more efficient use of the frame data
structure etc. But this allows for work to be done on the GUI to actually add comments.

svn path=/trunk/; revision=40969
2012-02-11 12:34:39 +00:00
Guy Harris 0e2773b633 Don't use 16-bit integers as counters. The code won't be any faster on
anything that can run Wireshark (it might be slower), and if the maximum
count value is 16-bit, you can loop forever if the maximum count value
happens to be 65535.

(Yes, this means that

	guint i, j;

		...

	for (i = 0; i < j; i++)
		...

risks looping forever if j is 2^32-1, and the same applies to 64-bit
counters.  There are probably fewer protocols with 32-bit counts, and
probably even fewer with 64-bit counts, but the way it should be done in
those cases, for safety, is

	i = 0;
	for (;;) {
		if (i >= j)
			break;

		...

		if (i == j - 1)
			break;
	}

or something such as that.)

Fixes bug 6809.

#BACKPORT
Will schedule for 1.6.x.

svn path=/trunk/; revision=40967
2012-02-11 07:12:34 +00:00
Guy Harris c972b866b5 Use C89-style comment rather than C++/C99-style comment.
svn path=/trunk/; revision=40965
2012-02-11 02:45:58 +00:00
Guy Harris 3301c4cb85 Get rid of C++/C99-style comment; use #if 0/#endif instead.
svn path=/trunk/; revision=40964
2012-02-11 02:45:16 +00:00
Guy Harris fd8beeae21 Global variables considered harmful. Pass pinfo along as a parameter;
this appears to fix bug 6823 (the actual crash was a null pinfo being
passed to call_dissector()).

svn path=/trunk/; revision=40962
2012-02-11 02:31:52 +00:00
Ronnie Sahlberg 232c882946 NETLOGON handle different schannel with the same source
ip and dest i

from Matthieu Patou <mat@matws.net>

svn path=/trunk/; revision=40961
2012-02-11 02:10:32 +00:00
Ronnie Sahlberg 4d2cb8bf94 NETLOGON: Fix bugs with netlogon decryption not working in some cases
If there is only one Authenticatex in the file, decryption is not
working.

from Matthieu Patou <mat@matws.net>

svn path=/trunk/; revision=40960
2012-02-11 02:09:20 +00:00
Ronnie Sahlberg 7a8e42888b NETLOGON: improve debugging messages
from Matthieu Patou <mat@matws.net>

svn path=/trunk/; revision=40959
2012-02-11 02:08:02 +00:00
Ronnie Sahlberg bec3996bb7 NTLM show the decrypted data buffer in a separate tab
from Matthieu Patou <mat@matws.net>

svn path=/trunk/; revision=40958
2012-02-11 02:06:45 +00:00
Ronnie Sahlberg d0f5a1842b NTLM print the whole string, not just half the string
from Matthieu Patou <mat@matws.net>

svn path=/trunk/; revision=40957
2012-02-11 02:05:57 +00:00