metze/wireshark/wip.git
9 years agoUse get_*_int() from wsutil, rather than defining our own.
Guy Harris [Thu, 3 Jul 2014 08:54:13 +0000 (01:54 -0700)]
Use get_*_int() from wsutil, rather than defining our own.

Change-Id: I4811d87a903cc3cea93e12883edf25bcd1271a53
Reviewed-on: https://code.wireshark.org/review/2795
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMake --help and --version information a bit more uniform.
Guy Harris [Thu, 3 Jul 2014 08:45:32 +0000 (01:45 -0700)]
Make --help and --version information a bit more uniform.

Have --version print the version number, the copyright information, the
"compiled with" information, the "running on/with" information, and the
compiler information.

Have --help print the version number, a one-line summary of what the
program does, a reference to http://www.wireshark.org for more
information, a Usage: line, and a list of command-line options.

This means programs doing that don't need to include version.h; that's
left up to get_ws_vcs_version_info() to do.

Change-Id: Idac641bc10e4dfd04c9914d379b3a3e0cc5ca8cb
Reviewed-on: https://code.wireshark.org/review/2794
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoRevert to 3ms if we don't have the handshake
Evan Huus [Wed, 2 Jul 2014 21:42:48 +0000 (17:42 -0400)]
Revert to 3ms if we don't have the handshake

Change-Id: I96b23677f3050e9c62edd49f26d50d8b4addcf58
Reviewed-on: https://code.wireshark.org/review/2784
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoGTP: add dissection of Extended End User Address
Pascal Quantin [Wed, 2 Jul 2014 21:04:58 +0000 (23:04 +0200)]
GTP: add dissection of Extended End User Address

Bug: 10251
Change-Id: I174b5a2b3e2ec8ff2ead9f290b452ee468f6fe66
Reviewed-on: https://code.wireshark.org/review/2783
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoMore getopt_long(), for --help and --version.
Guy Harris [Thu, 3 Jul 2014 07:28:24 +0000 (00:28 -0700)]
More getopt_long(), for --help and --version.

Change-Id: Ia02d7b1fbeaa8e581e85ad8b87afabd576515434
Reviewed-on: https://code.wireshark.org/review/2792
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMore getopt_long, to add --help and --version support.
Guy Harris [Thu, 3 Jul 2014 04:50:54 +0000 (21:50 -0700)]
More getopt_long, to add --help and --version support.

Change-Id: I946067b972a70154f02ab561bc0fd029a7a5abc4
Reviewed-on: https://code.wireshark.org/review/2791
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoAdd long-option support.
Guy Harris [Thu, 3 Jul 2014 02:33:27 +0000 (19:33 -0700)]
Add long-option support.

That way, --help and --version, as well as -h and -v, work.

Change-Id: I095e0dcef9f6181d6fbe6337f9f33e80bc44f11a
Reviewed-on: https://code.wireshark.org/review/2790
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoRegularize the help output of programs.
Guy Harris [Thu, 3 Jul 2014 02:29:21 +0000 (19:29 -0700)]
Regularize the help output of programs.

Only print to the standard output, and only give the version
information, if a "print help" command-line option is specified.
Otherwise, leave out the version information, and print to the standard
error.

Leave out the copyright information; it's extra cruft, and

http://www.gnu.org/prep/standards/html_node/_002d_002dhelp.html

doesn't say anything about it (and bash, at least, doesn't print it).

Change-Id: Ic5029ccf96e096453f3bd38383cc2dd355542e8a
Reviewed-on: https://code.wireshark.org/review/2789
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoRegularize the first line of version output.
Guy Harris [Thu, 3 Jul 2014 02:03:07 +0000 (19:03 -0700)]
Regularize the first line of version output.

For Wireshark, say "Wireshark", not "wireshark".

For other programs, put "(Wireshark)" after the program name, as per

http://www.gnu.org/prep/standards/html_node/_002d_002dversion.html

("If the program is a subsidiary part of a larger package, mention the
package name in parentheses, like this").

Change-Id: I68558f64cfa6ee4423e42f3d6b120633ef1b2716
Reviewed-on: https://code.wireshark.org/review/2788
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoAdd license information to the copyright information.
Guy Harris [Thu, 3 Jul 2014 01:28:35 +0000 (18:28 -0700)]
Add license information to the copyright information.

See

http://www.gnu.org/prep/standards/html_node/_002d_002dversion.html

Change-Id: I19c1cf560a1bb7ed7d7312bea727550977d66120
Reviewed-on: https://code.wireshark.org/review/2787
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoManage Interfaces
Irene Ruengeler [Tue, 24 Jun 2014 09:36:51 +0000 (11:36 +0200)]
Manage Interfaces

- Add dialog to manage interfaces
- Add and delete pipes
- Hide local interfaces

Change-Id: I08323c306c2ea736f99e57c28e2fe3170a0c2216
Reviewed-on: https://code.wireshark.org/review/2613
Tested-by: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Tüxen <tuexen@wireshark.org>
9 years agoFail if any of the install-exec-hook commands fails.
Guy Harris [Wed, 2 Jul 2014 20:27:00 +0000 (13:27 -0700)]
Fail if any of the install-exec-hook commands fails.

Hopefully, this will mean that somebody doing a set-UID/set-GID/setcap
installation as themselves rather than as root will not "succeed" but
leave dumpcap installed without enhanced privileges, so the underlying
problem in bugs such as bug 10247 will be more obvious.

Change-Id: I34393bc2c9ea4dc59854a08524edb4f65e79730b
Reviewed-on: https://code.wireshark.org/review/2781
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoNDPS dissector is the poster child for proto_tree_add_subtree[_format].
Michael Mann [Wed, 2 Jul 2014 13:32:20 +0000 (09:32 -0400)]
NDPS dissector is the poster child for proto_tree_add_subtree[_format].

NDPS dissector is also the poster child for not being considered "that naughty" by checkAPIs because most of its proto_tree_add_text calls don't have printf-style arguments (which is what checkAPIs really keys off of)

Fixed both cases and removed about 370 proto_tree_add_text calls from the dissector.

Change-Id: I721678c39d4a0544e5e7212e622c0c2eebfd04f7
Reviewed-on: https://code.wireshark.org/review/2775
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agokafka: fully dissect offset request/response messages
Evan Huus [Wed, 2 Jul 2014 14:37:10 +0000 (10:37 -0400)]
kafka: fully dissect offset request/response messages

Change-Id: I641a3dbece6f822144f6740dde6801b1be202db5
Reviewed-on: https://code.wireshark.org/review/2777
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoMake the flag testing logic for linker flags work like the compiler flag testing.
Joerg Mayer [Wed, 2 Jul 2014 15:43:17 +0000 (17:43 +0200)]
Make the flag testing logic for linker flags work like the compiler flag testing.

Change-Id: I2478417cbcd395247215f149978c5f0c874c9b3a
Reviewed-on: https://code.wireshark.org/review/2779
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
9 years agoAllow overriding C/C++ flags from CMake command line
Balint Reczey [Mon, 30 Jun 2014 15:56:28 +0000 (17:56 +0200)]
Allow overriding C/C++ flags from CMake command line

Append user's flags to our flags instead of prepending them to make
user flags higher priority.

Change-Id: I3ead33ee5fa06a2395d9197a027306ef99a704a2
Reviewed-on: https://code.wireshark.org/review/2722
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
9 years agoRSVP checksum is not required if integrity object is present
Evan Huus [Wed, 2 Jul 2014 02:48:49 +0000 (22:48 -0400)]
RSVP checksum is not required if integrity object is present

Bug: 10219
Change-Id: I2da62ee184327b2bc42a264e1782db927460f5cf
Reviewed-on: https://code.wireshark.org/review/2773
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoUpdate WSDG win32/win64 quick start guide to include dependencies and
Tim Furlong [Fri, 20 Jun 2014 19:07:58 +0000 (12:07 -0700)]
Update WSDG win32/win64 quick start guide to include dependencies and
instructions for building QtShark; note alternate cygwin package for
'patch' utility; update example setup script to add Qt bin directory to PATH,
and extract out paths as variables.

Change-Id: Id404b8757dbfd0dc1119b89e01bbe2fa139e2b38
Reviewed-on: https://code.wireshark.org/review/2751
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoOptimize sip dissector: avoid calling tvb_get_string_enc()
Jakub Zawadzki [Tue, 1 Jul 2014 22:49:09 +0000 (00:49 +0200)]
Optimize sip dissector: avoid calling tvb_get_string_enc()

Fetch header value, only when we need to parse it.

Change-Id: I3c170ef8ab03985c8111a1b84ac1afc87bc8b5ca
Reviewed-on: https://code.wireshark.org/review/2767
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoAdd a note to Doc/docbook-xml42 requirement in docbook/README.txt indicating
Tim Furlong [Wed, 2 Jul 2014 01:13:09 +0000 (21:13 -0400)]
Add a note to Doc/docbook-xml42 requirement in docbook/README.txt indicating
that a later version may be required; e.g. my a2x (from cygwin64) generates a
developer-guide.xml that needs docbook-xml45.

Change-Id: Iea9d4b45e32157a9317e3fcf6794668e3a810c54
Reviewed-on: https://code.wireshark.org/review/2750
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoSee if this forces version.h to be built.
Guy Harris [Wed, 2 Jul 2014 01:01:38 +0000 (18:01 -0700)]
See if this forces version.h to be built.

(It's not being built by the Ubuntu buildboth when it's building the
Debian package.)

Change-Id: Id7866e13ce72cdda4bb7d5cf0362ba7295ff766b
Reviewed-on: https://code.wireshark.org/review/2772
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMake some inconsistent configuration options errors.
Guy Harris [Wed, 2 Jul 2014 00:47:55 +0000 (17:47 -0700)]
Make some inconsistent configuration options errors.

This way, if you ask for both setuid and setcap installation of dumpcap,
it will fail, rather than silently (other than a message you might miss)
ignoring the request for setuid installation.  See bug 10246.

Also:

if you ask for setuid or setcap installation of dumpcap, but
dumpcap isn't built, it'll let you know that there's nothing to
make setuid/setcap, and fail;

if you ask for setcap installation of dumpcap, but setcap wasn't
found, it'll let you know that it can't install it setcap, and
fail;

so that it won't silently (other than a message you might miss) ignore
those requests, either.

Change-Id: Ibc01593e59fd1cd1be8c68d8cdacbfdca863efa0
Reviewed-on: https://code.wireshark.org/review/2771
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoAUTHORS-SHORT is build in ${CMAKE_BINARY_DIR}, not ${CMAKE_SOURCE_DIR}.
Guy Harris [Wed, 2 Jul 2014 00:34:46 +0000 (17:34 -0700)]
AUTHORS-SHORT is build in ${CMAKE_BINARY_DIR}, not ${CMAKE_SOURCE_DIR}.

Make the dependencies list indicate that.

Change-Id: I88416e1239130b7661bbd9deccfb289e0b0fd627
Reviewed-on: https://code.wireshark.org/review/2770
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoIf -fvisibility=hidden isn't supported, try -xldscope=hidden.
Guy Harris [Wed, 2 Jul 2014 00:20:17 +0000 (17:20 -0700)]
If -fvisibility=hidden isn't supported, try -xldscope=hidden.

That's the option for newer versions of Sun^WOracle C.

Change-Id: I62c12d5870d84587f81a8789732675021523e9ed
Reviewed-on: https://code.wireshark.org/review/2769
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoBump (again) the amount of work we do for wmem's timing test
Evan Huus [Tue, 1 Jul 2014 23:46:54 +0000 (19:46 -0400)]
Bump (again) the amount of work we do for wmem's timing test

Apparently the new win8 vm has a *very* low-resolution timer, and the allocators
are indistinguishable at the previous amount of work.

Change-Id: If4e5bb8f85b1f0d39658f54001c88f42ffddfc47
Reviewed-on: https://code.wireshark.org/review/2768
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoFor Sun C with linker scoping specifiers, define WS_DLL_PUBLIC_DEF.
Guy Harris [Tue, 1 Jul 2014 23:03:34 +0000 (16:03 -0700)]
For Sun C with linker scoping specifiers, define WS_DLL_PUBLIC_DEF.

This may let us, at least for those compilers, make the default "hidden"
with -xldscope=hidden.

Change-Id: I94e10733c2aba0ff8d77a8bf4f1dc8ecc8b2a47f
Reviewed-on: https://code.wireshark.org/review/2766
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoGet rid of rpath when we're building RPMs.
Jeff Morriss [Tue, 1 Jul 2014 22:28:26 +0000 (18:28 -0400)]
Get rid of rpath when we're building RPMs.

Fedora prohibits it, we don't need it, and it gets in the way some times.

Change-Id: I92cee959f471866ff90efe9f96e4fa519c357dd9
Reviewed-on: https://code.wireshark.org/review/2763
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
9 years agoFix buildroot.
Jeff Morriss [Tue, 1 Jul 2014 21:22:46 +0000 (17:22 -0400)]
Fix buildroot.

Change-Id: I902db6c69ae5966da1102e4fbcfd9f46867c0b4f
Reviewed-on: https://code.wireshark.org/review/2762
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
9 years agoFix for Bug 10240.
Malcolm Walters [Tue, 1 Jul 2014 12:38:47 +0000 (13:38 +0100)]
Fix for Bug 10240.
Include padding length in calculation of correct attribute length

Change-Id: I569c6a9e1be39e3bb997e797a094b80cdcba6b07
Reviewed-on: https://code.wireshark.org/review/2747
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
9 years agoUse G_GNUC_PRINTF() for simple_message_box().
Guy Harris [Tue, 1 Jul 2014 20:39:25 +0000 (13:39 -0700)]
Use G_GNUC_PRINTF() for simple_message_box().

We don't need to do the right __attribute__ magic ourselves; GLib does
it for us.

Change-Id: Id31943a8413f0272237be4f868659b5bd5e70626
Reviewed-on: https://code.wireshark.org/review/2758
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoRemove executable bit, from not executable files.
Jakub Zawadzki [Tue, 1 Jul 2014 20:23:53 +0000 (22:23 +0200)]
Remove executable bit, from not executable files.

Change-Id: I36b303b9c2bf4d6bb717261cdbf39ea16532fe06
Reviewed-on: https://code.wireshark.org/review/2757
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
9 years agoFix the checks for the Cygwin path.
Guy Harris [Tue, 1 Jul 2014 20:18:06 +0000 (13:18 -0700)]
Fix the checks for the Cygwin path.

I.e., do

if we have 32-bit Cygwin
CYGWIN_PATH=path to it
else if we have 64-bit Cygwin
CYGWIN_PATH=path to it
else
fail
endif

rather than

CYGWIN_PATH=standard path for 32-bit Cygwin
if we don't have 32-bit cygwin and we do have 64-bit Cygwin
CYGWIN_PATH=path to 64-bit cygwin
else
fail
endif

as the latter will fail if we *do* have 32-bit Cygwin.

Change-Id: I42d607a1319263edcc1d6e546b813862b7d33ffa
Reviewed-on: https://code.wireshark.org/review/2756
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoDon't check for -Wl,{option} support.
Guy Harris [Tue, 1 Jul 2014 19:46:38 +0000 (12:46 -0700)]
Don't check for -Wl,{option} support.

Not all AC_WIRESHARK_LDFLAGS_CHECK flags are -Wl,{option} flags, so
don't check for that first.  If we want to check for specific compilers
and linkers, we should do that, not for -Wl,{option} support.

Change-Id: Ib9581d4a1573a1ffa2493ce08e6d5845d2601352
Reviewed-on: https://code.wireshark.org/review/2755
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoFix comments to reflect reality.
Guy Harris [Tue, 1 Jul 2014 19:26:35 +0000 (12:26 -0700)]
Fix comments to reflect reality.

Change-Id: Id56f5844932371a89785f4ddce87eb66789acdc8
Reviewed-on: https://code.wireshark.org/review/2754
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoPick up stuff from GLib to hide symbols with Sun C.
Guy Harris [Tue, 1 Jul 2014 19:21:02 +0000 (12:21 -0700)]
Pick up stuff from GLib to hide symbols with Sun C.

Note why we don't use G_GNUC_INTERNAL, but duplicate what GLib does, and
don't use G_HAVE_GNUC_VISIBILITY to determine whether we can use
__attribute__ ((visibility (...))).

Change-Id: I0b8d40f40d04e821352522320626173806787214
Reviewed-on: https://code.wireshark.org/review/2753
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoAdd logic to config.nmake to find 64-bit cygwin, and a note warning
Tim Furlong [Tue, 1 Jul 2014 02:54:46 +0000 (22:54 -0400)]
Add logic to config.nmake to find 64-bit cygwin, and a note warning
about forward slashes in the QT5_BASE_PATH if the recommended qmake
command is used; both of these issues will cause annoyingly non-
obvious errors.

Change-Id: I6f9a662969d1fc1887e75e8b0fde3520bbbea416
Reviewed-on: https://code.wireshark.org/review/2749
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoFix the QT build on Qt 5.3 or later to use the windeployqt tool
Graham Bloice [Mon, 30 Jun 2014 22:53:56 +0000 (23:53 +0100)]
Fix the QT build on Qt 5.3 or later to use the windeployqt tool
to copy the rquired Qt files into the runtime directory

Qt 5.2 is broken as windeployqt doesn't take the required --release flag

Also fix the passing of GCC_DLL and GPGERROR_DLL into config.pri so
that the Qt build copies the required files instead of the entire
gnutls bin dir twice (the variables expanded to nothing).

Add support for autodetection of Qt 5.3.0 with msvc2013

Change-Id: I1e9c70a5ff5d1fdfdce88ba15d324f1899c8129c
Reviewed-on: https://code.wireshark.org/review/2734
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Graham Bloice <graham.bloice@trihedral.com>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoKeep VS Code Analysis happy
Balint Reczey [Tue, 1 Jul 2014 11:09:16 +0000 (13:09 +0200)]
Keep VS Code Analysis happy

Change-Id: I4ef92f715d7a0a1449f1b509ce7ed59651cd1a6a
Reviewed-on: https://code.wireshark.org/review/2745
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoRemove debugging info from protocol tree for frame
Graham Bloice [Tue, 1 Jul 2014 11:52:09 +0000 (12:52 +0100)]
Remove debugging info from protocol tree for frame

Change-Id: Id7f02087e536964bfa6d01a3646c20035a3ab6cb
Reviewed-on: https://code.wireshark.org/review/2746
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Graham Bloice <graham.bloice@trihedral.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoLog2() and exp2() are missing on Windows
Balint Reczey [Tue, 1 Jul 2014 10:29:38 +0000 (12:29 +0200)]
Log2() and exp2() are missing on Windows

Change-Id: I8a970f9030fafd8fdcb4e2a24620033ec8005da7
Reviewed-on: https://code.wireshark.org/review/2744
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
9 years agoDrop privileges even earlier.
Guy Harris [Tue, 1 Jul 2014 10:11:18 +0000 (03:11 -0700)]
Drop privileges even earlier.

Do it at the same point at which Wireshark does so.  Do some other
things in the same order as well.

Change-Id: I2925366d49d14271ceffa1a938b5e3450337c772
Reviewed-on: https://code.wireshark.org/review/2743
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoAdd a comment that appears in other programs.
Guy Harris [Tue, 1 Jul 2014 10:05:38 +0000 (03:05 -0700)]
Add a comment that appears in other programs.

Change-Id: Ife885779d339fbb706c9d6cfd931833afba25277
Reviewed-on: https://code.wireshark.org/review/2742
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoSquelch some warnings.
Guy Harris [Tue, 1 Jul 2014 10:02:47 +0000 (03:02 -0700)]
Squelch some warnings.

Make some arguments and structure members gsize, as that's what stored
into them or passed to them.  (And move a newly-widened-on-LP64 item, to
avoid extra structure padding.)

Add a cast, which also appears necessary to squelch a warning.

Clean up indentation while we're at it.

Change-Id: I0cc92e7d2904c5af1f3f3d93f51b6ecb3aed464d
Reviewed-on: https://code.wireshark.org/review/2741
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoIncrease space allocated for IO Graph slower after 1 million items
Balint Reczey [Fri, 27 Jun 2014 15:36:32 +0000 (17:36 +0200)]
Increase space allocated for IO Graph slower after 1 million items

Change-Id: I691070b572e519f412a80db5d7415331f07e8e50
Reviewed-on: https://code.wireshark.org/review/2689
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
9 years agoGTK: Unlimited, dynamically allocated IO Graph
Balint Reczey [Thu, 26 Jun 2014 21:33:32 +0000 (23:33 +0200)]
GTK: Unlimited, dynamically allocated IO Graph

Bug: 8460
Change-Id: Id9aad3f5f69bee9e5a62601ecac28a6a7019e623
Reviewed-on: https://code.wireshark.org/review/2672
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
9 years agoGenerate version.h before adding subdirs (especially wsutil). Otherwise
Joerg Mayer [Tue, 1 Jul 2014 06:21:39 +0000 (08:21 +0200)]
Generate version.h before adding subdirs (especially wsutil). Otherwise
build could fail in wsutil because of missing version.h

Change-Id: If6fdf1080c6de9ca1581bcc126506e78ec03a1d8
Reviewed-on: https://code.wireshark.org/review/2740
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
9 years agoOptimize epan_new/init_dissection
Evan Huus [Mon, 30 Jun 2014 23:46:58 +0000 (19:46 -0400)]
Optimize epan_new/init_dissection

As Anders correctly pointed out in I7d8f84b2e, constantly resetting state will
turn init_dissection into a bit of a hot path. Especially as we will already
bear the overhead of switching files, we don't want to fall any further behind
than we have to.

This change includes three unrelated optimizations that reduce the cost of
init_dissection by about 40% as measured by callgrind:
 - only initialize ares/ADNS if that preference is enabled (this of course only
   applies if you specify -n to tshark or otherwise disable the preference)
 - use memcpy instead of a loop in sigcomp UDVM init
 - use memcpy instead of a loop in bootp dissector

The only remaining obvious hot spot in this path is reassembly_table_init since
it is called by so many dissectors. Suggestions (perhaps to get rid of the
GPtrArray) welcome.

Oh, and one other change to use g_strerror instead of strerror as insisted
upon by the API pre-commit hook.

Change-Id: I18a74f2b64b25498116079bd4e7fc2b335c7703a
Reviewed-on: https://code.wireshark.org/review/2738
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agosip optimization: avoid calling tvb_get_guint8.
Jakub Zawadzki [Fri, 20 Jun 2014 19:04:34 +0000 (21:04 +0200)]
sip optimization: avoid calling tvb_get_guint8.

Use tvb_pbrk_guint8, tvb_find_guint8 when possible.

Change-Id: If8090d9b9b92146e9c216f139c056130d6b04e78
Reviewed-on: https://code.wireshark.org/review/2569
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoPut each option on a line of its own.
Joerg Mayer [Tue, 1 Jul 2014 02:22:50 +0000 (04:22 +0200)]
Put each option on a line of its own.

Change-Id: Ibec60300306e8af7ee230080b113111f93d850dc
Reviewed-on: https://code.wireshark.org/review/2739
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
9 years agoInit session id to avoid warning using GCC 4.9
Balint Reczey [Mon, 30 Jun 2014 12:38:01 +0000 (14:38 +0200)]
Init session id to avoid warning using GCC 4.9

Change-Id: I2091f7eb86c64fd086f44a7cf15e7c5483f9b44c
Reviewed-on: https://code.wireshark.org/review/2716
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoFix access to uninitialised value
Balint Reczey [Mon, 30 Jun 2014 16:24:30 +0000 (18:24 +0200)]
Fix access to uninitialised value

Change-Id: I4c8a15fce631051edd39e7d29c8f0a5e00fcde26
Reviewed-on: https://code.wireshark.org/review/2724
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoFix access to uninitialised values
Balint Reczey [Mon, 30 Jun 2014 16:10:32 +0000 (18:10 +0200)]
Fix access to uninitialised values

Change-Id: Id3592fed0cca5133d493f26d3b8ce27a3cf8505c
Reviewed-on: https://code.wireshark.org/review/2723
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoReflect the move of filters.c to libui.
Guy Harris [Mon, 30 Jun 2014 23:19:59 +0000 (16:19 -0700)]
Reflect the move of filters.c to libui.

Change-Id: Ic1099927e3fb63c020c622e0a92e99a376908f4e
Reviewed-on: https://code.wireshark.org/review/2737
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoDrop privileges very early on.
Guy Harris [Mon, 30 Jun 2014 23:11:58 +0000 (16:11 -0700)]
Drop privileges very early on.

TShark relies on dumpcap to capture packets, and TFShark doesn't even do
packet capturing (it dissects files, not network traffic), so neither of
them need, or should run with, special privileges.  If you *must* run
with special privileges in order to capture, grant those privileges to
dumpcap, which has a *lot* fewer lines of code than libwireshark and
TShark/TFShark.

Change-Id: I8f8fedead355ca163895e025df37240d2f232ba4
Reviewed-on: https://code.wireshark.org/review/2736
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoClean up a comment.
Guy Harris [Mon, 30 Jun 2014 23:02:57 +0000 (16:02 -0700)]
Clean up a comment.

SetProcessDEPPolicy() is the API; PSetProcessDEPPolicy is just a local
pointer variable that either points to that API's implementation (if
it's available) or is null (if it isn't).

Change-Id: I676fbb75019e32af511cefa6f1c7b7124ac9d8e8
Reviewed-on: https://code.wireshark.org/review/2735
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoDo startup things in an order more like that of gtkshark.
Guy Harris [Mon, 30 Jun 2014 22:51:20 +0000 (15:51 -0700)]
Do startup things in an order more like that of gtkshark.

Get credential information and drop privileges *very* early on.  Get the
pathname of the executable right after that, then initialize the 802.11
decryption, then, on Windows, load WinPcap and, if available, AirPcap.
*Then* we can get the version information and set the crash information.

We should drop privileges as early as possible.

We have to load WinPcap and AirPcap before getting the run-time
information, as the run-time information includes the *pcap versions.

Change-Id: Ib40e5a848cc7f42fcb424faa15a91868eaa0b9a4
Reviewed-on: https://code.wireshark.org/review/2733
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoAlways set the crash information.
Guy Harris [Mon, 30 Jun 2014 22:27:39 +0000 (15:27 -0700)]
Always set the crash information.

There's no reason to do it only on Windows - and, in fact, the only
platform where we currently do anything with the information is OS X.
Every other program in the Wireshark suite that does it at all does it
on all platforms.

Change-Id: I8ab29fd86656dd44322991d0d7263c6bb4fcd425
Reviewed-on: https://code.wireshark.org/review/2730
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoAdd echld_test to the list of files we ignore (built with --enable-echld).
Guy Harris [Mon, 30 Jun 2014 22:11:01 +0000 (15:11 -0700)]
Add echld_test to the list of files we ignore (built with --enable-echld).

Change-Id: Idca036db408e4caf6c84a67b4c36145568921ca5
Reviewed-on: https://code.wireshark.org/review/2729
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoGet rid of trailing blank line.
Guy Harris [Mon, 30 Jun 2014 21:49:19 +0000 (14:49 -0700)]
Get rid of trailing blank line.

Change-Id: Id7d134b1d217ef319e3162ae007432fdbe87d0c1
Reviewed-on: https://code.wireshark.org/review/2728
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMove filters.[ch] to libui.
Guy Harris [Mon, 30 Jun 2014 21:47:22 +0000 (14:47 -0700)]
Move filters.[ch] to libui.

Change-Id: I32f04016498dfe8f54b0480f30a84ffe5ef7868f
Reviewed-on: https://code.wireshark.org/review/2727
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMove stat_menu.h to libui.
Guy Harris [Mon, 30 Jun 2014 21:36:40 +0000 (14:36 -0700)]
Move stat_menu.h to libui.

Change-Id: I7bed7f7931845bc41035535cc62e1fe17c71047d
Reviewed-on: https://code.wireshark.org/review/2726
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoWarn about unencrypted HTTP traffic over port 443
Evan Huus [Sun, 29 Jun 2014 12:50:21 +0000 (08:50 -0400)]
Warn about unencrypted HTTP traffic over port 443

At the suggestion of Toralf Förster. This includes an expert info, as well as
making SSL a new-style dissector and rejecting traffic that looks like
unencrypted text.

Change-Id: Ib09ea0d97952330f092590ff3fc6488807cdbb81
Reviewed-on: https://code.wireshark.org/review/2693
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoMove proto_hier_stats.[ch] to libui.
Guy Harris [Mon, 30 Jun 2014 21:08:24 +0000 (14:08 -0700)]
Move proto_hier_stats.[ch] to libui.

Change-Id: Ib7c0617d88bf92cad0ac877176001d29960f1cd8
Reviewed-on: https://code.wireshark.org/review/2725
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoFrom Johan Whahl:
AndersBroman [Mon, 30 Jun 2014 14:36:52 +0000 (16:36 +0200)]
From Johan Whahl:
Added dissection of the SIP Service-Route header.

Change-Id: Ic4523edb374ae03492af5853863dde501a0c30e0
Reviewed-on: https://code.wireshark.org/review/2721
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoFix the display of AVP:s that are not fully dissected
AndersBroman [Mon, 30 Jun 2014 14:04:50 +0000 (16:04 +0200)]
Fix the display of AVP:s that are not fully dissected
fixes Bug #10237

Change-Id: I3c38bb4af4440f1e5087f21ef022bf2cd3a66002
Reviewed-on: https://code.wireshark.org/review/2720
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoLogcat: Remove commented code
Michal Labedzki [Mon, 23 Jun 2014 06:25:15 +0000 (08:25 +0200)]
Logcat: Remove commented code

"g_strlcpy" guarante that "dest" to be null-terminated.

Also cosmetic change from file_subtype to encap.

Change-Id: If188a08cf34dd9def4203404962571c273740636
Reviewed-on: https://code.wireshark.org/review/2718
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
9 years agoBluetooth: Add missing connection_handle
Michal Labedzki [Mon, 30 Jun 2014 13:12:18 +0000 (15:12 +0200)]
Bluetooth: Add missing connection_handle

This initialize previously uninitialized variable (and nice fixing everything)

Change-Id: I943102510fc45735f40db7899884d2c0fe6ffb40
Reviewed-on: https://code.wireshark.org/review/2717
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
9 years agoFix Bug #10238: Display filter expression dialog items do not expand/display properly.
Bill Meier [Mon, 30 Jun 2014 05:48:16 +0000 (01:48 -0400)]
Fix Bug #10238: Display filter expression dialog items do not expand/display properly.

    Unfortunately, certain proto_hier_tree_model.c functions
    assume/require that a cookie generated by
    proto_(first|next)_protocol_field() will never have a NULL value.

    Bug introduced in gd47ae54.

Change-Id: I42763d02f700e15ca9b3ab9980943d4f8d933ca9
Reviewed-on: https://code.wireshark.org/review/2712
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoGet rid of another unused routine.
Guy Harris [Mon, 30 Jun 2014 08:13:57 +0000 (01:13 -0700)]
Get rid of another unused routine.

Change-Id: I58943faaf6e77023ab1fb7bd7a22324a713659da
Reviewed-on: https://code.wireshark.org/review/2714
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoGet rid of unused routine.
Guy Harris [Mon, 30 Jun 2014 07:34:47 +0000 (00:34 -0700)]
Get rid of unused routine.

Change-Id: Iaf12ba7f13804a6d351ea85c0daa52d4489e8c57
Reviewed-on: https://code.wireshark.org/review/2713
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMove capture.[ch] to libui.
Guy Harris [Mon, 30 Jun 2014 05:38:29 +0000 (22:38 -0700)]
Move capture.[ch] to libui.

Change-Id: I86e7e781cc9e14abab0374a18b95438529b046f0
Reviewed-on: https://code.wireshark.org/review/2711
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMake a routine unused outside capture_ui_utils.c static.
Guy Harris [Mon, 30 Jun 2014 05:29:42 +0000 (22:29 -0700)]
Make a routine unused outside capture_ui_utils.c static.

Change-Id: I63f1e5fb119a44edf4ee489683e79cb39a746c08
Reviewed-on: https://code.wireshark.org/review/2710
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoWindows: fix update of version information in wireshark and tshark
Pascal Quantin [Sun, 29 Jun 2014 21:12:05 +0000 (23:12 +0200)]
Windows: fix update of version information in wireshark and tshark

Broken since gc46329c

Change-Id: I00146675d16db021e2cbb7b16841ea9ecb1439b9
Reviewed-on: https://code.wireshark.org/review/2703
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
9 years agoMove capture_session.h to capchild; what it declares is defined there.
Guy Harris [Mon, 30 Jun 2014 05:08:59 +0000 (22:08 -0700)]
Move capture_session.h to capchild; what it declares is defined there.

Change-Id: I8b1407839390b7ac0b45bf6f583c1a509073f002
Reviewed-on: https://code.wireshark.org/review/2709
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMove capture_ui_utils.[ch] to libui.
Guy Harris [Mon, 30 Jun 2014 01:36:22 +0000 (18:36 -0700)]
Move capture_ui_utils.[ch] to libui.

Change-Id: Id0f3d4d60a1acc7aa64fd3737b8f16df5bca4e5a
Reviewed-on: https://code.wireshark.org/review/2708
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoclopts_common.c is now part of wsutil.
Guy Harris [Mon, 30 Jun 2014 00:03:34 +0000 (17:03 -0700)]
clopts_common.c is now part of wsutil.

Change-Id: I474443567e83cab83e4859a4d89a19a8904e08f8
Reviewed-on: https://code.wireshark.org/review/2707
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoclopts_common.c is now part of wsutil.
Guy Harris [Sun, 29 Jun 2014 23:35:30 +0000 (16:35 -0700)]
clopts_common.c is now part of wsutil.

Change-Id: I0fa773bfc6364689d6e4f97ee89a6508622d2b2a
Reviewed-on: https://code.wireshark.org/review/2706
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoPut in missing forward declaration.
Guy Harris [Sun, 29 Jun 2014 23:28:49 +0000 (16:28 -0700)]
Put in missing forward declaration.

Change-Id: I734b07beaecf0c180f4423a6e59c8040207e0c31
Reviewed-on: https://code.wireshark.org/review/2705
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMove some more stuff into wsutil.
Guy Harris [Sun, 29 Jun 2014 21:37:21 +0000 (14:37 -0700)]
Move some more stuff into wsutil.

Move the routines to parse numerical command-line arguments there.

Make cmdarg_err() and cmdarg_err_cont() routines in wsutil that just
call routines specified by a call to cmdarg_err_init(), and have
programs supply the appropriate routines to it.

Change-Id: Ic24fc758c0e647f4ff49eb91673529bcb9587b01
Reviewed-on: https://code.wireshark.org/review/2704
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoproto_tree_add_subtree[_format]
Michael Mann [Sun, 29 Jun 2014 21:00:12 +0000 (17:00 -0400)]
proto_tree_add_subtree[_format]

Change-Id: Id00f456479415adf0a219af6c9a2108d4b3642d0
Reviewed-on: https://code.wireshark.org/review/2702
Reviewed-by: Michael Mann <mmann78@netscape.net>
9 years agoGSM MAP: ensure that p2p_dir is always initialized before calling GSM SMS dissector
Pascal Quantin [Sun, 29 Jun 2014 13:13:43 +0000 (15:13 +0200)]
GSM MAP: ensure that p2p_dir is always initialized before calling GSM SMS dissector

Bug: 10234
Change-Id: Ie340b849015febe46f91836440d44d4cfde005a4
Reviewed-on: https://code.wireshark.org/review/2695
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
9 years agoFix compile error when building w/o GNUTLS
Bill Meier [Sun, 29 Jun 2014 17:39:24 +0000 (13:39 -0400)]
Fix compile error when building w/o GNUTLS

  Specifically: <wsutil/file_util.h> is aleays needed (for create_app_running_mutex())

Change-Id: I78e5a767f62bc2af67b6407539742dc245259f56
Reviewed-on: https://code.wireshark.org/review/2699
Reviewed-by: Bill Meier <wmeier@newsguy.com>
9 years ago[Automatic manuf, services and enterprise-numbers update for 2014-06-29]
Gerald Combs [Sun, 29 Jun 2014 15:04:51 +0000 (08:04 -0700)]
[Automatic manuf, services and enterprise-numbers update for 2014-06-29]

Change-Id: Ife61b2e2c53f1faba34940035ac84a2b5ced3b71
Reviewed-on: https://code.wireshark.org/review/2696
Reviewed-by: Gerald Combs <gerald@wireshark.org>
9 years agoproto_tree_add_subtree[_format]
Michael Mann [Sun, 29 Jun 2014 13:13:51 +0000 (09:13 -0400)]
proto_tree_add_subtree[_format]

Change-Id: I7e016f10fcfdc0523bf2fe8c11295c0334f7c332
Reviewed-on: https://code.wireshark.org/review/2694
Reviewed-by: Michael Mann <mmann78@netscape.net>
9 years agoconvert to proto_tree_add_subtree[_format]
Michael Mann [Fri, 27 Jun 2014 00:33:02 +0000 (20:33 -0400)]
convert to proto_tree_add_subtree[_format]

Change-Id: If110de1e0555637264f86f1508858d569871a9c7
Reviewed-on: https://code.wireshark.org/review/2675
Reviewed-by: Michael Mann <mmann78@netscape.net>
9 years agoStandardize the names of, and document, the taps and heuristic dissector tables made...
David Ameiss [Thu, 26 Jun 2014 15:33:37 +0000 (10:33 -0500)]
Standardize the names of, and document, the taps and heuristic dissector tables made avaialble by these dissectors.

Change-Id: If3a143eb9546c9de63cd32b2347000b09e0e3c93
Reviewed-on: https://code.wireshark.org/review/2688
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
9 years agoFix missing g_list_next() with GLib < 2.32
Balint Reczey [Sat, 28 Jun 2014 16:07:50 +0000 (18:07 +0200)]
Fix missing g_list_next() with GLib < 2.32

Change-Id: I825e74de378acc9d35e4b620a3eeb4807fe7accd
Reviewed-on: https://code.wireshark.org/review/2690
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoRemove unused variables post commit 7bf6862ecf0d0a508bf097f3b52d07bd19128272
Graham Bloice [Sat, 28 Jun 2014 17:33:57 +0000 (18:33 +0100)]
Remove unused variables post commit 7bf6862ecf0d0a508bf097f3b52d07bd19128272

Change-Id: Id583ab1742241deb9325dcb1dbba8a8cb3df3b90
Reviewed-on: https://code.wireshark.org/review/2691
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
9 years agoconvert to proto_tree_add_subtree[_format]
Michael Mann [Fri, 27 Jun 2014 02:51:11 +0000 (22:51 -0400)]
convert to proto_tree_add_subtree[_format]

Change-Id: Ia7014003a3cff5181295172978d6c613c3b83b0b
Reviewed-on: https://code.wireshark.org/review/2676
Tested-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
9 years agoFix several GTK warnings in Windows.
Irene Ruengeler [Fri, 27 Jun 2014 12:11:14 +0000 (14:11 +0200)]
Fix several GTK warnings in Windows.

Change-Id: I300137319129c3e188884e1240c025d92e34e410
Reviewed-on: https://code.wireshark.org/review/2687
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoHave the makefile run windepoyqt if it exists to copy the required dlls to the instal...
AndersBroman [Wed, 25 Jun 2014 12:18:40 +0000 (14:18 +0200)]
Have the makefile run windepoyqt if it exists to copy the required dlls to the install dir.

Change-Id: If87c2670e1ffef116d4497241f070fa41a70015b
Reviewed-on: https://code.wireshark.org/review/2644
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoUse g_queue_free_full() only on GLib > 2.32
Balint Reczey [Fri, 27 Jun 2014 10:00:11 +0000 (12:00 +0200)]
Use g_queue_free_full() only on GLib > 2.32

Change-Id: I7a72fe8243fc809b444f1b026ed872cd2aa92245
Reviewed-on: https://code.wireshark.org/review/2686
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
Tested-by: Balint Reczey <balint@balintreczey.hu>
9 years agoUse GQueue for generating statistics
Balint Reczey [Sun, 22 Jun 2014 19:53:48 +0000 (12:53 -0700)]
Use GQueue for generating statistics

This makes reversing the list back and forth to keep adding data
at O(n) complexity obsolete.

Bug: 9696

Change-Id: Ice77328b8f6c5bf72bbfcfd82e08d09d4f986d3f
Reviewed-on: https://code.wireshark.org/review/2571
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
Tested-by: Balint Reczey <balint@balintreczey.hu>
9 years agoReport more information on a sync_xxx_open() call failure.
Guy Harris [Fri, 27 Jun 2014 08:43:53 +0000 (01:43 -0700)]
Report more information on a sync_xxx_open() call failure.

Trying to get more information for

http://ask.wireshark.org/questions/34057/waitpid-error-starting

Change-Id: Ifc0eb58f5b69c2c4a4638aa95f6b5f8f628bef02
Reviewed-on: https://code.wireshark.org/review/2685
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoWe're not currently using dissect_rtcp_psfb_remb(); #if 0 it out.
Guy Harris [Fri, 27 Jun 2014 07:39:52 +0000 (00:39 -0700)]
We're not currently using dissect_rtcp_psfb_remb(); #if 0 it out.

Also, note that we need to determine how to handle Application Layer
Feedback messages based on the SDP setup traffic for the session; recent
changes disabled dissection of REMB Application Layer Feedback messages
in favor of MS-RTP Application Layer Feedback messages.  (This is why we
shouldn't remove dissect_rtcp_psfb_remb() unless REMB isn't being used
any more.)

Change-Id: Ib320bdf4a64263fdef29fc4ea2583eaae1cc4bee
Reviewed-on: https://code.wireshark.org/review/2684
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoIn function 'dissect_rtcp_psfb':
AndersBroman [Fri, 27 Jun 2014 04:21:36 +0000 (06:21 +0200)]
In function 'dissect_rtcp_psfb':
packet-rtcp.c:1232: warning: unused parameter 'top_item'

Change-Id: I76522a9c6094473ce0eeeb7cc929a66e6da21909
Reviewed-on: https://code.wireshark.org/review/2683
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoRTCP: Add support for MS-RTP
Britt McKinley [Mon, 23 Jun 2014 20:18:04 +0000 (16:18 -0400)]
RTCP: Add support for MS-RTP
Support for Profile Specific Extensions from MS-RTP
Support for RTCP Feedback Messages
Support for Application Layer Feedback Messages.
MS-RTP: Real-time Transport Protocol (RTP) Extensions
http://msdn.microsoft.com/en-us/library/office/cc431492.aspx

Change-Id: I1f1e6e60b5f9d09b1dffd7e308426c0b67914441
Reviewed-on: https://code.wireshark.org/review/2586
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoTighten the dump-glossary test.
Evan Huus [Fri, 27 Jun 2014 03:43:51 +0000 (23:43 -0400)]
Tighten the dump-glossary test.

 1. The only indication we get of an out-of-order value string is a message on
 STDERR, so check that and fail the test if STDERR wasn't empty.

 2. This exposes an out-of-order value string in packet-stun.c; fix it.

 3. This triggered the pre-commit hook on packet-stun.c, which noticed an API
 error (ENC_ASCII -> ENC_ASCII|ENC_NA); fix that too.

Change-Id: I36f87a2a87b40537119562f22a7e3012716ff239
Lesson: automated testing/tooling is both wonderful and scary.
Reviewed-on: https://code.wireshark.org/review/2682
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoIf we have no fields, don't try to iterate through them.
Evan Huus [Fri, 27 Jun 2014 03:25:08 +0000 (23:25 -0400)]
If we have no fields, don't try to iterate through them.

Otherwise glib throws an assertion since the array we pass it is NULL.

Change-Id: I9159c1f5ad99b280c040cd790df3cf352738601f
Reviewed-on: https://code.wireshark.org/review/2680
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoshow an expert info if a non-control urb contains a setup packet
Martin Kaiser [Thu, 26 Jun 2014 03:30:13 +0000 (23:30 -0400)]
show an expert info if a non-control urb contains a setup packet

Change-Id: I9339869defa47a862b6174d8821cdd8e6186f5c5
Reviewed-on: https://code.wireshark.org/review/2678
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>