In SMB2 dissector, make sure pinfo->private_data is pointing to an SMB struct
before calling an SMB helper function which expects it. Fixes the primary error
in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9120

svn path=/trunk/; revision=51865
we don't need brackets around SET_ADDRESS() any more

svn path=/trunk/; revision=51866
coverity 996921: add missing break

svn path=/trunk/; revision=51867
Use a bunch of #includes only when needed. (2nd try; hat tip to Guy).


svn path=/trunk/; revision=51868
Add Preference to change Language (in QtShark)

Need restart application to change language

svn path=/trunk/; revision=51869
From Dean Lee via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8597 Qtshark: Chinese Simp translation

From me :
Add to the (new) Qtshark Language selector

svn path=/trunk/; revision=51871
Removed return value from ByteArray append and prepend, as this did push
the same ByteArray twice (and thus calling the GC twice).
This should fix bug 4461.

Changed ByteArray concat to create a new array to be returned.

svn path=/trunk/; revision=51872
Register a wmem callback to free the glib hash tables used in SMB2 conversation
structs. Fixes the most egregious of the memory leaks (around 300KB) from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9120

svn path=/trunk/; revision=51873
Commit 51871 did not update CMakeLists.txt

svn path=/trunk/; revision=51877
The previous commit contained some WIP: Check which files
still generate warnings. Finish that.
Only qcustomplot.cpp does. Move the rest to clean.


svn path=/trunk/; revision=51878
Update README.qt after last change in QtShark translations (Add Preferences to select language)

svn path=/trunk/; revision=51879
Use the same variable name than GTK (cf_name)

svn path=/trunk/; revision=51880
add qtshark /path/mycap.pcapng support (from GTK code...)

svn path=/trunk/; revision=51881
if display_filter is NULL, qtshark crash...

svn path=/trunk/; revision=51882
From Thomas ERSFELD (GSoC13)

Add TCP/UDP/SSL Follow feature to QtShark

Known issue :
* Duplicate code with GTK (function need follow_info_t struct but in GTK there is some GWidget variable in struct)
* Sometimes TCP Follow fail...

svn path=/trunk/; revision=51883
Add my pre-commit git script (with checkAPI/hf/encoding args...) Need to copy in .git/hooks folder and will be launch all check when make local commit (if there is some false-positive add --no-verify to disable check)

Should be enhance to be better (check trailing/whitespace...)

svn path=/trunk/; revision=51884
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=51885
Fix the "crossed chopping region" problem.  Also, move chopping to its own function for both clarity and correctness since we need to compute chop offsets and lengths on a per-packet basis whereas previously this was not being done.

Lastly, try to improve the documentation a bit concerning chopping and provide another example depicting 2 separate chopping regions.  *Maybe* this is clearer?

One more example here for posterity:  Given the following 75 byte packet, there
are 8 different ways to chop the 2 regions marked as 10 and 20 in a single pass:

    <--------------------------- 75 ---------------------------->
 
    +---+-------+-----------+---------------+-------------------+
    | 5 |   10  |     15    |       20      |         25        |
    +---+-------+-----------+---------------+-------------------+

1) editcap -C 5:10 -C -25:-20 in.pcap out.pcap
2) editcap -C 5:10 -C 50:-20 in.pcap out.pcap
3) editcap -C -70:10 -C -25:-20 in.pcap out.pcap
4) editcap -C -70:10 -C 50:-20 in.pcap out.pcap
5) editcap -C 30:20 -C -60:-10 in.pcap out.pcap
6) editcap -C 30:20 -C 15:-10 in.pcap out.pcap
7) editcap -C -45:20 -C -60:-10 in.pcap out.pcap
8) editcap -C -45:20 -C 15:-10 in.pcap out.pcap


svn path=/trunk/; revision=51886
Fix typo.

svn path=/trunk/; revision=51887
Remove a leftover #if 0 block.

svn path=/trunk/; revision=51888