metze/wireshark/wip.git
10 years agoActually use the new environment variable created in r49784--apparently I forgot...
Jeff Morriss [Sun, 30 Jun 2013 16:16:13 +0000 (16:16 -0000)]
Actually use the new environment variable created in r49784--apparently I forgot to check in this file (sigh).

svn path=/trunk/; revision=50257

10 years ago[Automatic manuf, services and enterprise-numbers update for 2013-06-30]
Gerald Combs [Sun, 30 Jun 2013 14:03:40 +0000 (14:03 -0000)]
[Automatic manuf, services and enterprise-numbers update for 2013-06-30]

svn path=/trunk/; revision=50254

10 years agoproto_custom_set: don't fetch values twice.
Jakub Zawadzki [Sun, 30 Jun 2013 13:23:31 +0000 (13:23 -0000)]
proto_custom_set: don't fetch values twice.

svn path=/trunk/; revision=50252

10 years agoip_proto.h now requires expert.h.
Jeff Morriss [Sun, 30 Jun 2013 11:06:32 +0000 (11:06 -0000)]
ip_proto.h now requires expert.h.

svn path=/trunk/; revision=50249

10 years agoAdd expert info to dissect_ip_tcp_options(). The proto_tree_add_text seems a bit...
Michael Mann [Sun, 30 Jun 2013 03:16:32 +0000 (03:16 -0000)]
Add expert info to dissect_ip_tcp_options().  The proto_tree_add_text seems a bit duplicative, but the byte highlighting over the whole option is nice.

svn path=/trunk/; revision=50248

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 22:01:21 +0000 (22:01 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50247

10 years agoFix warning from fix-encoding-args
Alexis La Goutte [Sat, 29 Jun 2013 22:01:13 +0000 (22:01 -0000)]
Fix warning from fix-encoding-args

epan/dissectors/packet-scsi.c:  FT_BYTES:         proto_tree_add_item(tree, hf_scsi_report_opcodes_cdb_usage_data,                            tvb_v, offset_v+4, length, [[ENC_BIG_ENDIAN]-->[ENC_NA]]);

svn path=/trunk/; revision=50246

10 years agoFix indent (Tabs => Spaces) and add modelines info for follow_* files
Alexis La Goutte [Sat, 29 Jun 2013 22:01:01 +0000 (22:01 -0000)]
Fix indent (Tabs => Spaces) and add modelines info for follow_* files

svn path=/trunk/; revision=50245

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 22:00:50 +0000 (22:00 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50244

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 22:00:42 +0000 (22:00 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50243

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 22:00:31 +0000 (22:00 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50242

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 22:00:22 +0000 (22:00 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50241

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 22:00:13 +0000 (22:00 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50240

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 22:00:03 +0000 (22:00 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50239

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 21:59:53 +0000 (21:59 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50238

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 21:59:44 +0000 (21:59 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50237

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 21:59:35 +0000 (21:59 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50236

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 21:59:25 +0000 (21:59 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50235

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 21:59:15 +0000 (21:59 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50234

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 21:59:06 +0000 (21:59 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50233

10 years agoFix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Alexis La Goutte [Sat, 29 Jun 2013 21:58:57 +0000 (21:58 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang

svn path=/trunk/; revision=50232

10 years agoUpdate .gitignore to add some Windows specific build stuff to ignore list.
Alexis La Goutte [Sat, 29 Jun 2013 21:58:46 +0000 (21:58 -0000)]
Update .gitignore to add some Windows specific build stuff to ignore list.

svn path=/trunk/; revision=50231

10 years agoSeparate IP option header fields for each dissector that uses dissect_ip_tcp_options...
Michael Mann [Sat, 29 Jun 2013 19:59:08 +0000 (19:59 -0000)]
Separate IP option header fields for each dissector that uses dissect_ip_tcp_options().  Bug 8823 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8823)

svn path=/trunk/; revision=50230

10 years agoFrom Fabio Tarabelloni via
Evan Huus [Sat, 29 Jun 2013 15:57:44 +0000 (15:57 -0000)]
From Fabio Tarabelloni via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8718

Zigbee dissectors for the power profile cluster and the appliance control
cluster

svn path=/trunk/; revision=50229

10 years agoImprovements for the KDSP dissector. Bug 8864 (https://bugs.wireshark.org/bugzilla...
Michael Mann [Sat, 29 Jun 2013 02:54:58 +0000 (02:54 -0000)]
Improvements for the KDSP dissector.  Bug 8864 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8864)

From Yuri Schaeffer

It addresses the following issues:

- Payload was included for all CAPPACKET messages. Even when not flagged by bitmap (bug).
- Frame Checksum (FCS) was not read from bitmap all following data is off by 4. (bug)
- Headers indicated in bitmap could use own subtree
- Payload is malformed because it is assumed the span 'the rest of the packet'. In reality more commands can follow. (bug)

svn path=/trunk/; revision=50228

10 years agoOne further iteration, get things right, put placeholders for things to do.
Luis Ontanon [Sat, 29 Jun 2013 01:16:48 +0000 (01:16 -0000)]
One further iteration, get things right, put placeholders for things to do.

svn path=/trunk/; revision=50227

10 years agoCallers to dissect_ndr_* functions expect pdata to be initialized on return from
Evan Huus [Fri, 28 Jun 2013 23:54:53 +0000 (23:54 -0000)]
Callers to dissect_ndr_* functions expect pdata to be initialized on return from
the function, so make sure it is even in error conditions and other anomaly
cases. Fixes the valgrind errors with the capture from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8828

svn path=/trunk/; revision=50226

10 years agoRename octet_to_hex() to low_nibble_of_octet_to_hex() to indicate what
Guy Harris [Fri, 28 Jun 2013 22:52:24 +0000 (22:52 -0000)]
Rename octet_to_hex() to low_nibble_of_octet_to_hex() to indicate what
it actually does (it takes the low-order nibble of an octet and returns
a single character).

Cast away some warnings.

svn path=/trunk/; revision=50225

10 years agoSquelch a warning.
Guy Harris [Fri, 28 Jun 2013 22:47:50 +0000 (22:47 -0000)]
Squelch a warning.

Rename the "is_int" argument to fill_label_number() to make it clearer
what it indicates, i.e. whether the number is signed or unsigned.

svn path=/trunk/; revision=50224

10 years agoUse octet_to_hex() in another place.
Jakub Zawadzki [Fri, 28 Jun 2013 22:29:08 +0000 (22:29 -0000)]
Use octet_to_hex() in another place.

svn path=/trunk/; revision=50223

10 years agoRename AC_WIRESHARK_GCC_CFLAGS_CHECK to
Guy Harris [Fri, 28 Jun 2013 22:00:52 +0000 (22:00 -0000)]
Rename AC_WIRESHARK_GCC_CFLAGS_CHECK to
AC_WIRESHARK_COMPILER_FLAGS_CHECK, because it doesn't just affect CFLAGS
and it doesn't just affect the flags for GCC.

svn path=/trunk/; revision=50222

10 years agoChange formatting in the hopes of making the code a bit easier to figure
Guy Harris [Fri, 28 Jun 2013 21:51:31 +0000 (21:51 -0000)]
Change formatting in the hopes of making the code a bit easier to figure
out, and update a comment.

svn path=/trunk/; revision=50221

10 years agoMerge fill_label_[u]int to fill_label_number, hfinfo_[u]int_value_format to hfinfo_nu...
Jakub Zawadzki [Fri, 28 Jun 2013 21:46:41 +0000 (21:46 -0000)]
Merge fill_label_[u]int to fill_label_number, hfinfo_[u]int_value_format to hfinfo_number_value_format

svn path=/trunk/; revision=50220

10 years agoWhen checking whether a given option should be added to the compiler
Guy Harris [Fri, 28 Jun 2013 21:38:51 +0000 (21:38 -0000)]
When checking whether a given option should be added to the compiler
flags, if the option should be added to the flags for both C and C++,
test both the C and C++ compilers and, if the answers are different,
print a warning; the user might have (intentionally or unintentionally)
selected mismatched compilers, e.g. clang and g++ on OS X.

svn path=/trunk/; revision=50219

10 years agoMS: new child
Luis Ontanon [Fri, 28 Jun 2013 21:10:52 +0000 (21:10 -0000)]
MS: new child
MS: ping child
MS: set/get child parameter

svn path=/trunk/; revision=50218

10 years agoMerge _hfinfo_int_value_format and _hfinfo_uint_value_format to one function hfinfo_n...
Jakub Zawadzki [Fri, 28 Jun 2013 19:54:04 +0000 (19:54 -0000)]
Merge _hfinfo_int_value_format and _hfinfo_uint_value_format to one function hfinfo_number_vals_format

In hfinfo_number_vals_format check how hf should be formatted.

svn path=/trunk/; revision=50217

10 years ago#micro-optimization, remove g_snprintf()'s from _hfinfo_[u]int_value_format with...
Jakub Zawadzki [Fri, 28 Jun 2013 19:34:48 +0000 (19:34 -0000)]
#micro-optimization, remove g_snprintf()'s from _hfinfo_[u]int_value_format with some new fresh replacements.

svn path=/trunk/; revision=50216

10 years agoDo the "is $CXX actually a C++ compiler" test as early as possible, so
Guy Harris [Fri, 28 Jun 2013 19:34:35 +0000 (19:34 -0000)]
Do the "is $CXX actually a C++ compiler" test as early as possible, so
that it doesn't fail due to the C++ compiler not supporting -W options
that the C compiler does.

(We should fix that, too, by having separate checks for whether the C
and C++ compilers support particular options.)

svn path=/trunk/; revision=50215

10 years agoUse newly assigned DLT for PDU export functionality
Pascal Quantin [Fri, 28 Jun 2013 13:05:12 +0000 (13:05 -0000)]
Use newly assigned DLT for PDU export functionality

svn path=/trunk/; revision=50212

10 years agoFrom Dirk via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8850 :
Jeff Morriss [Fri, 28 Jun 2013 13:04:01 +0000 (13:04 -0000)]
From Dirk via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8850 :

The attached patch fixes the integer type of the WCCP identity mask value.
This is a bitmask which should be printed as hex, it doesn't make sense to
print it as an IPv4 address. See
http://tools.ietf.org/id/draft-wilson-wrec-wccp-v2-01.txt section 5.7.7 and
the attached capture file as an example.

The current draft http://tools.ietf.org/html/draft-mclaggan-wccp-v2rev1-00#section-6.15
doesn't mention "mask" in the names of the field any more, but the description
still describes them as mask values.

svn path=/trunk/; revision=50211

10 years agoFrom Lorand Jakab via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8852 :
Jeff Morriss [Fri, 28 Jun 2013 12:52:19 +0000 (12:52 -0000)]
From Lorand Jakab via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8852 :

The I and R flags in Map-Notify LISP control packets are shown at an incorrect
position.  The attached patch fixes the bug.

svn path=/trunk/; revision=50210

10 years agoreplace object_identifier_id with actx->external.direct_reference
Michael Mann [Fri, 28 Jun 2013 12:52:13 +0000 (12:52 -0000)]
replace object_identifier_id with actx->external.direct_reference

svn path=/trunk/; revision=50209

10 years agoRemove all global variables in P1 dissector. Bug 8515 (https://bugs.wireshark.org...
Michael Mann [Fri, 28 Jun 2013 12:43:29 +0000 (12:43 -0000)]
Remove all global variables in P1 dissector.  Bug 8515 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8515)

Added a "subtree context" structure to asn1_ctx_t. This should allow other ASN.1 dissector global variables to be replaced when only used for transferring data between fields in a subtree.

svn path=/trunk/; revision=50208

10 years agoFrom Niels de Vos via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8861 :
Jeff Morriss [Fri, 28 Jun 2013 12:42:41 +0000 (12:42 -0000)]
From Niels de Vos via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8861 :

Recent versions of GlusterFS have extended the RPC protocol with new
procedures. The RPC-program-version has not been updated (yet?).

The attached adds support dissecting the FREMOVEXATTR, FALLOCATE and
DISCARD procedures.

svn path=/trunk/; revision=50207

10 years agoStandard C++ header files don't have .h in their name: #include <iostream>
Jeff Morriss [Fri, 28 Jun 2013 12:18:03 +0000 (12:18 -0000)]
Standard C++ header files don't have .h in their name: #include <iostream>
rather than #include <iostream.h>.

Also reference cout as std::cout in the test program.

svn path=/trunk/; revision=50206

10 years agoAC_LANG_PROGRAM's second argument is put inside "int main(){"/"}" by the
Guy Harris [Fri, 28 Jun 2013 09:59:19 +0000 (09:59 -0000)]
AC_LANG_PROGRAM's second argument is put inside "int main(){"/"}" by the
macro, and mustn't include that itself.

svn path=/trunk/; revision=50205

10 years agoAC_PROG_CXX doesn't actually check whether what it finds is a real live
Guy Harris [Fri, 28 Jun 2013 08:36:35 +0000 (08:36 -0000)]
AC_PROG_CXX doesn't actually check whether what it finds is a real live
C++ compiler (it might not be one on, for example, OS X, due to "cc"
being a C compiler, "CC" referring to "cc" due to the case-insensitivity
of the default OS X file system, and "CC" being one of the names checked
for in AC_PROG_CXX), so if we really need a C++ compiler, test it with a
program that a C compiler won't compile.

svn path=/trunk/; revision=50204

10 years agoMake colors used by colorize_filter_te_as_* as preferences. Bug 5413 (https://bugs...
Michael Mann [Fri, 28 Jun 2013 03:03:36 +0000 (03:03 -0000)]
Make colors used by colorize_filter_te_as_* as preferences.  Bug 5413 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5413)

svn path=/trunk/; revision=50203

10 years agoFrom Fabio Tarabelloni via
Evan Huus [Fri, 28 Jun 2013 01:47:18 +0000 (01:47 -0000)]
From Fabio Tarabelloni via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8718

More zigbee dissection, adding the following clusters:
- appliance identification
- meter identification
- appliance statistics
- appliance events and alert

svn path=/trunk/; revision=50202

10 years agoSuppress "Of *COURSE* you're developing a Mac-only application - you're
Guy Harris [Thu, 27 Jun 2013 23:11:05 +0000 (23:11 -0000)]
Suppress "Of *COURSE* you're developing a Mac-only application - you're
on a Mac, right?  So of *COURSE* you want to use our shiny new frameworks
rather than those ugly old open-source multi-platform libraries, right?"
warnings.

svn path=/trunk/; revision=50200

10 years agouse hf_try_val_to_str() in two more places.
Jakub Zawadzki [Thu, 27 Jun 2013 22:26:34 +0000 (22:26 -0000)]
use hf_try_val_to_str() in two more places.

svn path=/trunk/; revision=50199

10 years agoPropagate the main_window_update change of few commits ago into the qt client
Luis Ontanon [Thu, 27 Jun 2013 19:24:39 +0000 (19:24 -0000)]
Propagate the main_window_update change of few commits ago into the qt client
:wq

svn path=/trunk/; revision=50198

10 years agocleanup [u]int fill proto with value_string function
Jakub Zawadzki [Thu, 27 Jun 2013 19:17:22 +0000 (19:17 -0000)]
cleanup [u]int fill proto with value_string function

Create generic int/uint fill functions from hfinfo_[u]int_value_format.

XXX: to be honest I don't get it why if dev picked up BASE_DEC_HEX and has value string we're truncating it to BASE_DEC...

svn path=/trunk/; revision=50197

10 years agoActually, that's not a clang bug; my test case had a typo. It's still a
Guy Harris [Thu, 27 Jun 2013 19:14:41 +0000 (19:14 -0000)]
Actually, that's not a clang bug; my test case had a typo.  It's still a
case where clang is complaining about code that's OK, it's just not OK
in a way that lets clang determine that it is.

svn path=/trunk/; revision=50196

10 years agoMS: list interfaces!
Luis Ontanon [Thu, 27 Jun 2013 19:00:01 +0000 (19:00 -0000)]
MS: list interfaces!

svn path=/trunk/; revision=50195

10 years agoRemove a no-longer-used variable.
Jeff Morriss [Thu, 27 Jun 2013 18:44:11 +0000 (18:44 -0000)]
Remove a no-longer-used variable.

svn path=/trunk/; revision=50194

10 years agocleanup int/uint fill proto functions.
Jakub Zawadzki [Thu, 27 Jun 2013 18:40:08 +0000 (18:40 -0000)]
cleanup int/uint fill proto functions.

- hfinfo_uint_value_format(), hfinfo_int_value_format() formats value instead of returning proper format
- remove hfinfo_int_format(), hfinfo_uint_format

svn path=/trunk/; revision=50193

10 years agoWindows changes for main_window_update ....
Luis Ontanon [Thu, 27 Jun 2013 17:45:07 +0000 (17:45 -0000)]
Windows changes for main_window_update ....

svn path=/trunk/; revision=50192

10 years agoforgot from the las commit...
Luis Ontanon [Thu, 27 Jun 2013 17:27:41 +0000 (17:27 -0000)]
forgot from the las commit...

svn path=/trunk/; revision=50191

10 years agoAdd functions hf_try_val_to_str[_const]
Jakub Zawadzki [Thu, 27 Jun 2013 17:26:23 +0000 (17:26 -0000)]
Add functions hf_try_val_to_str[_const]

svn path=/trunk/; revision=50190

10 years agocleanup, use packet_list_iter_nth_child() in another place.
Jakub Zawadzki [Thu, 27 Jun 2013 17:12:23 +0000 (17:12 -0000)]
cleanup, use packet_list_iter_nth_child() in another place.

svn path=/trunk/; revision=50189

10 years agoget main_window_update out of the way... pass an update_cb to the capture_sync stuff
Luis Ontanon [Thu, 27 Jun 2013 17:10:50 +0000 (17:10 -0000)]
get main_window_update out of the way... pass an update_cb to the capture_sync stuff
... as per the XXX comment removed from tshark.c this was a mess to keep the linker
happy... I couldn't!

I did this without even understanding whether calling main_window_update was realy
necessary in most cases. I guess nothing or more specific update cbs would be best.

svn path=/trunk/; revision=50188

10 years agoFor now, don't turn on -Wcast-align by default. There are at least some
Guy Harris [Thu, 27 Jun 2013 10:35:06 +0000 (10:35 -0000)]
For now, don't turn on -Wcast-align by default.  There are at least some
bugs it points out that probably mean the code won't work on machines
that require alignment (e.g., SPARC machines), but we'll turn it on once
we fix them.  (clang is fussier than GCC about this.)

svn path=/trunk/; revision=50187

10 years agoDon't assume the system include files are under /usr/include; trick the
Guy Harris [Thu, 27 Jun 2013 10:30:33 +0000 (10:30 -0000)]
Don't assume the system include files are under /usr/include; trick the
compiler into saying where they are, and use that.

Patch a bug in PortAudio pa_stable_v19_20111121 that clang found.

svn path=/trunk/; revision=50186

10 years agoFix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8857 :
Pascal Quantin [Thu, 27 Jun 2013 10:17:39 +0000 (10:17 -0000)]
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8857 :
Do not assume that we must have at least 1 character present before \r\n

svn path=/trunk/; revision=50185

10 years ago*sigh*
Evan Huus [Thu, 27 Jun 2013 03:44:48 +0000 (03:44 -0000)]
*sigh*

From the comment above wmem_tree_insert32_array():
 * If you use ...32_array() calls you MUST make sure that every single node
 * you add to a specific tree always has a key of exactly the same number of
 * keylen words or things will most likely crash. Or at least that every single
 * item that sits behind the same top level node always have exactly the same
 * number of words.

So clearly generating thousands of keys with random lengths while testing is
going to cause problems. Generate a set of random lengths, then use those
lengths consistently (but still generating random keys of those lengths).

Should hopefully fix the intermittent build-bot failures.

(unfortunately this does not manifest nicely, and I cannot see an easy way to
assert it so that we catch other people trying to use different-length key
subtrees)

svn path=/trunk/; revision=50184

10 years agoMS: Pong from the dispatcher!
Luis Ontanon [Thu, 27 Jun 2013 03:41:48 +0000 (03:41 -0000)]
MS: Pong from the dispatcher!

svn path=/trunk/; revision=50183

10 years agoMisc little cleanups to wmem tree (comments, whitespace, assertions)
Evan Huus [Thu, 27 Jun 2013 03:01:53 +0000 (03:01 -0000)]
Misc little cleanups to wmem tree (comments, whitespace, assertions)

svn path=/trunk/; revision=50182

10 years agoRemove debugging lines from wmem_test, I think I've figured out the problem.
Evan Huus [Thu, 27 Jun 2013 03:00:33 +0000 (03:00 -0000)]
Remove debugging lines from wmem_test, I think I've figured out the problem.

svn path=/trunk/; revision=50181

10 years agoFrom Audric Schiltknecht, bug 8521 (https://bugs.wireshark.org/bugzilla/show_bug...
Michael Mann [Thu, 27 Jun 2013 02:34:57 +0000 (02:34 -0000)]
From Audric Schiltknecht, bug 8521 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8521)

According to ETSI TS 102 771 (GSE implementation guidelines), "mandatory extension headers" - when GSE's protocol type field is (strictly) less than 256 (0x100) - are of 'pre-defined length (and format) that must be known by all GSE receivers'.

svn path=/trunk/; revision=50180

10 years agoBugfix implementation of RFC 4379. Reported through bug 8835 (https://bugs.wireshark...
Michael Mann [Thu, 27 Jun 2013 01:15:24 +0000 (01:15 -0000)]
Bugfix implementation of RFC 4379.  Reported through bug 8835 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8835)

svn path=/trunk/; revision=50179

10 years agoDon't assume that compilers not named "clang" will, by default, report
Guy Harris [Thu, 27 Jun 2013 00:45:39 +0000 (00:45 -0000)]
Don't assume that compilers not named "clang" will, by default, report
an error, or not issue warnings, by default if you give them an unknown
-f flag.  Instead, test that flag with all compilers, and use -Werror to
force it to error out.

As with C/C++ flags, so with C++-only flags.

svn path=/trunk/; revision=50178

10 years agoDon't assume that compilers that need an extra option to report errors,
Guy Harris [Wed, 26 Jun 2013 22:43:51 +0000 (22:43 -0000)]
Don't assume that compilers that need an extra option to report errors,
rather than just warnings, for unknown warning options are named
"clang"; they might not be.

svn path=/trunk/; revision=50177

10 years ago#gtk #packet-list simplify, use gtk_tree_view_column_add_attribute() for text attribute.
Jakub Zawadzki [Wed, 26 Jun 2013 22:03:57 +0000 (22:03 -0000)]
#gtk #packet-list simplify, use gtk_tree_view_column_add_attribute() for text attribute.

svn path=/trunk/; revision=50176

10 years agoAnother clang issue to work around:
Guy Harris [Wed, 26 Jun 2013 21:29:38 +0000 (21:29 -0000)]
Another clang issue to work around:

libgcrypt expects gnu89-style semantics for "inline"; GCC defaults to
gnu89, but clang defaults to gnu99.

svn path=/trunk/; revision=50175

10 years agoSuppress -Wformat-nonliteral when building GLib, to avoid a clang bug
Guy Harris [Wed, 26 Jun 2013 19:38:47 +0000 (19:38 -0000)]
Suppress -Wformat-nonliteral when building GLib, to avoid a clang bug
where it issues bogus warnings.

svn path=/trunk/; revision=50174

10 years ago(Attempt to) fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8813 :
Jeff Morriss [Wed, 26 Jun 2013 18:19:43 +0000 (18:19 -0000)]
(Attempt to) fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8813 :

Enable INET6 checking on Solaris versions other than 5.8.

(Yes, theoretically this should be checking for Solaris 5.7 or later.  I'm
going to go out on a limb and assume that no one is actually still using 5.7
or, if they are, they aren't trying to compile a modern Wireshark on it...)

svn path=/trunk/; revision=50173

10 years agopacket-editor: Allow focus for byteview, it should fix problems with field hexeditor...
Jakub Zawadzki [Wed, 26 Jun 2013 17:15:25 +0000 (17:15 -0000)]
packet-editor: Allow focus for byteview, it should fix problems with field hexeditor not getting key-press-event.

Generally it should be also safe for builds without packet-editor, just in case ifdef it.

svn path=/trunk/; revision=50172

10 years agoFix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8853 :
Pascal Quantin [Wed, 26 Jun 2013 16:23:54 +0000 (16:23 -0000)]
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8853 :
Add a missing subtree initialization

svn path=/trunk/; revision=50171

10 years agoDon't link wireshark against the Qt libraries and don't like wireshark-qt
Jeff Morriss [Wed, 26 Jun 2013 15:12:50 +0000 (15:12 -0000)]
Don't link wireshark against the Qt libraries and don't like wireshark-qt
against the Gtk+ libraries.

(I didn't notice this before because the resulting programs aren't, on my
system, actually linked against the libraries they don't use--presumably
because of the "-Wl,--as-needed" flag.)

svn path=/trunk/; revision=50170

10 years agoAdjust when name_len offset is used. Part of bug 8776 (https://bugs.wireshark.org...
Michael Mann [Wed, 26 Jun 2013 14:09:10 +0000 (14:09 -0000)]
Adjust when name_len offset is used.  Part of bug 8776 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8776)

From Dario Lombardo

svn path=/trunk/; revision=50169

10 years agoechld is not an optional package, it's an optional Wireshark feature: use
Jeff Morriss [Wed, 26 Jun 2013 13:52:52 +0000 (13:52 -0000)]
echld is not an optional package, it's an optional Wireshark feature: use
--enable-echld rather than --with-echld to control whether it is built.

svn path=/trunk/; revision=50168

10 years agoIf the user enables gtk3, (silently) disable gtk2 rather than forcing the user
Jeff Morriss [Wed, 26 Jun 2013 13:26:25 +0000 (13:26 -0000)]
If the user enables gtk3, (silently) disable gtk2 rather than forcing the user
to also specify --without-gtk2 or complaining that they have specified both.

svn path=/trunk/; revision=50167

10 years agoopenSAFETY: CRC Maintenance, new CRC, new expert interface implemented. Bug 8847...
Michael Mann [Wed, 26 Jun 2013 12:11:08 +0000 (12:11 -0000)]
openSAFETY: CRC Maintenance, new CRC, new expert interface implemented.  Bug 8847 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8847)

From Roland Knall

svn path=/trunk/; revision=50166

10 years agoMove tap-*-common.{h,c} into ui/ since that's the home for common UI functions.
Jeff Morriss [Wed, 26 Jun 2013 02:12:12 +0000 (02:12 -0000)]
Move tap-*-common.{h,c} into ui/ since that's the home for common UI functions.

svn path=/trunk/; revision=50165

10 years agoMove tempfile.{h,c} into wsutil.
Jeff Morriss [Wed, 26 Jun 2013 01:14:35 +0000 (01:14 -0000)]
Move tempfile.{h,c} into wsutil.

svn path=/trunk/; revision=50163

10 years agoNothing uses the HAVE_GTK #define, so get rid of it. (Keep the
Guy Harris [Wed, 26 Jun 2013 00:48:58 +0000 (00:48 -0000)]
Nothing uses the HAVE_GTK #define, so get rid of it.  (Keep the
Makefile.am conditional, however.)

svn path=/trunk/; revision=50162

10 years agoeditcap no longer has to link against nstime.o, it's in libwsutil now.
Jeff Morriss [Wed, 26 Jun 2013 00:45:38 +0000 (00:45 -0000)]
editcap no longer has to link against nstime.o, it's in libwsutil now.

svn path=/trunk/; revision=50161

10 years agoThis file is in the top-level directory. Don't try to include things from ../
Jeff Morriss [Wed, 26 Jun 2013 00:20:56 +0000 (00:20 -0000)]
This file is in the top-level directory. Don't try to include things from ../

svn path=/trunk/; revision=50160

10 years agoAs pointed out by Guy: timestats uses packet_info so it belongs in epan
Jeff Morriss [Wed, 26 Jun 2013 00:18:44 +0000 (00:18 -0000)]
As pointed out by Guy: timestats uses packet_info so it belongs in epan
not wsutil.

svn path=/trunk/; revision=50159

10 years agoPut wsutil/*.h into the wireshark-dev package (in a blind attempt to fix the debian...
Jeff Morriss [Tue, 25 Jun 2013 23:41:06 +0000 (23:41 -0000)]
Put wsutil/*.h into the wireshark-dev package (in a blind attempt to fix the debian packaging step).  Why do we allow/encourage a wirshark-dev package?  IMO Wireshark (C language) development should only be done from the source (a tarball or better yet SVN).

svn path=/trunk/; revision=50158

10 years agoThere's no need to compile timestats.c any more--it's now in libwsutil.
Jeff Morriss [Tue, 25 Jun 2013 23:34:07 +0000 (23:34 -0000)]
There's no need to compile timestats.c any more--it's now in libwsutil.

svn path=/trunk/; revision=50157

10 years agoArrays seems to be where the failure is, so remove excess verbiage around other
Evan Huus [Tue, 25 Jun 2013 22:32:53 +0000 (22:32 -0000)]
Arrays seems to be where the failure is, so remove excess verbiage around other
tests, and add more details to that section.

Now we wait for the buildbots to fail again...

svn path=/trunk/; revision=50156

10 years agoLink this plugin with libwsutil too (in order to pick up time symbols).
Jeff Morriss [Tue, 25 Jun 2013 22:15:11 +0000 (22:15 -0000)]
Link this plugin with libwsutil too (in order to pick up time symbols).

svn path=/trunk/; revision=50155

10 years agoMove a couple of time-related modules into wsutil.
Jeff Morriss [Tue, 25 Jun 2013 22:02:20 +0000 (22:02 -0000)]
Move a couple of time-related modules into wsutil.

A bunch of files didn't really need to include these header files so remove
the include line rather than changing it.

svn path=/trunk/; revision=50154

10 years agoFix build with packet editor enabled. (Fix a typo while we're at it.)
Guy Harris [Tue, 25 Jun 2013 21:45:56 +0000 (21:45 -0000)]
Fix build with packet editor enabled.  (Fix a typo while we're at it.)

svn path=/trunk/; revision=50153

10 years agoLast changes to autofoo, rename the files as they live now in their own dir...
Luis Ontanon [Tue, 25 Jun 2013 21:09:29 +0000 (21:09 -0000)]
Last changes to autofoo, rename the files as they live now in their own dir...

svn path=/trunk/; revision=50152

10 years agoFrom Reinhard Speyerer via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8851:
Pascal Quantin [Tue, 25 Jun 2013 21:05:28 +0000 (21:05 -0000)]
From Reinhard Speyerer via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8851:
ansi_637_tele dissector displays MSB as MBS for Call-Back Number

svn path=/trunk/; revision=50151

10 years agoLook for moc-qt4 before moc and uic-qt4 before uic, because (at least on my
Evan Huus [Tue, 25 Jun 2013 20:49:16 +0000 (20:49 -0000)]
Look for moc-qt4 before moc and uic-qt4 before uic, because (at least on my
machine, with both qt4 and qt5 development tools installed), moc and uic are the
qt5 versions, but the rest of the configuration process grabs qt4 headers and
link paths, leading to a lot of weird errors.

svn path=/trunk/; revision=50150

10 years agoOf course I forgot to test the normal/default case (where no --with arguments
Jeff Morriss [Tue, 25 Jun 2013 20:06:33 +0000 (20:06 -0000)]
Of course I forgot to test the normal/default case (where no --with arguments
are given)...

Actually default --with-gtk2 to "yes".

svn path=/trunk/; revision=50149