metze/wireshark/wip.git
10 years agoAbuse epan_t more: add callback to get interface name.
Jakub Zawadzki [Mon, 22 Jul 2013 19:38:38 +0000 (19:38 -0000)]
Abuse epan_t more: add callback to get interface name.

svn path=/trunk/; revision=50794

10 years agoASes can now be 32-bits; make the fields for them 32-bit so that you can
Guy Harris [Mon, 22 Jul 2013 16:56:56 +0000 (16:56 -0000)]
ASes can now be 32-bits; make the fields for them 32-bit so that you can
filter on all possible values of them.

Fixes bug 8959.

#BACKPORT 1.10, 1.8

svn path=/trunk/; revision=50791

10 years agoMark a parameter unused.
Gerald Combs [Mon, 22 Jul 2013 15:41:46 +0000 (15:41 -0000)]
Mark a parameter unused.

svn path=/trunk/; revision=50790

10 years agoWrap clang specific tests into a clang tests instead of checking
Jörg Mayer [Mon, 22 Jul 2013 14:45:58 +0000 (14:45 -0000)]
Wrap clang specific tests into a clang tests instead of checking
for APPLE.
Move 3 of the 4 tests out of this check because the improved checks
should detect them correctly now

svn path=/trunk/; revision=50789

10 years agoLooks like building with -Werror in wsutil was forgotten with
Jörg Mayer [Mon, 22 Jul 2013 14:43:17 +0000 (14:43 -0000)]
Looks like building with -Werror in wsutil was forgotten with
cmake.

svn path=/trunk/; revision=50788

10 years agoFix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8958 :
Pascal Quantin [Mon, 22 Jul 2013 14:19:04 +0000 (14:19 -0000)]
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8958 :
Highlight the right number of bytes for the PadN option data field

svn path=/trunk/; revision=50787

10 years agoFix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8957 :
Pascal Quantin [Mon, 22 Jul 2013 13:00:41 +0000 (13:00 -0000)]
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8957 :
remove a copy /paste error triggering a malformed exception when dissecting IPv4 DHCP Support Mode option

svn path=/trunk/; revision=50786

10 years agoFix includes to get things compiling.
Michael Tüxen [Mon, 22 Jul 2013 11:17:25 +0000 (11:17 -0000)]
Fix includes to get things compiling.

svn path=/trunk/; revision=50785

10 years agoDon't use the program name to identify the compiler - it won't work
Jörg Mayer [Mon, 22 Jul 2013 09:36:14 +0000 (09:36 -0000)]
Don't use the program name to identify the compiler - it won't work
reliably in cases where the compiler is name /usr/bin/cc

Use the internal variable CMAKE_<LANG>_COMPILER_ID instead, which is
finally documented (but still called internal in the docs), see
http://www.cmake.org/cmake/help/v2.8.10/cmake.html#variable:CMAKE_LANG_COMPILER_ID

svn path=/trunk/; revision=50784

10 years agoBeginnings of Nintendo StreetProtocol support
Jörg Mayer [Mon, 22 Jul 2013 08:01:10 +0000 (08:01 -0000)]
Beginnings of Nintendo StreetProtocol support

svn path=/trunk/; revision=50783

10 years agoSquelch uninitialized variable warning.
Guy Harris [Mon, 22 Jul 2013 05:51:51 +0000 (05:51 -0000)]
Squelch uninitialized variable warning.

svn path=/trunk/; revision=50782

10 years agofix "compiler errors"
Michael Mann [Mon, 22 Jul 2013 01:56:35 +0000 (01:56 -0000)]
fix "compiler errors"
Add better support for IP field detection.

svn path=/trunk/; revision=50781

10 years agoMake items more filterable
Michael Mann [Mon, 22 Jul 2013 00:39:30 +0000 (00:39 -0000)]
Make items more filterable
Apply consistent whitespace.
Remove unnecessary string.h

svn path=/trunk/; revision=50780

10 years agoCommit real kafka dissector this time.
Evan Huus [Mon, 22 Jul 2013 00:12:42 +0000 (00:12 -0000)]
Commit real kafka dissector this time.

svn path=/trunk/; revision=50779

10 years agoRemove kafka dissector, accidentally committed symlink instead of real file.
Evan Huus [Mon, 22 Jul 2013 00:11:57 +0000 (00:11 -0000)]
Remove kafka dissector, accidentally committed symlink instead of real file.

svn path=/trunk/; revision=50778

10 years agoSkeleton dissector for Apache Kafka's new protocol:
Evan Huus [Mon, 22 Jul 2013 00:08:25 +0000 (00:08 -0000)]
Skeleton dissector for Apache Kafka's new protocol:
https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol

All the core request/response matching necessary to actually decode is done, and
helpers exist for the common Kafka data types. Now it just remains to fill in
the rest of the fields.

svn path=/trunk/; revision=50777

10 years agoUpdate rtp_player for rel_ts move.
Evan Huus [Sun, 21 Jul 2013 23:31:46 +0000 (23:31 -0000)]
Update rtp_player for rel_ts move.

svn path=/trunk/; revision=50776

10 years agoFix file.c:112:1: error: ‘static’ is not at beginning of declaration
Evan Huus [Sun, 21 Jul 2013 23:30:10 +0000 (23:30 -0000)]
Fix file.c:112:1: error: ‘static’ is not at beginning of declaration
[-Werror=old-style-declaration]

svn path=/trunk/; revision=50775

10 years agoUpdate plugins/ with recent change.
Jakub Zawadzki [Sun, 21 Jul 2013 23:26:07 +0000 (23:26 -0000)]
Update plugins/ with recent change.

svn path=/trunk/; revision=50774

10 years agoFix error when compiled with --enable-packet-editor
Jakub Zawadzki [Sun, 21 Jul 2013 23:14:57 +0000 (23:14 -0000)]
Fix error when compiled with --enable-packet-editor

svn path=/trunk/; revision=50773

10 years agoReplace relative timestamp with reference frame number. Saves 16B per frame.
Jakub Zawadzki [Sun, 21 Jul 2013 23:07:33 +0000 (23:07 -0000)]
Replace relative timestamp with reference frame number. Saves 16B per frame.

svn path=/trunk/; revision=50772

10 years agoThere are many types that eventually turn into "signed byte"; for calls
Guy Harris [Sun, 21 Jul 2013 22:01:22 +0000 (22:01 -0000)]
There are many types that eventually turn into "signed byte"; for calls
to g_strlcpy(), use the one of them that it's documented as using.

svn path=/trunk/; revision=50771

10 years ago- Whitespace changes
Jörg Mayer [Sun, 21 Jul 2013 21:17:35 +0000 (21:17 -0000)]
- Whitespace changes
- Add a missing continuation \

svn path=/trunk/; revision=50770

10 years agoAdd wmem queue 'implementation' by wrapping wmem_list and wmem_stack.
Evan Huus [Sun, 21 Jul 2013 21:13:30 +0000 (21:13 -0000)]
Add wmem queue 'implementation' by wrapping wmem_list and wmem_stack.

Also a bit of misc. refactoring of the stack while I was there, and doc tweaks.

svn path=/trunk/; revision=50769

10 years agoRemove unused variable, fix comparison to use double-equals.
Evan Huus [Sun, 21 Jul 2013 21:10:13 +0000 (21:10 -0000)]
Remove unused variable, fix comparison to use double-equals.

svn path=/trunk/; revision=50768

10 years agoFix: epan.c:155: warning: assignment discards qualifiers from pointer target type
Jakub Zawadzki [Sun, 21 Jul 2013 21:04:25 +0000 (21:04 -0000)]
Fix: epan.c:155: warning: assignment discards qualifiers from pointer target type

svn path=/trunk/; revision=50767

10 years agoInterpretation of 3gpp_feature_list depends on Application Id.
Anders Broman [Sun, 21 Jul 2013 20:58:37 +0000 (20:58 -0000)]
Interpretation of 3gpp_feature_list depends on Application Id.

svn path=/trunk/; revision=50766

10 years agoAdd helper function to epan_session which can be used to get absolute timestamp of...
Jakub Zawadzki [Sun, 21 Jul 2013 20:48:30 +0000 (20:48 -0000)]
Add helper function to epan_session which can be used to get absolute timestamp of given frame.
Remove ->prev_cap, for testing purpose also replace ->prev_dis with number of previously displayed frame number.

This patch reduce size of frame_data by 8B (amd64)
This is what (I think) was suggested by Guy in comment 13 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5821#c13)

svn path=/trunk/; revision=50765

10 years agoCommit missing file.
Jakub Zawadzki [Sun, 21 Jul 2013 19:21:51 +0000 (19:21 -0000)]
Commit missing file.

svn path=/trunk/; revision=50764

10 years agotry to fix: epan.c:141: error: invalid application of 'sizeof' to incomplete type...
Jakub Zawadzki [Sun, 21 Jul 2013 19:08:11 +0000 (19:08 -0000)]
try to fix: epan.c:141: error: invalid application of 'sizeof' to incomplete type 'epan_t'

svn path=/trunk/; revision=50763

10 years agoAdd ability to convert proto_tree_add_text to "expert" API. It's a little hacky...
Michael Mann [Sun, 21 Jul 2013 19:03:36 +0000 (19:03 -0000)]
Add ability to convert proto_tree_add_text to "expert" API.  It's a little hacky because the first pass doesn't know that a proto_tree_add_text call will be converted into an expert API call, so there is some "field reappropriation" (but not enough to have a different field layout) in the .proto_tree_input file.

svn path=/trunk/; revision=50762

10 years agoSome work on multi file dissection
Jakub Zawadzki [Sun, 21 Jul 2013 18:38:03 +0000 (18:38 -0000)]
Some work on multi file dissection

- make init_dissection/cleanup_dissection private for libwireshark
- implement epan_new(), epan_free()
- pass epan_t to epan_dissect*

svn path=/trunk/; revision=50761

10 years agoTry to generate an error when calling clang with an unknown compiler
Jörg Mayer [Sun, 21 Jul 2013 18:12:20 +0000 (18:12 -0000)]
Try to generate an error when calling clang with an unknown compiler
option. This behaviour changed in clang, see
https://bugzilla.mozilla.org/show_bug.cgi?id=731316

svn path=/trunk/; revision=50760

10 years agoAdd option for echld builds (forgot that in a previous commit)
Jörg Mayer [Sun, 21 Jul 2013 18:10:30 +0000 (18:10 -0000)]
Add option for echld builds (forgot that in a previous commit)

svn path=/trunk/; revision=50759

10 years agoAdd test binaries to .gitignore
Jakub Zawadzki [Sun, 21 Jul 2013 17:36:35 +0000 (17:36 -0000)]
Add test binaries to .gitignore

svn path=/trunk/; revision=50758

10 years agoFix
Jörg Mayer [Sun, 21 Jul 2013 14:28:08 +0000 (14:28 -0000)]
Fix

/home/jmayer/work/wireshark/svn/trunk/epan/address_to_str.c:595:20: error: passing
      'const guint8 *' (aka 'const unsigned char *') to parameter of type
      'const gchar *' (aka 'const char *') converts between pointers to integer types
      with different sign [-Werror,-Wpointer-sign]
    g_strlcpy(buf, (const guint8 *)addr->data, buf_len);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gstrfuncs.h:110:20: note: passing argument to parameter 'src'
      here
                                        const gchar  *src,
                                                      ^

svn path=/trunk/; revision=50756

10 years agoRemove trailing whitespace
Jörg Mayer [Sun, 21 Jul 2013 14:05:04 +0000 (14:05 -0000)]
Remove trailing whitespace

svn path=/trunk/; revision=50754

10 years ago[Automatic manuf, services and enterprise-numbers update for 2013-07-21]
Gerald Combs [Sun, 21 Jul 2013 14:03:34 +0000 (14:03 -0000)]
[Automatic manuf, services and enterprise-numbers update for 2013-07-21]

svn path=/trunk/; revision=50753

10 years agoMore fixes for building echld with cmake (not yet finished)
Jörg Mayer [Sun, 21 Jul 2013 13:40:08 +0000 (13:40 -0000)]
More fixes for building echld with cmake (not yet finished)

svn path=/trunk/; revision=50752

10 years agoEnable echld builds with cmake when building with ENABLE_ECHLD=ON
Jörg Mayer [Sun, 21 Jul 2013 13:34:50 +0000 (13:34 -0000)]
Enable echld builds with cmake when building with ENABLE_ECHLD=ON

svn path=/trunk/; revision=50751

10 years agoInclude config.h, not ../config.h, just like everywhere else.
Jörg Mayer [Sun, 21 Jul 2013 13:25:35 +0000 (13:25 -0000)]
Include config.h, not ../config.h, just like everywhere else.

svn path=/trunk/; revision=50750

10 years agoDon't check for "APPLE" if what you really mean is "clang"
Jörg Mayer [Sun, 21 Jul 2013 12:53:51 +0000 (12:53 -0000)]
Don't check for "APPLE" if what you really mean is "clang"

svn path=/trunk/; revision=50749

10 years agoTurn modifier field into a value_string.
Michael Mann [Sun, 21 Jul 2013 01:35:45 +0000 (01:35 -0000)]
Turn modifier field into a value_string.

svn path=/trunk/; revision=50748

10 years agoDon't report a syntax error if a preference name without a "." is
Guy Harris [Sun, 21 Jul 2013 00:56:42 +0000 (00:56 -0000)]
Don't report a syntax error if a preference name without a "." is
specified, report it as "no such preference" instead.  That should be
less confusing; see

   http://stackoverflow.com/questions/17757659/how-to-apply-and-override-preferences-with-tshark

for an example of confusion.

#BACKPORT 1.10, 1.8

svn path=/trunk/; revision=50745

10 years agoReplace wmem slist (singly-linked) with wmem list (doubly-linked).
Evan Huus [Sat, 20 Jul 2013 20:33:38 +0000 (20:33 -0000)]
Replace wmem slist (singly-linked) with wmem list (doubly-linked).

The overhead is not large, and it makes append much faster (O(1) vs O(n)).

It also will make a queue easy to add, which I need for a dissector I'm
writing...

svn path=/trunk/; revision=50744

10 years agomake proto_tree_add_text calls filterable through hfs and expert info.
Michael Mann [Sat, 20 Jul 2013 02:33:34 +0000 (02:33 -0000)]
make proto_tree_add_text calls filterable through hfs and expert info.

svn path=/trunk/; revision=50743

10 years agoGeoIP 1.5.1.
Gerald Combs [Sat, 20 Jul 2013 01:01:55 +0000 (01:01 -0000)]
GeoIP 1.5.1.

svn path=/trunk/; revision=50742

10 years agoFix problems when expanding whole tree '*' / all subtree nodes <Shift>-Right
Jakub Zawadzki [Fri, 19 Jul 2013 17:51:05 +0000 (17:51 -0000)]
Fix problems when expanding whole tree '*' / all subtree nodes <Shift>-Right

Remove gtk_tree_view_collapse_row from check_expand_trees()

svn path=/trunk/; revision=50741

10 years agoFix gtk warnings when clicking on some byte on byte pane.
Jakub Zawadzki [Fri, 19 Jul 2013 17:31:32 +0000 (17:31 -0000)]
Fix gtk warnings when clicking on some byte on byte pane.

When we don't have path don't check for subtrees.
(Originally report by Jeff on https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8908#c17)

XXX, we could create a path pointing on begin of tree - but do we want to do it?

svn path=/trunk/; revision=50740

10 years agoFrom Cal Turney via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8942 :
Pascal Quantin [Fri, 19 Jul 2013 08:04:58 +0000 (08:04 -0000)]
From Cal Turney via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8942 :
Fix segmentation fault when reading pref file

svn path=/trunk/; revision=50737

10 years agoFix the fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi...
Jeff Morriss [Thu, 18 Jul 2013 23:34:48 +0000 (23:34 -0000)]
Fix the fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8941 :

Storing 2 different structures on the fd proto_data (with the same key) isn't
safe: use different keys to keep them separate.  I do wonder if both are
really necessary...

This fix can be back-ported to trunk-1.10 but not trunk-1.8 (which lacks the
key identifier for proto_data's).

svn path=/trunk/; revision=50734

10 years agoCleanup hf_ variables so they can be identified as such. "Array" of hf items not...
Michael Mann [Thu, 18 Jul 2013 20:13:42 +0000 (20:13 -0000)]
Cleanup hf_ variables so they can be identified as such. "Array" of hf items not necessary and prevents "check" scripts from fully working.

Made ett array local to proto_register_pcep.

All this for preparing to use convert_proto_tree_add_text (which I thought should be its own patch/revision)

svn path=/trunk/; revision=50733

10 years agoFrom Marko Hrastovec via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8926 :
Jeff Morriss [Thu, 18 Jul 2013 20:11:55 +0000 (20:11 -0000)]
From Marko Hrastovec via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8926 :

A better fix for this bug (as compared to r50532): this version takes into
account the scaling factors.

svn path=/trunk/; revision=50732

10 years agoAdd fencing for COL_INFO (which was the intent of the dissector until I accidentally...
Michael Mann [Thu, 18 Jul 2013 18:19:03 +0000 (18:19 -0000)]
Add fencing for COL_INFO (which was the intent of the dissector until I accidentally removed it in rev 50730.)

svn path=/trunk/; revision=50731

10 years agoMake filterable items from proto_tree_add_text.
Michael Mann [Thu, 18 Jul 2013 18:10:59 +0000 (18:10 -0000)]
Make filterable items from proto_tree_add_text.

svn path=/trunk/; revision=50730

10 years agoFix memleak, base64_to_tvb() strdup passed string by its own.
Jakub Zawadzki [Thu, 18 Jul 2013 17:31:34 +0000 (17:31 -0000)]
Fix memleak, base64_to_tvb() strdup passed string by its own.

svn path=/trunk/; revision=50729

10 years agoCatch exceptions from AVP subdissectors in case the AVPs following the one
Jeff Morriss [Thu, 18 Jul 2013 15:08:15 +0000 (15:08 -0000)]
Catch exceptions from AVP subdissectors in case the AVPs following the one
that threw the exception are OK--this allows us to view as much of the message
as possible even when Wireshark doesn't like whatever was in a particular
AVP.

Instead of using the 'volatile' keyword to avoid variable-clobbering warnings,
put the exception-catching code in its own function with no local variables.

svn path=/trunk/; revision=50728

10 years agoFix copy/paste error
Pascal Quantin [Thu, 18 Jul 2013 09:32:36 +0000 (09:32 -0000)]
Fix copy/paste error

svn path=/trunk/; revision=50727

10 years agoFrom Anders: add Verizon Wireless dictionary
Pascal Quantin [Thu, 18 Jul 2013 09:27:10 +0000 (09:27 -0000)]
From Anders: add Verizon Wireless dictionary

svn path=/trunk/; revision=50726

10 years agoTemporarily disable offending code triggering a segmentation fault on Linux (see...
Pascal Quantin [Thu, 18 Jul 2013 09:12:59 +0000 (09:12 -0000)]
Temporarily disable offending code triggering a segmentation fault on Linux (see bug 8942)

svn path=/trunk/; revision=50725

10 years agoFix errors :
Alexis La Goutte [Thu, 18 Jul 2013 07:21:25 +0000 (07:21 -0000)]
Fix errors :
prefs_dlg.c:1395:69: error: unused parameter ‘parent_w’ [-Werror=unused-parameter]
prefs_dlg.c:1414:19: error: initialization discards ‘const’ qualifier from pointer target type [-Werror]
prefs_dlg.c:1415:19: error: initialization discards ‘const’ qualifier from pointer target type [-Werror]
prefs_dlg.c:1417:19: error: initialization discards ‘const’ qualifier from pointer target type [-Werror]
prefs_dlg.c:1418:19: error: initialization discards ‘const’ qualifier from pointer target type [-Werror]
prefs_dlg.c:1419:19: error: initialization discards ‘const’ qualifier from pointer target type [-Werror]
prefs_dlg.c:1427:7: error: format not a string literal and no format arguments [-Werror=format-security]
prefs_dlg.c:1432:7: error: format not a string literal and no format arguments [-Werror=format-security]

svn path=/trunk/; revision=50724

10 years agoFix various errors found by checkAPI.pl and fix-encoding-args.pl scripts
Pascal Quantin [Thu, 18 Jul 2013 07:09:31 +0000 (07:09 -0000)]
Fix various errors found by checkAPI.pl and fix-encoding-args.pl scripts

svn path=/trunk/; revision=50723

10 years agoTry to fix error: ignoring return value of 'fwrite', declared with attribute warn_unu...
Pascal Quantin [Thu, 18 Jul 2013 07:01:02 +0000 (07:01 -0000)]
Try to fix error: ignoring return value of 'fwrite', declared with attribute warn_unused_result

svn path=/trunk/; revision=50722

10 years agoFix error: 'format' may be used uninitialized in this function
Pascal Quantin [Thu, 18 Jul 2013 06:38:51 +0000 (06:38 -0000)]
Fix error: 'format' may be used uninitialized in this function

svn path=/trunk/; revision=50721

10 years agoTry to fix 'old-style function definition' warning
Pascal Quantin [Thu, 18 Jul 2013 06:38:05 +0000 (06:38 -0000)]
Try to fix 'old-style function definition' warning

svn path=/trunk/; revision=50720

10 years agoFrom Rupesh Patro:
Anders Broman [Thu, 18 Jul 2013 04:50:36 +0000 (04:50 -0000)]
From Rupesh Patro:
Add dissection of MPLS Upstream Label Assignment for LDP [RFC 6389].

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

svn path=/trunk/; revision=50719

10 years agoFrom Cal Turney:
Anders Broman [Thu, 18 Jul 2013 04:40:03 +0000 (04:40 -0000)]
From  Cal Turney:
Fix: If the FH length is not 32 or 40, the packet is decoded as "Unknown", a warning is displayed in Expert, and the rest of the packet is decoded. In addition, changed "Celerra" to "Celerra|VNX".

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

svn path=/trunk/; revision=50718

10 years agoFrom Javier Godoy:
Anders Broman [Thu, 18 Jul 2013 04:34:56 +0000 (04:34 -0000)]
From Javier Godoy:
 * Remove dissect_osd_list_collection and dissect LIST COLLECTION by calling dissect_osd_list.
 * Handle the few differences depending on the value of svcaction in extra data.
 * dissect_osd_collection_object_id now returns proto_item* instead of void.

The following field was added:
 * hf_scsi_osd_list_collection_flags_coltn

The following true_false_string array was added
 * list_coltn_tfs

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

svn path=/trunk/; revision=50717

10 years agoFrom Cal Turney:
Anders Broman [Thu, 18 Jul 2013 04:28:36 +0000 (04:28 -0000)]
From  Cal Turney:
Unrecognized preferences and color filters created in proprietary or older versions are discarded when saved.

If the user attempts to save the preferences or colorfilters file, a popup is displayed that warns that unrecognized prefs or color filters have been detected and will be discarded if the save operation is allowed to proceed. In the case of Preferences, the popup message includes the version at which the file was last saved.  A "Continue without Saving" button is provided so that the user can save the profile under a different name.

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

svn path=/trunk/; revision=50716

10 years agoFix:
Anders Broman [Thu, 18 Jul 2013 04:17:58 +0000 (04:17 -0000)]
Fix:
packet-l2tp.c: In function 'dissect_l2tp_cisco_avps':
packet-l2tp.c:1296: warning: unused variable 'pw_type'
packet-l2tp.c: In function 'process_control_avps':
packet-l2tp.c:1789: warning: unused variable 'pw_type'

svn path=/trunk/; revision=50715

10 years agoAdd better detection of strings and byte arrays.
Michael Mann [Thu, 18 Jul 2013 02:49:06 +0000 (02:49 -0000)]
Add better detection of strings and byte arrays.

svn path=/trunk/; revision=50714

10 years agoConvert proto_tree_add_text calls to proto_tree_add_item.
Michael Mann [Thu, 18 Jul 2013 02:42:06 +0000 (02:42 -0000)]
Convert proto_tree_add_text calls to proto_tree_add_item.

svn path=/trunk/; revision=50713

10 years agoInitially select the default item. Don't try to delete the default item
Gerald Combs [Wed, 17 Jul 2013 23:19:19 +0000 (23:19 -0000)]
Initially select the default item. Don't try to delete the default item
or global items. Don't let the user try to do that.

svn path=/trunk/; revision=50711

10 years agoUse the valid/invalid/deprecated backround color preferences.
Gerald Combs [Wed, 17 Jul 2013 21:55:38 +0000 (21:55 -0000)]
Use the valid/invalid/deprecated backround color preferences.

svn path=/trunk/; revision=50709

10 years agoRemove fragment_data, add fragment_head, fragment_item - for now alias it to the...
Jakub Zawadzki [Wed, 17 Jul 2013 21:12:24 +0000 (21:12 -0000)]
Remove fragment_data, add fragment_head, fragment_item - for now alias it to the same structure.

This is begin of work to split fragment head and fragments items.

svn path=/trunk/; revision=50708

10 years agogen-bugnote: Produce a list item for AsciiDoc. backport-rev: Add error
Gerald Combs [Wed, 17 Jul 2013 21:01:37 +0000 (21:01 -0000)]
gen-bugnote: Produce a list item for AsciiDoc. backport-rev: Add error
checking for newer versions of Subversion.

svn path=/trunk/; revision=50707

10 years agoAdd filter color preferences to the Qt UI similar to r50203. Fixes bug
Gerald Combs [Wed, 17 Jul 2013 20:58:56 +0000 (20:58 -0000)]
Add filter color preferences to the Qt UI similar to r50203. Fixes bug
5413.

svn path=/trunk/; revision=50706

10 years agoOptimize print_line_text
Jakub Zawadzki [Wed, 17 Jul 2013 20:13:54 +0000 (20:13 -0000)]
Optimize print_line_text

- fill spaces[] array once
- use fwrite()

svn path=/trunk/; revision=50705

10 years agoDissect new flags
Anders Broman [Wed, 17 Jul 2013 18:19:23 +0000 (18:19 -0000)]
Dissect new flags

svn path=/trunk/; revision=50701

10 years agoUpdate 3GPP AVP:s
Anders Broman [Wed, 17 Jul 2013 18:18:52 +0000 (18:18 -0000)]
Update 3GPP AVP:s

svn path=/trunk/; revision=50700

10 years agoOptimize proto_tree_print_node() + fix possible memleak when -O is used
Jakub Zawadzki [Wed, 17 Jul 2013 17:16:22 +0000 (17:16 -0000)]
Optimize proto_tree_print_node() + fix possible memleak when -O is used

svn path=/trunk/; revision=50699

10 years agoRevert r50668, remove fd check to fix CID 1050093
Jakub Zawadzki [Wed, 17 Jul 2013 17:10:52 +0000 (17:10 -0000)]
Revert r50668, remove fd check to fix CID 1050093

svn path=/trunk/; revision=50698

10 years agoFix up some indentation.
Jeff Morriss [Wed, 17 Jul 2013 14:01:47 +0000 (14:01 -0000)]
Fix up some indentation.

svn path=/trunk/; revision=50697

10 years agoUse "generic" tfs (tfs_supported_not_supported...)
Alexis La Goutte [Wed, 17 Jul 2013 10:44:35 +0000 (10:44 -0000)]
Use "generic" tfs (tfs_supported_not_supported...)

Add Enforced / Not enforced to epan/tfs.[ch]

svn path=/trunk/; revision=50696

10 years agoMove Do not clear / Clear & Confirmed / Unconfirmed TFS to epan/tfs.[ch]
Alexis La Goutte [Wed, 17 Jul 2013 10:44:26 +0000 (10:44 -0000)]
Move Do not clear / Clear & Confirmed / Unconfirmed TFS to epan/tfs.[ch]

svn path=/trunk/; revision=50695

10 years agoUse "generic" tfs (tfs_set_notset...)
Alexis La Goutte [Wed, 17 Jul 2013 10:44:18 +0000 (10:44 -0000)]
Use "generic" tfs (tfs_set_notset...)

svn path=/trunk/; revision=50694

10 years agoUse "generic" tfs (tfs_set_notset, tfs_supported_not_supported...)
Alexis La Goutte [Wed, 17 Jul 2013 10:44:08 +0000 (10:44 -0000)]
Use "generic" tfs (tfs_set_notset, tfs_supported_not_supported...)

Add complete / Incomplete & Valid / Not Valid TFS

svn path=/trunk/; revision=50693

10 years agoUse "generic" tfs (tfs_set_notset...)
Alexis La Goutte [Wed, 17 Jul 2013 10:43:57 +0000 (10:43 -0000)]
Use "generic" tfs (tfs_set_notset...)

svn path=/trunk/; revision=50692

10 years agoBacking out r50690 (exept simple_dialog)
Anders Broman [Wed, 17 Jul 2013 05:52:51 +0000 (05:52 -0000)]
Backing out r50690 (exept simple_dialog)

struct FILE is different on windows vs *nix

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

svn path=/trunk/; revision=50691

10 years agoFrom Cal Turney:
Anders Broman [Wed, 17 Jul 2013 04:52:19 +0000 (04:52 -0000)]
From  Cal Turney:
Unrecognized preferences and color filters created in proprietary or older versions are discarded when saved.

If the user attempts to save the preferences or colorfilters file, a popup is displayed that warns that unrecognized prefs or color filters have been detected and will be discarded if the save operation is allowed to proceed. In the case of Preferences, the popup message includes the version at which the file was last saved.  A "Continue without Saving" button is provided so that the user can save the profile under a different name.

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

svn path=/trunk/; revision=50690

10 years agoConvert proto_tree_add_tree calls to something filterable.
Michael Mann [Wed, 17 Jul 2013 03:13:07 +0000 (03:13 -0000)]
Convert proto_tree_add_tree calls to something filterable.
Remove "effectively useless" blurbs.

svn path=/trunk/; revision=50689

10 years agoUse label_fill also when boolean / bitfield.
Jakub Zawadzki [Tue, 16 Jul 2013 22:21:10 +0000 (22:21 -0000)]
Use label_fill also when boolean / bitfield.

svn path=/trunk/; revision=50682

10 years agooptimize: remove g_snprintf()'s from label_fill[_descr]
Jakub Zawadzki [Tue, 16 Jul 2013 22:09:29 +0000 (22:09 -0000)]
optimize: remove g_snprintf()'s from label_fill[_descr]

svn path=/trunk/; revision=50681

10 years agoset HAVE_GETOPT_H and HAVE_GETOPT variables
Martin Kaiser [Tue, 16 Jul 2013 21:12:12 +0000 (21:12 -0000)]
set HAVE_GETOPT_H and HAVE_GETOPT variables
for both autotools and cmake builds

(in order to use getopt_long(), we have to check if we
 can include getopt.h)

svn path=/trunk/; revision=50680

10 years agoThe new frame-based tvbuff code found that the DOS Sniffer code for
Guy Harris [Tue, 16 Jul 2013 20:59:02 +0000 (20:59 -0000)]
The new frame-based tvbuff code found that the DOS Sniffer code for
compressed sniffer files failed if the very first read involves seeking
past the first blob; fix that.

svn path=/trunk/; revision=50679

10 years agoMake fields filterable through proto_tree_add_item (with the help of convert_proto_tr...
Michael Mann [Tue, 16 Jul 2013 20:53:02 +0000 (20:53 -0000)]
Make fields filterable through proto_tree_add_item (with the help of convert_proto_tree_add_text.pl) and expert info.
Do some whitespace cleanup and add modelines.

svn path=/trunk/; revision=50678

10 years agomake getopt_long() available on systems that don't have it natively
Martin Kaiser [Tue, 16 Jul 2013 20:15:02 +0000 (20:15 -0000)]
make getopt_long() available on systems that don't have it natively

svn path=/trunk/; revision=50677

10 years agoConvert some proto_tree_add_text into proto_tree_add_expert.
Michael Mann [Tue, 16 Jul 2013 19:14:26 +0000 (19:14 -0000)]
Convert some proto_tree_add_text into proto_tree_add_expert.

svn path=/trunk/; revision=50676

10 years agoReplace some tabs with spaces.
Jeff Morriss [Tue, 16 Jul 2013 18:03:20 +0000 (18:03 -0000)]
Replace some tabs with spaces.

svn path=/trunk/; revision=50674

10 years agoFix the fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi...
Jeff Morriss [Tue, 16 Jul 2013 17:59:26 +0000 (17:59 -0000)]
Fix the fuzz failure reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8940 :

Test whether idx is in range or not (by seeing if it was found in the
value_string) before using it as an index into any of the elem_var arrays.

This fuzz failure was in elem_telv() but apply the fix to all the elem_*()
functions.

svn path=/trunk/; revision=50672